Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExpectSpecEntry ¶
type ExpectSpecEntry struct { Type string `json:"type"` Value interface{} `json:"value"` }
ExpectSpecEntry ...
type FinalDefinitions ¶
type FinalDefinitions struct { Function string `json:"function,omitempty"` Args map[string]interface{} `json:"args,omitempty"` }
FinalDefinitions are run after finishing running each bot
type InitialDefinitions ¶
type InitialDefinitions struct { Function string `json:"function,omitempty"` Args map[string]interface{} `json:"args,omitempty"` }
InitialDefinitions are set before running each bot
type Operation ¶
type Operation struct { Type string `json:"type"` Timeout int `json:"timeout,omitempty"` URI string `json:"uri"` Args map[string]interface{} `json:"args"` Expect ExpectSpec `json:"expect,omitempty"` Store StoreSpec `json:"store,omitempty"` Change map[string]interface{} `json:"change,omitempty"` }
Operation defines an operation the bot may execute
type Spec ¶
type Spec struct { Name string `json:"name"` NumberOfInstances int `json:"numberOfInstances"` PreRun *InitialDefinitions `json:"preRun,omitempty"` SequentialOperations []*Operation `json:"sequentialOperations,omitempty"` PostRun *FinalDefinitions `json:"postRun,omitempty"` }
Spec defines the bots' spec
type StoreSpecEntry ¶
StoreSpecEntry ...
Click to show internal directories.
Click to hide internal directories.