api/pkg/cert/defaults.go
Peter Kurfer d70ba748f5 Introduce Lifecycle for every endpoint and manage listeners in the renamed Orchestrator
- merge packages to get a more concise layout because plugins are no more and therefore there's not a lot to be exported
- fix test logger
- rework config parsing to be easier and more transparent
- remove unnecessary APIs because dynamic endpoint handling is rather a won't implement
2021-02-10 20:26:45 +00:00

20 lines
448 B
Go

package cert
import (
"github.com/imdario/mergo"
)
var (
defaultOptions = &GenerationOptions{
Country: []string{"US"},
Locality: []string{"San Francisco"},
Organization: []string{"INetMock"},
StreetAddress: []string{"Golden Gate Bridge"},
PostalCode: []string{"94016"},
Province: []string{""},
}
)
func applyDefaultGenerationOptions(opts *GenerationOptions) error {
return mergo.Merge(opts, defaultOptions)
}