config

package
v3.0.0-alpha.1+incompa... Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2018 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(out io.Writer, tmplpath string, f interface{}) error

Generate executes the template stored at fpath on object f

func Parser

func Parser(filepath string, f interface{}) error

Parser parses configuration found in the file with the specified path.

Types

type Common

type Common struct {
	EngineName  string `json:"engineName"`
	ContainerID string `json:"containerID"`
	// OciConfig is the oci configuration structure
	OciConfig *oci.Config `json:"ociConfig"`
	// EngineConfig is the raw JSON representation of the Engine's underlying config
	EngineConfig EngineConfig `json:"engineConfig"`
}

Common provides the basis for all engine configs. Anything that can not be properly described through the OCI config can be stored as generic JSON []byte

type EngineConfig

type EngineConfig interface {
	json.Marshaler
	json.Unmarshaler
}

EngineConfig is the interface an EngineConfig must implement

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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