Documentation ¶
Overview ¶
Package spinnaker provides an interface to the Spinnaker API
Index ¶
- func NewFakeTerm() chaosmonkey.Terminator
- type Spinnaker
- func (s Spinnaker) AccountID(name string) (id string, err error)
- func (s Spinnaker) AppNames() (appnames []string, err error)
- func (s Spinnaker) Apps(c chan<- *D.App, appNames []string)
- func (s Spinnaker) CloudProvider(account string) (provider string, err error)
- func (s Spinnaker) Execute(trm chaosmonkey.Termination) (err error)
- func (s Spinnaker) Get(app string) (c *chaosmonkey.AppConfig, err error)
- func (s Spinnaker) GetApp(appName string) (*D.App, error)
- func (s Spinnaker) OtherID(ins chaosmonkey.Instance) (otherID string, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFakeTerm ¶
func NewFakeTerm() chaosmonkey.Terminator
NewFakeTerm returns a fake Terminator that prints out what API calls it would make against Spinnaker
Types ¶
type Spinnaker ¶
type Spinnaker struct {
// contains filtered or unexported fields
}
Spinnaker implements the deploy.Deployment interface by querying Spinnaker and the chaosmonkey.Termination interface by terminating via Spinnaker API calls
func New ¶
New returns a Spinnaker using a .p12 cert at certPath encrypted with password. The user argument identifies the email address of the user which is sent in the payload of the terminateInstances task API call
func NewFromConfig ¶
NewFromConfig returns a Spinnaker based on config
func (Spinnaker) CloudProvider ¶
CloudProvider returns the cloud provider for a given account
func (Spinnaker) Execute ¶
func (s Spinnaker) Execute(trm chaosmonkey.Termination) (err error)
Execute implements term.Terminator.Execute
func (Spinnaker) Get ¶
func (s Spinnaker) Get(app string) (c *chaosmonkey.AppConfig, err error)
Get implements chaosmonkey.Getter.Get