models

package
v0.0.0-...-26835a4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 14, 2019 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExpectSpec

type ExpectSpec map[string]ExpectSpecEntry

ExpectSpec ...

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 StoreSpec

type StoreSpec map[string]StoreSpecEntry

StoreSpec ...

type StoreSpecEntry

type StoreSpecEntry struct {
	Type  string `json:"type"`
	Value string `json:"value"`
}

StoreSpecEntry ...

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL