Documentation
¶
Index ¶
- Variables
- func JSONifyFiles(paths []string) ([]string, error)
- func JSONifyIO(in io.Reader) (string, error)
- func Merge(l ...map[interface{}]interface{}) (map[interface{}]interface{}, error)
- func RegisterOp(name string, op Operator)
- func SetupOperators(phase OperatorPhase) error
- type Action
- type CartesianProductOperator
- type ConcatOperator
- type Evaluator
- func (ev *Evaluator) CheckForCycles(maxDepth int) error
- func (ev *Evaluator) DataFlow(phase OperatorPhase) ([]*Opcall, error)
- func (ev *Evaluator) Prune(paths []string) error
- func (ev *Evaluator) Run(prune []string) error
- func (ev *Evaluator) RunOp(op *Opcall) error
- func (ev *Evaluator) RunOps(ops []*Opcall) error
- func (ev *Evaluator) RunPhase(p OperatorPhase) error
- type Expr
- type ExprType
- type FileOperator
- type GrabOperator
- type InjectOperator
- type JoinOperator
- type KeysOperator
- type Merger
- type MultiError
- type NullOperator
- type Opcall
- type Operator
- type OperatorPhase
- type ParamOperator
- type Response
- type StaticIPOperator
- type VaultOperator
Constants ¶
This section is empty.
Variables ¶
var OpRegistry map[string]Operator
OpRegistry ...
var UsedIPs map[string]string
UsedIPs ...
Functions ¶
func JSONifyFiles ¶
Types ¶
type CartesianProductOperator ¶
type CartesianProductOperator struct{}
CartesianProductOperator ...
func (CartesianProductOperator) Dependencies ¶
func (CartesianProductOperator) Dependencies(_ *Evaluator, args []*Expr, locs []*tree.Cursor) []*tree.Cursor
Dependencies ...
func (CartesianProductOperator) Phase ¶
func (CartesianProductOperator) Phase() OperatorPhase
Phase ...
type ConcatOperator ¶
type ConcatOperator struct{}
ConcatOperator ...
func (ConcatOperator) Dependencies ¶
Dependencies ...
type Evaluator ¶
type Evaluator struct {
Tree map[interface{}]interface{}
Deps map[string][]tree.Cursor
Here *tree.Cursor
CheckOps []*Opcall
// contains filtered or unexported fields
}
Evaluator ...
func (*Evaluator) CheckForCycles ¶
CheckForCycles ...
type Expr ¶
type Expr struct {
Type ExprType
Reference *tree.Cursor
Literal interface{}
Name string
Left *Expr
Right *Expr
}
Expr ...
func (*Expr) Dependencies ¶
Dependencies ...
type FileOperator ¶ added in v1.5.0
type FileOperator struct{}
FileOperator ...
func (FileOperator) Dependencies ¶ added in v1.5.0
Dependencies ...
type GrabOperator ¶
type GrabOperator struct{}
GrabOperator ...
func (GrabOperator) Dependencies ¶
Dependencies ...
type InjectOperator ¶
type InjectOperator struct{}
InjectOperator ...
func (InjectOperator) Dependencies ¶
Dependencies ...
type JoinOperator ¶ added in v1.5.0
type JoinOperator struct{}
JoinOperator ...
func (JoinOperator) Dependencies ¶ added in v1.5.0
Dependencies ...
type KeysOperator ¶
type KeysOperator struct{}
KeysOperator ...
func (KeysOperator) Dependencies ¶
Dependencies ...
type Merger ¶
type Merger struct {
AppendByDefault bool
Errors MultiError
// contains filtered or unexported fields
}
Merger ...
type NullOperator ¶
type NullOperator struct {
Missing string
}
NullOperator ...
func (NullOperator) Dependencies ¶
Dependencies ...
type Opcall ¶
type Opcall struct {
// contains filtered or unexported fields
}
Opcall ...
func ParseOpcall ¶
func ParseOpcall(phase OperatorPhase, src string) (*Opcall, error)
ParseOpcall ...
func (*Opcall) Dependencies ¶
Dependencies ...
type Operator ¶
type Operator interface {
// setup whatever global/static state needed -- see (( static_ips ... ))
Setup() error
// evaluate the tree and determine what should be done to satisfy caller
Run(ev *Evaluator, args []*Expr) (*Response, error)
// returns a set of implicit / inherent dependencies used by Run()
Dependencies(ev *Evaluator, args []*Expr, locs []*tree.Cursor) []*tree.Cursor
// what phase does this operator run during?
Phase() OperatorPhase
}
Operator ...
type OperatorPhase ¶
type OperatorPhase int
OperatorPhase ...
const ( // MergePhase ... MergePhase OperatorPhase = iota // EvalPhase ... EvalPhase // ParamPhase ... ParamPhase )
type ParamOperator ¶
type ParamOperator struct{}
ParamOperator ...
func (ParamOperator) Dependencies ¶
Dependencies ...
type StaticIPOperator ¶
type StaticIPOperator struct{}
StaticIPOperator ...
func (StaticIPOperator) Dependencies ¶
Dependencies ...
type VaultOperator ¶
type VaultOperator struct{}
The VaultOperator provides a means of injecting credentials and other secrets from a Vault (vaultproject.io) Secure Key Storage instance.
func (VaultOperator) Dependencies ¶
Dependencies collects implicit dependencies that a given `(( vault ... ))` call has. There are none.
func (VaultOperator) Phase ¶
func (VaultOperator) Phase() OperatorPhase
Phase identifies what phase of document management the vault operator should be evaulated in. Vault lives in the Eval phase
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
Godeps
|
|
|
_workspace/src/github.com/jtolds/gls
Package gls implements goroutine-local storage.
|
Package gls implements goroutine-local storage. |
|
_workspace/src/github.com/mattn/go-isatty
Package isatty implements interface to isatty
|
Package isatty implements interface to isatty |
|
_workspace/src/github.com/smallfish/simpleyaml
a Go package to interact with arbitrary YAML.
|
a Go package to interact with arbitrary YAML. |
|
_workspace/src/github.com/smartystreets/assertions
Package assertions contains the implementations for all assertions which are referenced in goconvey's `convey` package (github.com/smartystreets/goconvey/convey) for use with the So(...) method.
|
Package assertions contains the implementations for all assertions which are referenced in goconvey's `convey` package (github.com/smartystreets/goconvey/convey) for use with the So(...) method. |
|
_workspace/src/github.com/smartystreets/assertions/internal/oglematchers
Package oglematchers provides a set of matchers useful in a testing or mocking framework.
|
Package oglematchers provides a set of matchers useful in a testing or mocking framework. |
|
_workspace/src/github.com/smartystreets/assertions/internal/oglemock/createmock
command
createmock is used to generate source code for mock versions of interfaces from installed packages.
|
createmock is used to generate source code for mock versions of interfaces from installed packages. |
|
_workspace/src/github.com/smartystreets/assertions/internal/oglemock/generate
Package generate implements code generation for mock classes.
|
Package generate implements code generation for mock classes. |
|
_workspace/src/github.com/smartystreets/assertions/internal/oglemock/generate/test_cases/complicated_pkg
Package complicated_pkg contains an interface with lots of interesting cases, for use in integration testing.
|
Package complicated_pkg contains an interface with lots of interesting cases, for use in integration testing. |
|
_workspace/src/github.com/smartystreets/assertions/internal/oglemock/generate/test_cases/renamed_pkg
A package that calls itself something different than its package path would have you believe.
|
A package that calls itself something different than its package path would have you believe. |
|
_workspace/src/github.com/smartystreets/assertions/internal/ogletest
Package ogletest provides a framework for writing expressive unit tests.
|
Package ogletest provides a framework for writing expressive unit tests. |
|
_workspace/src/github.com/smartystreets/assertions/should
package should is simply a rewording of the assertion functions in the assertions package.
|
package should is simply a rewording of the assertion functions in the assertions package. |
|
_workspace/src/github.com/smartystreets/goconvey/convey
Package convey contains all of the public-facing entry points to this project.
|
Package convey contains all of the public-facing entry points to this project. |
|
_workspace/src/github.com/smartystreets/goconvey/convey/gotest
Package gotest contains internal functionality.
|
Package gotest contains internal functionality. |
|
_workspace/src/github.com/smartystreets/goconvey/convey/reporting
Package reporting contains internal functionality related to console reporting and output.
|
Package reporting contains internal functionality related to console reporting and output. |
|
_workspace/src/github.com/voxelbrain/goptions
package goptions implements a flexible parser for command line options.
|
package goptions implements a flexible parser for command line options. |
|
_workspace/src/golang.org/x/sys/unix
Package unix contains an interface to the low-level operating system primitives.
|
Package unix contains an interface to the low-level operating system primitives. |
|
_workspace/src/gopkg.in/yaml.v2
Package yaml implements YAML support for the Go language.
|
Package yaml implements YAML support for the Go language. |
|
cmd
|
|
|
spruce
command
|
|