Peter Kurfer
d70ba748f5
- 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
20 lines
448 B
Go
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)
|
|
}
|