bundle

package
v0.6.0-beta.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 28, 2020 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConfigBundle

func NewConfigBundle(opts ...Option) (*v1alpha1.ConfigBundle, error)

NewConfigBundle returns a new bundle nolint: gocyclo

Types

type InputOptions

type InputOptions struct {
	ClusterName string
	Endpoint    string
	KubeVersion string
	GenOptions  []generate.GenOption
}

InputOptions holds necessary params for generating an input.

type Option

type Option func(o *Options) error

Option controls config options specific to config bundle generation.

func WithExistingConfigs

func WithExistingConfigs(configPath string) Option

WithExistingConfigs sets the path to existing config files.

func WithInputOptions

func WithInputOptions(inputOpts *InputOptions) Option

WithInputOptions allows passing in of various params for net-new input generation.

type Options

type Options struct {
	ExistingConfigs string // path to existing config files
	InputOptions    *InputOptions
}

Options describes generate parameters.

func DefaultOptions

func DefaultOptions() Options

DefaultOptions returns default options.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL