Documentation ¶
Overview ¶
Package destroyer provides an API for chaos servers.
Index ¶
Constants ¶
View Source
const ( Up = Status(iota) Down Pending Any )
Status allowed values
Variables ¶
View Source
var ErrNotMatchingService = errors.New("Some service has no instance matching")
ErrNotMatchingService indicates that some service has no instance matching
Functions ¶
This section is empty.
Types ¶
type ChaosServer ¶
type ChaosServer interface { // Shutdown turns down instances. // For Chaos Server implementation especific Shutdown(svc string) error // ListInstances lists all instances that are in any state ListInstances(status Status) ([]Instance, error) LifeCycle }
ChaosServer is an interface for chaos server implementation
type Destroyer ¶
type Destroyer struct {
ChaosSrv ChaosServer
}
Destroyer implements chaos server operations
type LifeCycle ¶
type LifeCycle interface { // OnStart runs before the host is served. // Could be used as configuration routine for before stating the server OnStart() }
LifeCycle contains routines that execute in the chaos server lifecycle
type Server ¶
type Server struct { Cred *auth.Credentials // contains filtered or unexported fields }
Server implements chaos server API
Click to show internal directories.
Click to hide internal directories.