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(name 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) GetClusterNames(app string, account D.AccountName) (clusters []D.ClusterName, err error)
- func (s Spinnaker) GetInstanceIDs(app string, account D.AccountName, cloudProvider string, region D.RegionName, ...) (D.ASGName, []D.InstanceID, error)
- func (s Spinnaker) GetRegionNames(app string, account D.AccountName, cluster D.ClusterName) ([]D.RegionName, 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 ¶
func New(endpoint string, certPath string, password string, x509Cert string, x509Key string, user string) (Spinnaker, error)
New returns a Spinnaker using a .p12 cert at certPath encrypted with password or x509 cert. 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 name
func (Spinnaker) GetClusterNames ¶
func (s Spinnaker) GetClusterNames(app string, account D.AccountName) (clusters []D.ClusterName, err error)
GetClusterNames returns a list of cluster names for an app
func (Spinnaker) GetInstanceIDs ¶
func (s Spinnaker) GetInstanceIDs(app string, account D.AccountName, cloudProvider string, region D.RegionName, cluster D.ClusterName) (D.ASGName, []D.InstanceID, error)
GetInstanceIDs gets the instance ids for a cluster
func (Spinnaker) GetRegionNames ¶
func (s Spinnaker) GetRegionNames(app string, account D.AccountName, cluster D.ClusterName) ([]D.RegionName, error)
GetRegionNames returns a list of regions that a cluster is deployed into