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"`
}
FinalDefinitions are run after finishing running each bot
type InitialDefinitions ¶
type InitialDefinitions struct {
Function string `json:"function,omitempty"`
}
InitialDefinitions are set before running each bot
type Operation ¶
type Operation struct {
Type string `json:"type"`
Timeout int `json:"timeout"`
URI string `json:"uri"`
Args map[string]interface{} `json:"args"`
Expect ExpectSpec `json:"expect"`
Store StoreSpec `json:"store"`
Change map[string]interface{} `json:"change"`
}
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.