execenv

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2018 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExecEnv

type ExecEnv struct {
	ExecID  string
	Project string
	// contains filtered or unexported fields
}

ExecEnv is a data object which contains variables for an ExecuteContext

func NewExecEnv

func NewExecEnv(execID, project, workingDir string) *ExecEnv

NewExecEnv returns a new ExecEnv from values

func NewExecEnvFromConfig

func NewExecEnvFromConfig(execID, project, workingDir string) (*ExecEnv, error)

NewExecEnvFromConfig returns a new ExecEnv from a Config

func (*ExecEnv) Resolve

func (e *ExecEnv) Resolve(tmpl string) (string, error)

Resolve template variables to a string value and cache the value

func (*ExecEnv) ResolveSlice

func (e *ExecEnv) ResolveSlice(tmpls []string) ([]string, error)

ResolveSlice resolves all strings in the slice

func (*ExecEnv) Unique

func (e *ExecEnv) Unique() string

Unique returns a unique id for this execution

Jump to

Keyboard shortcuts

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