Documentation ¶
Index ¶
- type Context
- func (c *Context) GetEntry(param string) interface{}
- func (c *Context) IsReady() bool
- func (c *Context) RegistryRemoteLoaded(param string, resolver string)
- func (c *Context) RegistryRemoteLoadedWithFrom(param string, resolver string, from string)
- func (c *Context) RegistryRequiredParams(params ...string)
- func (c *Context) SetRequiredConfigured()
- type Getter
- type HTTPClient
- type Loader
- type RemoteLoaded
- type RemoteLoadeds
- type Resolver
- type Result
- type TypedMap
- func (c *TypedMap) AddItem(param string, item interface{}) []interface{}
- func (c *TypedMap) AddItems(param string, items ...interface{}) []interface{}
- func (c *TypedMap) Get(param string) interface{}
- func (c *TypedMap) GetBool(param string) bool
- func (c *TypedMap) GetEntries() map[string]interface{}
- func (c *TypedMap) GetEntry(param string) interface{}
- func (c *TypedMap) GetFloat(param string) float64
- func (c *TypedMap) GetInt(param string) int64
- func (c *TypedMap) GetMap(param string) *TypedMap
- func (c *TypedMap) GetSlice(param string) []interface{}
- func (c *TypedMap) GetString(param string) string
- func (c *TypedMap) Has(param string) bool
- func (c *TypedMap) Put(param string, value interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct { RawContext context.Context TypedMap RemoteLoadeds RemoteLoadeds RequiredParams []string Resolver Loader RequiredConfigured bool }
Context its used to store parameters and temporary variables during rule assertions
func NewContextFromMap ¶
NewContextFromMap method create a new Context from map
func (*Context) RegistryRemoteLoaded ¶
RegistryRemoteLoaded ...
func (*Context) RegistryRemoteLoadedWithFrom ¶
RegistryRemoteLoadedWithFrom ...
func (*Context) RegistryRequiredParams ¶
RegistryRequiredParams ...
func (*Context) SetRequiredConfigured ¶
func (c *Context) SetRequiredConfigured()
SetRequiredConfigured ...
type Result ¶
type Result struct {
TypedMap
}
Result its used to store features in end rule assertions
func (*Result) GetFeatures ¶
GetFeatures get list of features
type TypedMap ¶
type TypedMap struct { Getter // contains filtered or unexported fields }
TypedMap its a map with method to gets entries with specific types
func NewTypedMapFromMap ¶
NewTypedMapFromMap method create a new TypedMap
func (*TypedMap) GetEntries ¶
GetEntries method get all entries of map
Click to show internal directories.
Click to hide internal directories.