spinnaker

package
v2.0.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2016 License: Apache-2.0 Imports: 15 Imported by: 5

Documentation

Overview

Package spinnaker provides an interface to the Spinnaker API

Index

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, user string) (Spinnaker, error)

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

func NewFromConfig(cfg *config.Monkey) (Spinnaker, error)

NewFromConfig returns a Spinnaker based on config

func (Spinnaker) AccountID

func (s Spinnaker) AccountID(name string) (id string, err error)

AccountID returns numerical ID associated with an AWS account

func (Spinnaker) AppNames

func (s Spinnaker) AppNames() (appnames []string, err error)

AppNames returns list of names of all apps

func (Spinnaker) Apps

func (s Spinnaker) Apps(c chan<- *D.App, appNames []string)

Apps implements deploy.Deployment.Apps

func (Spinnaker) CloudProvider

func (s Spinnaker) CloudProvider(account string) (provider string, err error)

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

func (Spinnaker) GetApp

func (s Spinnaker) GetApp(appName string) (*D.App, error)

GetApp implements deploy.Deployment.GetApp

func (Spinnaker) OtherID

func (s Spinnaker) OtherID(ins chaosmonkey.Instance) (otherID string, err error)

OtherID returns the alternate instance id of an instance, if it exists If there is no alternate instance id, it returns an empty string This is used by Titus, where we also report the uuid

Jump to

Keyboard shortcuts

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