config

package
v0.6.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 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 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.

type Content

type Content struct {
	Version string `yaml:"version"`
	// contains filtered or unexported fields
}

Content represents the raw config data.

type InputOptions added in v0.4.0

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

InputOptions holds necessary params for generating an input

Directories

Path Synopsis
types
v1alpha1
Package v1alpha1 configuration file contains all the options available for configuring a machine.
Package v1alpha1 configuration file contains all the options available for configuring a machine.

Jump to

Keyboard shortcuts

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