Documentation
¶
Index ¶
- func MapHasKey(key string, m map[string]string) bool
- type Check
- func All(funcs ...Check) Check
- func And(a, b Check) Check
- func Any(funcs ...Check) Check
- func AtLeastN(n int, funcs ...Check) Check
- func ExistsInPath(progname string) Check
- func FieldEquals(obj interface{}, fieldname string, equals interface{}) Check
- func FieldNotEmpty(obj interface{}, fieldname string) Check
- func HasConfigKey(obj interface{}, key string) Check
- func HasVarDefined(obj interface{}, varname string) Check
- func Not(f Check) Check
- func Or(a, b Check) Check
- type Requirement
- type Validations
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Check ¶
Check is a type alias to describe a method that validates a laforge context
func ExistsInPath ¶
ExistsInPath checks to see if a command line tool is installed and in the current user's path
func FieldEquals ¶
FieldEquals allows for comparison of various fields within the Laforge state during builder validation
func FieldNotEmpty ¶
FieldNotEmpty checks a type in the context state for a nil/zero value field and fails if it is so.
func HasConfigKey ¶
HasConfigKey checks configurable types (Competition, DNS, Environment) for configuration values.
func HasVarDefined ¶
HasVarDefined checks types supporting variable assignment to see if they have a variable of a specific name assigned. valid object classes: Command, Host, Identity, Network, RemoteFile, Script
type Requirement ¶
Requirement defines a named requirement that must be met for a builder to continue
type Validations ¶
type Validations []Requirement
Validations is suppose to be a sequence of validations that must pass for a builder