evt

package
v0.0.0-...-a0b8de0 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2021 License: BSD-3-Clause Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotFound = errors.New("entry not found")
)

Functions

func CompareEtag

func CompareEtag(a, b string) bool

func Hash

func Hash(v interface{}) ([]byte, error)

func HashInto

func HashInto(v interface{}, h io.Writer) error

Types

type ChangeDir

type ChangeDir struct {
	Dir  FSPath
	Body EVTNode
}

type Download

type Download struct {
	URL  string
	Path FSPath
	Sum  *KnownSum
}

type EVTNode

type EVTNode interface {
	// contains filtered or unexported methods
}

type Evaluator

type Evaluator struct {
	L hclog.Logger
	// contains filtered or unexported fields
}

func NewEvaluator

func NewEvaluator(L hclog.Logger, opts EvaluatorEnv) *Evaluator

func (*Evaluator) Eval

func (e *Evaluator) Eval(n EVTNode) error

type EvaluatorEnv

type EvaluatorEnv struct {
	WorkingDir   string
	OutputDir    string
	Environ      []string
	OutputPrefix string
}

type FSPath

type FSPath string

type InstallFiles

type InstallFiles struct {
	Target  FSPath
	Pattern FSPath
	Symlink bool
}

type KnownSum

type KnownSum struct {
	Type  string
	Value string
}
type Link struct {
	Original FSPath
	Target   FSPath
}

type MakeDir

type MakeDir struct {
	Dir FSPath
}

type Patch

type Patch struct {
	Patch string
}

type Replace

type Replace struct {
	File     FSPath
	Replacer *strings.Replacer
	Regexp   *regexp.Regexp
	Target   []byte
}

type Rmrf

type Rmrf struct {
	Target string
}

type SetEnv

type SetEnv struct {
	Append  bool
	Prepend bool
	Key     string
	Value   string
}

type SetRoot

type SetRoot struct {
	Dir FSPath
}

type Shell

type Shell struct {
	Code string
}

type Statements

type Statements struct {
	Statements []EVTNode
}

type System

type System struct {
	Arguments []string
	Dir       FSPath
}

type Unpack

type Unpack struct {
	Path   FSPath
	Output FSPath
}

type WriteFile

type WriteFile struct {
	Target FSPath
	Data   []byte
}

Jump to

Keyboard shortcuts

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