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 GrabOperator
- type InjectOperator
- 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 ¶ added in v1.0.2
func Merge ¶ added in v0.13.0
func Merge(l ...map[interface{}]interface{}) (map[interface{}]interface{}, error)
Merge ...
func SetupOperators ¶ added in v0.13.0
func SetupOperators(phase OperatorPhase) error
SetupOperators ...
Types ¶
type CartesianProductOperator ¶ added in v1.0.0
type CartesianProductOperator struct{}
CartesianProductOperator ...
func (CartesianProductOperator) Dependencies ¶ added in v1.0.0
func (CartesianProductOperator) Dependencies(_ *Evaluator, args []*Expr, locs []*tree.Cursor) []*tree.Cursor
Dependencies ...
func (CartesianProductOperator) Phase ¶ added in v1.0.0
func (CartesianProductOperator) Phase() OperatorPhase
Phase ...
func (CartesianProductOperator) Run ¶ added in v1.0.0
func (CartesianProductOperator) Run(ev *Evaluator, args []*Expr) (*Response, error)
Run ...
func (CartesianProductOperator) Setup ¶ added in v1.0.0
func (CartesianProductOperator) Setup() error
Setup ...
type ConcatOperator ¶ added in v0.13.0
type ConcatOperator struct{}
ConcatOperator ...
func (ConcatOperator) Dependencies ¶ added in v0.13.0
Dependencies ...
func (ConcatOperator) Phase ¶ added in v0.13.0
func (ConcatOperator) Phase() OperatorPhase
Phase ...
type Evaluator ¶ added in v0.13.0
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 ¶ added in v0.13.0
CheckForCycles ...
func (*Evaluator) DataFlow ¶ added in v0.13.0
func (ev *Evaluator) DataFlow(phase OperatorPhase) ([]*Opcall, error)
DataFlow ...
func (*Evaluator) RunPhase ¶ added in v0.13.0
func (ev *Evaluator) RunPhase(p OperatorPhase) error
RunPhase ...
type Expr ¶ added in v0.13.0
type Expr struct {
Type ExprType
Reference *tree.Cursor
Literal interface{}
Name string
Left *Expr
Right *Expr
}
Expr ...
func (*Expr) Dependencies ¶ added in v0.13.0
Dependencies ...
type GrabOperator ¶ added in v0.13.0
type GrabOperator struct{}
GrabOperator ...
func (GrabOperator) Dependencies ¶ added in v0.13.0
Dependencies ...
type InjectOperator ¶ added in v0.13.0
type InjectOperator struct{}
InjectOperator ...
func (InjectOperator) Dependencies ¶ added in v0.13.0
Dependencies ...
func (InjectOperator) Phase ¶ added in v0.13.0
func (InjectOperator) Phase() OperatorPhase
Phase ...
type KeysOperator ¶ added in v1.1.0
type KeysOperator struct{}
KeysOperator ...
func (KeysOperator) Dependencies ¶ added in v1.1.0
Dependencies ...
type Merger ¶ added in v0.9.0
type Merger struct {
AppendByDefault bool
Errors MultiError
// contains filtered or unexported fields
}
Merger ...
type NullOperator ¶ added in v0.13.0
type NullOperator struct {
Missing string
}
NullOperator ...
func (NullOperator) Dependencies ¶ added in v0.13.0
Dependencies ...
type Opcall ¶ added in v0.13.0
type Opcall struct {
// contains filtered or unexported fields
}
Opcall ...
func ParseOpcall ¶ added in v0.13.0
func ParseOpcall(phase OperatorPhase, src string) (*Opcall, error)
ParseOpcall ...
func (*Opcall) Dependencies ¶ added in v0.13.0
Dependencies ...
type Operator ¶ added in v0.13.0
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 ¶ added in v0.13.0
type OperatorPhase int
OperatorPhase ...
const ( // MergePhase ... MergePhase OperatorPhase = iota // EvalPhase ... EvalPhase // ParamPhase ... ParamPhase )
type ParamOperator ¶ added in v0.13.0
type ParamOperator struct{}
ParamOperator ...
func (ParamOperator) Dependencies ¶ added in v0.13.0
Dependencies ...
type Response ¶ added in v0.13.0
type Response struct {
Type Action
Value interface{}
}
Response ...
type StaticIPOperator ¶ added in v0.13.0
type StaticIPOperator struct{}
StaticIPOperator ...
func (StaticIPOperator) Dependencies ¶ added in v0.13.0
Dependencies ...
func (StaticIPOperator) Phase ¶ added in v0.13.0
func (StaticIPOperator) Phase() OperatorPhase
Phase ...
type VaultOperator ¶ added in v1.0.0
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 ¶ added in v1.0.0
Dependencies collects implicit dependencies that a given `(( vault ... ))` call has. There are none.
func (VaultOperator) Phase ¶ added in v1.0.0
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
|
|