config

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2016 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrCloudConfig = errors.New("not a config (found coreos-cloudconfig)")
	ErrEmpty       = errors.New("not a config (empty)")
	ErrScript      = errors.New("not a config (found coreos-cloudinit script)")
	ErrDeprecated  = errors.New("config format deprecated")
)

Functions

func Append

func Append(oldConfig, newConfig types.Config) types.Config

Append appends newConfig to oldConfig and returns the result. Appending one config to another is accomplished by iterating over every field in the config structure, appending slices, recursively appending structs, and overwriting old values with new values for all other types.

func Parse

func Parse(rawConfig []byte) (types.Config, error)

func ParseFromLatest

func ParseFromLatest(rawConfig []byte) (config types.Config, err error)

func ParseFromV1

func ParseFromV1(rawConfig []byte) (types.Config, error)

func TranslateFromV1

func TranslateFromV1(old v1.Config) (types.Config, error)

Types

This section is empty.

Directories

Path Synopsis
v1

Jump to

Keyboard shortcuts

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