Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewConfigBundle ¶ added in v0.4.0
func NewConfigBundle(opts ...BundleOption) (*v1alpha1.ConfigBundle, error)
NewConfigBundle returns a new bundle nolint: gocyclo
func NewFromBytes ¶ added in v0.4.0
func NewFromBytes(in []byte) (runtime.Configurator, error)
NewFromBytes will take a byteslice and attempt to parse a config file from it
func NewFromFile ¶ added in v0.4.0
func NewFromFile(filepath string) (runtime.Configurator, error)
NewFromFile will take a filepath and attempt to parse a config file from it
Types ¶
type BundleOption ¶ added in v0.4.0
type BundleOption func(o *BundleOptions) error
BundleOption controls config options specific to config bundle generation.
func WithExistingConfigs ¶ added in v0.4.0
func WithExistingConfigs(configPath string) BundleOption
WithExistingConfigs sets the path to existing config files
func WithInputOptions ¶ added in v0.4.0
func WithInputOptions(inputOpts *InputOptions) BundleOption
WithInputOptions allows passing in of various params for net-new input generation
type BundleOptions ¶ added in v0.4.0
type BundleOptions struct { ExistingConfigs string // path to existing config files InputOptions *InputOptions }
BundleOptions describes generate parameters.
func DefaultBundleOptions ¶ added in v0.4.0
func DefaultBundleOptions() BundleOptions
DefaultBundleOptions returns default options.
Click to show internal directories.
Click to hide internal directories.