config

package
v0.0.0-...-29bcaae Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2016 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildRecord

type BuildRecord struct {
	Steps []*StepRecord `hcl:"step,expand"`
}

type Record

type Record struct {
	Values []*ValueRecord          `hcl:"value"`
	Builds map[string]*BuildRecord `hcl:"build"`
}

func LoadBytes

func LoadBytes(b []byte) (*Record, error)

type StepRecord

type StepRecord struct {
	Type          string `hcl:",key"`
	Url           string
	Image         string
	Cmd           string
	Dir           string
	Username      string
	Password      string
	DecodedFields []string `hcl:",decodedFields"`
}

func (*StepRecord) HasParameter

func (sr *StepRecord) HasParameter(s string) bool

type ValueEngine

type ValueEngine struct {
	// contains filtered or unexported fields
}

func NewValueEngine

func NewValueEngine() *ValueEngine

func (*ValueEngine) AddValue

func (ve *ValueEngine) AddValue(vr *ValueRecord)

func (*ValueEngine) EnvVars

func (ve *ValueEngine) EnvVars() []string

func (*ValueEngine) HasValue

func (ve *ValueEngine) HasValue(name string) bool

func (*ValueEngine) ResolveValues

func (ve *ValueEngine) ResolveValues(astring string) (string, error)

func (*ValueEngine) ValidateValue

func (ve *ValueEngine) ValidateValue(astring string) error

type ValueRecord

type ValueRecord struct {
	Name          string `hcl:",key"`
	Literal       string
	Env           string
	DecodedFields []string `hcl:",decodedFields"`
}

func (*ValueRecord) HasField

func (vr *ValueRecord) HasField(s string) bool

Jump to

Keyboard shortcuts

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