config

package
v0.3.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2019 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(c Content) (config runtime.Configurator, err error)

New initializes and returns a Configurator.

Types

type Content

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

Content represents the raw config data.

func FromBytes

func FromBytes(b []byte) (c Content, err error)

FromBytes is a convenience function that reads the config from a string, and unmarshals it.

func FromFile

func FromFile(p string) (c Content, err error)

FromFile is a convenience function that reads the config from disk, and unmarshals it.

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