Documentation ¶
Index ¶
- func InvokeAction(ctx context.Context, req *Request, reply interface{}, timeout int, shim string, ...) error
- func ParseCompoundFilter(ctx context.Context, filter string, shim string, shimcfg string) (string, error)
- func ValidateCompoundCallStack(ctx context.Context, cs string, timeout int, shim string, shimcfg string) (bool, error)
- func ValidateCompoundFilter(ctx context.Context, filter string, timeout int, shim string, shimcfg string) (bool, error)
- type Request
- type RequestBody
- type ValidateReply
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InvokeAction ¶
func InvokeAction(ctx context.Context, req *Request, reply interface{}, timeout int, shim string, shimcfg string) error
InvokeAction runs a action found within a ruby agent
func ParseCompoundFilter ¶
func ParseCompoundFilter(ctx context.Context, filter string, shim string, shimcfg string) (string, error)
ParseCompoundFilter parses a compound filter and return the JSON representation of it
Types ¶
type Request ¶
type Request struct { Agent string `json:"agent"` Action string `json:"action"` RequestID string `json:"requestid"` SenderID string `json:"senderid"` CallerID string `json:"callerid"` Collective string `json:"collective"` TTL int `json:"ttl"` Time int64 `json:"msgtime"` Body *RequestBody `json:"body"` }
Request is the request being published to the shim runner
type RequestBody ¶
type RequestBody struct { Agent string `json:"agent"` Action string `json:"action"` Data json.RawMessage `json:"data"` Caller string `json:"caller"` }
RequestBody is the body passed to the
type ValidateReply ¶
type ValidateReply struct {
Matched bool `json:"matched"`
}
ValidateReply is the reply when validating a compound filter
Click to show internal directories.
Click to hide internal directories.