Documentation ¶
Index ¶
- func GenerateID(format string, a ...interface{}) string
- func MakeProxyField(i interface{}) interface{}
- func SetFieldValue(f, v interface{}) error
- func VerboseString(f stringField) string
- type ArrayBaseField
- func (f *ArrayBaseField) Any() []interface{}
- func (f *ArrayBaseField) Current() []interface{}
- func (f *ArrayBaseField) EmptyValue() interface{}
- func (f *ArrayBaseField) FieldDependencies() []interface{}
- func (f *ArrayBaseField) Input() ArrayInputField
- func (f *ArrayBaseField) IsChanged() bool
- func (f *ArrayBaseField) LookupCurrent() (v []interface{}, ok bool)
- func (f *ArrayBaseField) LookupWanted() (v []interface{}, ok bool)
- func (f *ArrayBaseField) Serialize(i interface{}) interface{}
- func (f *ArrayBaseField) SetCurrent(i []interface{})
- func (f *ArrayBaseField) SetWanted(i []interface{})
- func (f *ArrayBaseField) Wanted() []interface{}
- type ArrayInputField
- type ArrayOutputField
- type BoolBaseField
- func (f *BoolBaseField) Any() bool
- func (f *BoolBaseField) Current() bool
- func (f *BoolBaseField) EmptyValue() interface{}
- func (f *BoolBaseField) Input() BoolInputField
- func (f *BoolBaseField) LookupCurrent() (v, ok bool)
- func (f *BoolBaseField) LookupWanted() (v, ok bool)
- func (f *BoolBaseField) SetCurrent(i bool)
- func (f *BoolBaseField) SetWanted(i bool)
- func (f *BoolBaseField) Wanted() bool
- type BoolInputField
- type BoolOutputField
- type Field
- type FieldBase
- func (f *FieldBase) Invalidate()
- func (f *FieldBase) IsChanged() bool
- func (f *FieldBase) IsCurrentDefined() bool
- func (f *FieldBase) IsOutput() bool
- func (f *FieldBase) IsValid() bool
- func (f *FieldBase) IsWantedDefined() bool
- func (f *FieldBase) LookupCurrentRaw() (interface{}, bool)
- func (f *FieldBase) LookupWantedRaw() (interface{}, bool)
- func (f *FieldBase) Serialize(i interface{}) interface{}
- func (f *FieldBase) SetWantedLazy(i func() interface{})
- func (f *FieldBase) UnsetCurrent()
- func (f *FieldBase) UnsetWanted()
- type FieldDependencyHolder
- type FieldVarEvaluator
- type IStringBaseField
- type InputField
- type IntBaseField
- func (f *IntBaseField) Any() int
- func (f *IntBaseField) Current() int
- func (f *IntBaseField) EmptyValue() interface{}
- func (f *IntBaseField) Input() IntInputField
- func (f *IntBaseField) LookupCurrent() (v int, ok bool)
- func (f *IntBaseField) LookupWanted() (v int, ok bool)
- func (f *IntBaseField) SetCurrent(i int)
- func (f *IntBaseField) SetWanted(i int)
- func (f *IntBaseField) Wanted() int
- type IntInputField
- type IntOutputField
- type LazyStringBaseField
- type MapBaseField
- func (f *MapBaseField) Any() map[string]interface{}
- func (f *MapBaseField) Current() map[string]interface{}
- func (f *MapBaseField) CurrentFieldMap() map[string]Field
- func (f *MapBaseField) EmptyValue() interface{}
- func (f *MapBaseField) FieldDependencies() []interface{}
- func (f *MapBaseField) Input() MapInputField
- func (f *MapBaseField) IsChanged() bool
- func (f *MapBaseField) LookupCurrent() (v map[string]interface{}, ok bool)
- func (f *MapBaseField) LookupWanted() (v map[string]interface{}, ok bool)
- func (f *MapBaseField) Serialize(i interface{}) interface{}
- func (f *MapBaseField) SetCurrent(i map[string]interface{})
- func (f *MapBaseField) SetWanted(i map[string]interface{})
- func (f *MapBaseField) Wanted() map[string]interface{}
- func (f *MapBaseField) WantedFieldMap() map[string]Field
- type MapInputField
- type MapOutputField
- type OutputField
- type RandomStringField
- type SprintfBaseField
- func (f *SprintfBaseField) Any() string
- func (f *SprintfBaseField) Current() string
- func (f *SprintfBaseField) EmptyValue() interface{}
- func (f *SprintfBaseField) FieldDependencies() []interface{}
- func (f *SprintfBaseField) IsChanged() bool
- func (f *SprintfBaseField) LookupCurrent() (v string, ok bool)
- func (f *SprintfBaseField) LookupCurrentRaw() (v interface{}, ok bool)
- func (f *SprintfBaseField) LookupWanted() (string, bool)
- func (f *SprintfBaseField) LookupWantedRaw() (interface{}, bool)
- func (f *SprintfBaseField) SetCurrent(i string)
- func (f *SprintfBaseField) SetWanted(i string)
- func (f *SprintfBaseField) Wanted() string
- type StringBaseField
- func (f *StringBaseField) Any() string
- func (f *StringBaseField) Current() string
- func (f *StringBaseField) EmptyValue() interface{}
- func (f *StringBaseField) Input() StringInputField
- func (f *StringBaseField) LookupCurrent() (v string, ok bool)
- func (f *StringBaseField) LookupWanted() (v string, ok bool)
- func (f *StringBaseField) SetCurrent(i string)
- func (f *StringBaseField) SetWanted(i string)
- func (f *StringBaseField) Wanted() string
- type StringInputField
- func IString(val string) StringInputField
- func LazyString(newValue func() string) StringInputField
- func RandomString(lower, upper, numeric, special bool, length int) StringInputField
- func RandomStringWithPrefix(prefix string, lower, upper, numeric, special bool, length int) StringInputField
- func RandomStringWithSuffix(suffix string, lower, upper, numeric, special bool, length int) StringInputField
- func Sprintf(format string, args ...interface{}) StringInputField
- func String(val string) StringInputField
- func StringUnset() StringInputField
- type StringOutputField
- type ValueTracker
- type VerboseField
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateID ¶
func MakeProxyField ¶
func MakeProxyField(i interface{}) interface{}
func SetFieldValue ¶
func SetFieldValue(f, v interface{}) error
func VerboseString ¶
func VerboseString(f stringField) string
Types ¶
type ArrayBaseField ¶
type ArrayBaseField struct {
FieldBase
}
func (*ArrayBaseField) Any ¶
func (f *ArrayBaseField) Any() []interface{}
func (*ArrayBaseField) Current ¶
func (f *ArrayBaseField) Current() []interface{}
func (*ArrayBaseField) EmptyValue ¶
func (f *ArrayBaseField) EmptyValue() interface{}
func (*ArrayBaseField) FieldDependencies ¶
func (f *ArrayBaseField) FieldDependencies() []interface{}
func (*ArrayBaseField) Input ¶
func (f *ArrayBaseField) Input() ArrayInputField
func (*ArrayBaseField) IsChanged ¶
func (f *ArrayBaseField) IsChanged() bool
func (*ArrayBaseField) LookupCurrent ¶
func (f *ArrayBaseField) LookupCurrent() (v []interface{}, ok bool)
func (*ArrayBaseField) LookupWanted ¶
func (f *ArrayBaseField) LookupWanted() (v []interface{}, ok bool)
func (*ArrayBaseField) Serialize ¶
func (f *ArrayBaseField) Serialize(i interface{}) interface{}
func (*ArrayBaseField) SetCurrent ¶
func (f *ArrayBaseField) SetCurrent(i []interface{})
func (*ArrayBaseField) SetWanted ¶
func (f *ArrayBaseField) SetWanted(i []interface{})
func (*ArrayBaseField) Wanted ¶
func (f *ArrayBaseField) Wanted() []interface{}
type ArrayInputField ¶
type ArrayInputField interface { InputField LookupWanted() ([]interface{}, bool) Wanted() []interface{} SetWanted([]interface{}) Any() []interface{} // contains filtered or unexported methods }
func Array ¶
func Array(val []Field) ArrayInputField
func ArrayUnset ¶
func ArrayUnset() ArrayInputField
type ArrayOutputField ¶
type ArrayOutputField interface { OutputField Input() ArrayInputField // contains filtered or unexported methods }
func ArrayOutput ¶
func ArrayOutput(val []Field) ArrayOutputField
func ArrayUnsetOutput ¶
func ArrayUnsetOutput() ArrayOutputField
type BoolBaseField ¶
type BoolBaseField struct {
FieldBase
}
func (*BoolBaseField) Any ¶
func (f *BoolBaseField) Any() bool
func (*BoolBaseField) Current ¶
func (f *BoolBaseField) Current() bool
func (*BoolBaseField) EmptyValue ¶
func (f *BoolBaseField) EmptyValue() interface{}
func (*BoolBaseField) Input ¶
func (f *BoolBaseField) Input() BoolInputField
func (*BoolBaseField) LookupCurrent ¶
func (f *BoolBaseField) LookupCurrent() (v, ok bool)
func (*BoolBaseField) LookupWanted ¶
func (f *BoolBaseField) LookupWanted() (v, ok bool)
func (*BoolBaseField) SetCurrent ¶
func (f *BoolBaseField) SetCurrent(i bool)
func (*BoolBaseField) SetWanted ¶
func (f *BoolBaseField) SetWanted(i bool)
func (*BoolBaseField) Wanted ¶
func (f *BoolBaseField) Wanted() bool
type BoolInputField ¶
type BoolInputField interface { InputField LookupWanted() (bool, bool) Wanted() bool SetWanted(bool) Any() bool // contains filtered or unexported methods }
func Bool ¶
func Bool(val bool) BoolInputField
func BoolUnset ¶
func BoolUnset() BoolInputField
type BoolOutputField ¶
type BoolOutputField interface { OutputField Input() BoolInputField // contains filtered or unexported methods }
func BoolOutput ¶
func BoolOutput(val bool) BoolOutputField
func BoolUnsetOutput ¶
func BoolUnsetOutput() BoolOutputField
type Field ¶
type Field interface { ValueTracker Serialize(interface{}) interface{} LookupCurrentRaw() (interface{}, bool) UnsetCurrent() IsOutput() bool EmptyValue() interface{} }
type FieldBase ¶
type FieldBase struct {
// contains filtered or unexported fields
}
func BasicValue ¶
func BasicValueFunc ¶
func BasicValueFunc(f func() interface{}) FieldBase
func BasicValueLazy ¶
func BasicValueLazy(f func() interface{}) FieldBase
func BasicValueUnset ¶
func (*FieldBase) Invalidate ¶
func (f *FieldBase) Invalidate()
func (*FieldBase) IsCurrentDefined ¶
func (*FieldBase) IsWantedDefined ¶
func (*FieldBase) LookupCurrentRaw ¶
func (*FieldBase) LookupWantedRaw ¶
func (*FieldBase) SetWantedLazy ¶
func (f *FieldBase) SetWantedLazy(i func() interface{})
func (*FieldBase) UnsetCurrent ¶
func (f *FieldBase) UnsetCurrent()
func (*FieldBase) UnsetWanted ¶
func (f *FieldBase) UnsetWanted()
type FieldDependencyHolder ¶
type FieldDependencyHolder interface {
FieldDependencies() []interface{}
}
type FieldVarEvaluator ¶
type FieldVarEvaluator struct {
*util.BaseVarEvaluator
}
func NewFieldVarEvaluator ¶
func NewFieldVarEvaluator(vars map[string]interface{}) *FieldVarEvaluator
func (*FieldVarEvaluator) Expand ¶
func (e *FieldVarEvaluator) Expand(input string) (StringInputField, error)
type IStringBaseField ¶
type IStringBaseField struct {
StringBaseField
}
func (*IStringBaseField) IsChanged ¶
func (f *IStringBaseField) IsChanged() bool
type InputField ¶
type IntBaseField ¶
type IntBaseField struct {
FieldBase
}
func (*IntBaseField) Any ¶
func (f *IntBaseField) Any() int
func (*IntBaseField) Current ¶
func (f *IntBaseField) Current() int
func (*IntBaseField) EmptyValue ¶
func (f *IntBaseField) EmptyValue() interface{}
func (*IntBaseField) Input ¶
func (f *IntBaseField) Input() IntInputField
func (*IntBaseField) LookupCurrent ¶
func (f *IntBaseField) LookupCurrent() (v int, ok bool)
func (*IntBaseField) LookupWanted ¶
func (f *IntBaseField) LookupWanted() (v int, ok bool)
func (*IntBaseField) SetCurrent ¶
func (f *IntBaseField) SetCurrent(i int)
func (*IntBaseField) SetWanted ¶
func (f *IntBaseField) SetWanted(i int)
func (*IntBaseField) Wanted ¶
func (f *IntBaseField) Wanted() int
type IntInputField ¶
type IntInputField interface { InputField LookupWanted() (int, bool) Wanted() int SetWanted(int) Any() int // contains filtered or unexported methods }
func Int ¶
func Int(val int) IntInputField
func IntUnset ¶
func IntUnset() IntInputField
type IntOutputField ¶
type IntOutputField interface { OutputField Input() IntInputField // contains filtered or unexported methods }
func IntOutput ¶
func IntOutput(val int) IntOutputField
func IntUnsetOutput ¶
func IntUnsetOutput() IntOutputField
type LazyStringBaseField ¶
type LazyStringBaseField struct { StringBaseField // contains filtered or unexported fields }
func (*LazyStringBaseField) SetCurrent ¶
func (f *LazyStringBaseField) SetCurrent(i string)
func (*LazyStringBaseField) UnsetCurrent ¶
func (f *LazyStringBaseField) UnsetCurrent()
type MapBaseField ¶
type MapBaseField struct {
FieldBase
}
func (*MapBaseField) Any ¶
func (f *MapBaseField) Any() map[string]interface{}
func (*MapBaseField) Current ¶
func (f *MapBaseField) Current() map[string]interface{}
func (*MapBaseField) CurrentFieldMap ¶
func (f *MapBaseField) CurrentFieldMap() map[string]Field
func (*MapBaseField) EmptyValue ¶
func (f *MapBaseField) EmptyValue() interface{}
func (*MapBaseField) FieldDependencies ¶
func (f *MapBaseField) FieldDependencies() []interface{}
func (*MapBaseField) Input ¶
func (f *MapBaseField) Input() MapInputField
func (*MapBaseField) IsChanged ¶
func (f *MapBaseField) IsChanged() bool
func (*MapBaseField) LookupCurrent ¶
func (f *MapBaseField) LookupCurrent() (v map[string]interface{}, ok bool)
func (*MapBaseField) LookupWanted ¶
func (f *MapBaseField) LookupWanted() (v map[string]interface{}, ok bool)
func (*MapBaseField) Serialize ¶
func (f *MapBaseField) Serialize(i interface{}) interface{}
func (*MapBaseField) SetCurrent ¶
func (f *MapBaseField) SetCurrent(i map[string]interface{})
func (*MapBaseField) SetWanted ¶
func (f *MapBaseField) SetWanted(i map[string]interface{})
func (*MapBaseField) Wanted ¶
func (f *MapBaseField) Wanted() map[string]interface{}
func (*MapBaseField) WantedFieldMap ¶
func (f *MapBaseField) WantedFieldMap() map[string]Field
type MapInputField ¶
type MapInputField interface { InputField LookupWanted() (map[string]interface{}, bool) Wanted() map[string]interface{} SetWanted(map[string]interface{}) Any() map[string]interface{} // contains filtered or unexported methods }
func Map ¶
func Map(val map[string]Field) MapInputField
func MapLazy ¶
func MapLazy(f func() map[string]Field) MapInputField
func MapUnset ¶
func MapUnset() MapInputField
type MapOutputField ¶
type MapOutputField interface { OutputField Input() MapInputField // contains filtered or unexported methods }
func MapOutput ¶
func MapOutput(val map[string]Field) MapOutputField
func MapUnsetOutput ¶
func MapUnsetOutput() MapOutputField
type OutputField ¶
type OutputField interface { Field }
type RandomStringField ¶
type RandomStringField struct { LazyStringBaseField // contains filtered or unexported fields }
func (*RandomStringField) Verbose ¶
func (f *RandomStringField) Verbose() string
type SprintfBaseField ¶
type SprintfBaseField struct { FieldBase // contains filtered or unexported fields }
func (*SprintfBaseField) Any ¶
func (f *SprintfBaseField) Any() string
func (*SprintfBaseField) Current ¶
func (f *SprintfBaseField) Current() string
func (*SprintfBaseField) EmptyValue ¶
func (f *SprintfBaseField) EmptyValue() interface{}
func (*SprintfBaseField) FieldDependencies ¶
func (f *SprintfBaseField) FieldDependencies() []interface{}
func (*SprintfBaseField) IsChanged ¶
func (f *SprintfBaseField) IsChanged() bool
func (*SprintfBaseField) LookupCurrent ¶
func (f *SprintfBaseField) LookupCurrent() (v string, ok bool)
func (*SprintfBaseField) LookupCurrentRaw ¶
func (f *SprintfBaseField) LookupCurrentRaw() (v interface{}, ok bool)
func (*SprintfBaseField) LookupWanted ¶
func (f *SprintfBaseField) LookupWanted() (string, bool)
func (*SprintfBaseField) LookupWantedRaw ¶
func (f *SprintfBaseField) LookupWantedRaw() (interface{}, bool)
func (*SprintfBaseField) SetCurrent ¶
func (f *SprintfBaseField) SetCurrent(i string)
func (*SprintfBaseField) SetWanted ¶
func (f *SprintfBaseField) SetWanted(i string)
func (*SprintfBaseField) Wanted ¶
func (f *SprintfBaseField) Wanted() string
type StringBaseField ¶
type StringBaseField struct {
FieldBase
}
func (*StringBaseField) Any ¶
func (f *StringBaseField) Any() string
func (*StringBaseField) Current ¶
func (f *StringBaseField) Current() string
func (*StringBaseField) EmptyValue ¶
func (f *StringBaseField) EmptyValue() interface{}
func (*StringBaseField) Input ¶
func (f *StringBaseField) Input() StringInputField
func (*StringBaseField) LookupCurrent ¶
func (f *StringBaseField) LookupCurrent() (v string, ok bool)
func (*StringBaseField) LookupWanted ¶
func (f *StringBaseField) LookupWanted() (v string, ok bool)
func (*StringBaseField) SetCurrent ¶
func (f *StringBaseField) SetCurrent(i string)
func (*StringBaseField) SetWanted ¶
func (f *StringBaseField) SetWanted(i string)
func (*StringBaseField) Wanted ¶
func (f *StringBaseField) Wanted() string
type StringInputField ¶
type StringInputField interface { InputField LookupWanted() (string, bool) Wanted() string SetWanted(string) Any() string // contains filtered or unexported methods }
func IString ¶
func IString(val string) StringInputField
func LazyString ¶
func LazyString(newValue func() string) StringInputField
func RandomString ¶
func RandomString(lower, upper, numeric, special bool, length int) StringInputField
func RandomStringWithPrefix ¶
func RandomStringWithPrefix(prefix string, lower, upper, numeric, special bool, length int) StringInputField
func RandomStringWithSuffix ¶
func RandomStringWithSuffix(suffix string, lower, upper, numeric, special bool, length int) StringInputField
func Sprintf ¶
func Sprintf(format string, args ...interface{}) StringInputField
func String ¶
func String(val string) StringInputField
func StringUnset ¶
func StringUnset() StringInputField
type StringOutputField ¶
type StringOutputField interface { OutputField Input() StringInputField // contains filtered or unexported methods }
func StringOutput ¶
func StringOutput(val string) StringOutputField
func StringUnsetOutput ¶
func StringUnsetOutput() StringOutputField
type ValueTracker ¶
type VerboseField ¶
type VerboseField interface {
Verbose() string
}
Click to show internal directories.
Click to hide internal directories.