config

package
Version: v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2019 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Unmarshal

func Unmarshal(path string) (*types.Config, error)

Types

type JobPartial added in v0.4.0

type JobPartial struct {
	Name     string    `hcl:"name,label"`
	Template *string   `hcl:"template"`
	Deps     *[]string `hcl:"deps"`
	Remain   hcl.Body  `hcl:",remain"`
}

func (JobPartial) GetDeps added in v0.5.0

func (j JobPartial) GetDeps(p *Parser, templates []JobPartial, jobIsTemplate bool) ([]string, error)

type Parser added in v0.3.0

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

func NewParser added in v0.3.0

func NewParser() Parser

func (*Parser) Decode added in v0.3.0

func (p *Parser) Decode(body hcl.Body, val interface{}) error

func (*Parser) DecodeBody added in v0.3.0

func (p *Parser) DecodeBody(val interface{}) error

func (*Parser) DecodeCache added in v0.3.0

func (p *Parser) DecodeCache() (types.CacheConfig, error)

func (*Parser) DecodeConfig added in v0.3.0

func (p *Parser) DecodeConfig() (config types.Config, err error)

func (*Parser) DecodeEngine added in v0.3.0

func (p *Parser) DecodeEngine() (*string, error)

func (*Parser) DecodeEnv added in v0.3.0

func (p *Parser) DecodeEnv() (map[string]string, error)

func (*Parser) DecodeJobs added in v0.3.0

func (p *Parser) DecodeJobs(templates []JobPartial) ([]*job.Job, error)

func (*Parser) DecodeKubernetes added in v0.3.0

func (p *Parser) DecodeKubernetes() (*kubernetes.Kubernetes, error)

func (*Parser) DecodeRemains added in v0.3.0

func (p *Parser) DecodeRemains(val Remains) error

func (*Parser) DecodeSCMs added in v0.3.0

func (p *Parser) DecodeSCMs() ([]*scm.SCM, error)

func (*Parser) DecodeSecrets added in v0.3.0

func (p *Parser) DecodeSecrets() (map[string]string, error)

func (*Parser) DecodeTemplates added in v0.3.0

func (p *Parser) DecodeTemplates() ([]JobPartial, error)

func (*Parser) GetContext added in v0.3.0

func (p *Parser) GetContext() *hcl.EvalContext

func (*Parser) Parse added in v0.3.0

func (p *Parser) Parse(config string) error

func (*Parser) ParseFile added in v0.3.0

func (p *Parser) ParseFile(path string) error

func (*Parser) TemplateForJob added in v0.5.0

func (p *Parser) TemplateForJob(job *job.Job, templates []JobPartial, jobIsTemplate bool) (*JobPartial, error)

type Remains added in v0.3.0

type Remains interface {
	GetRemain() hcl.Body
}

Source Files

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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