Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Factories = make(map[string]func(cfg *config.Config, test *config.Test) (Tester, error))
Factories contains the list of all available testers. The tester can each then be created using the function saved in the map.
Functions ¶
This section is empty.
Types ¶
type Environment ¶
type Environment struct {
Hosts *Hosts
}
Environment environment information such as which hosts are doing what (clients, servers)
type Host ¶
type Host struct { Name string `json:"name"` Labels map[string]string `json:"labels"` Addresses *IPAddresses `json:"addresses"` }
Host host information, like labels and addresses (will most of the time be filled by the runners.Runner)
type Hosts ¶
type Hosts struct { Clients map[string]*Host `yaml:"clients"` Servers map[string]*Host `yaml:"servers"` }
Hosts contains a list of clients and servers hosts that will be used in the test environment.
type IPAddresses ¶
IPAddresses list of IPv4 and IPv6 addresses a host has
type Plan ¶
type Plan struct { TestStartTime time.Time `json:"plannedTime"` AffectedServers map[string]*Host `json:"affectedServers"` Commands [][]*Task `json:"commands"` Tester string `json:"tester"` RunOptions config.RunOptions `json:"runOptions"` }
Plan contains the information needed to execute the plan
type Status ¶
type Status struct { SuccessfulHosts StatusHosts `json:"successfulHosts"` FailedHosts StatusHosts `json:"failedHosts"` Errors map[string][]error `json:"errors"` }
Status status info for a task
func (*Status) AddFailedClient ¶
AddFailedClient add a client host that failed with error to the Status list
func (*Status) AddFailedServer ¶
AddFailedServer add a server host that failed with error to the Status list
func (*Status) AddSuccessfulClient ¶
AddSuccessfulClient add a successful client host to the list
func (*Status) AddSuccessfulServer ¶
AddSuccessfulServer add a successful server host to the list
type StatusHosts ¶
type StatusHosts struct { Servers map[string]int `json:"servers"` Clients map[string]int `json:"clients"` }
StatusHosts status per servers and clients list with counter