awsbackend

package
v3.2.3+incompatible Latest Latest
Warning

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

Go to latest
Published: May 26, 2017 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend struct {
	KeyPairs      *KeyPairs
	Stacks        *Stacks
	LoadBalancers *LoadBalancers
	Instances     *Instances
	Certificates  *Certificates

	CreateKeyPairCallCount int64
	CreateStackCallCount   int64
	// contains filtered or unexported fields
}

func New

func New(boshDirectorURL string) *Backend

func (*Backend) CreateKeyPair

func (b *Backend) CreateKeyPair(input *ec2.CreateKeyPairInput) (*ec2.CreateKeyPairOutput, error)

func (*Backend) CreateStack

func (*Backend) DeleteKeyPair

func (b *Backend) DeleteKeyPair(input *ec2.DeleteKeyPairInput) (*ec2.DeleteKeyPairOutput, error)

func (*Backend) DeleteServerCertificate

func (b *Backend) DeleteServerCertificate(input *iam.DeleteServerCertificateInput) (*iam.DeleteServerCertificateOutput, error)

func (*Backend) DeleteStack

func (*Backend) DescribeAvailabilityZones

func (b *Backend) DescribeAvailabilityZones(input *ec2.DescribeAvailabilityZonesInput) (*ec2.DescribeAvailabilityZonesOutput, error)

func (*Backend) DescribeInstances

func (b *Backend) DescribeInstances(input *ec2.DescribeInstancesInput) (*ec2.DescribeInstancesOutput, error)

func (*Backend) DescribeKeyPairs

func (b *Backend) DescribeKeyPairs(input *ec2.DescribeKeyPairsInput) (*ec2.DescribeKeyPairsOutput, error)

func (*Backend) DescribeLoadBalancers

func (b *Backend) DescribeLoadBalancers(input *elb.DescribeLoadBalancersInput) (*elb.DescribeLoadBalancersOutput, error)

func (*Backend) GetServerCertificate

func (b *Backend) GetServerCertificate(input *iam.GetServerCertificateInput) (*iam.GetServerCertificateOutput, error)

func (*Backend) UpdateStack

func (*Backend) UploadServerCertificate

func (b *Backend) UploadServerCertificate(input *iam.UploadServerCertificateInput) (*iam.UploadServerCertificateOutput, error)

type Certificate

type Certificate struct {
	Name            string
	CertificateBody string
	PrivateKey      string
	Chain           string
}

type Certificates

type Certificates struct {
	// contains filtered or unexported fields
}

func NewCertificates

func NewCertificates() *Certificates

func (*Certificates) All

func (c *Certificates) All() []Certificate

func (*Certificates) Delete

func (c *Certificates) Delete(name string)

func (*Certificates) Get

func (c *Certificates) Get(name string) (Certificate, bool)

func (*Certificates) Set

func (c *Certificates) Set(certificate Certificate)

type Instance

type Instance struct {
	Name  string
	VPCID string
}

type Instances

type Instances struct {
	// contains filtered or unexported fields
}

func NewInstances

func NewInstances() *Instances

func (*Instances) Get

func (i *Instances) Get() []Instance

func (*Instances) Set

func (i *Instances) Set(instances []Instance)

type KeyPair

type KeyPair struct {
	Name       string
	PrivateKey string
}

type KeyPairs

type KeyPairs struct {
	// contains filtered or unexported fields
}

func NewKeyPairs

func NewKeyPairs() *KeyPairs

func (*KeyPairs) All

func (k *KeyPairs) All() []KeyPair

func (*KeyPairs) CreateKeyPairReturnError

func (k *KeyPairs) CreateKeyPairReturnError() *awsfaker.ErrorResponse

func (*KeyPairs) Delete

func (k *KeyPairs) Delete(name string)

func (*KeyPairs) DeleteKeyPairReturnError

func (k *KeyPairs) DeleteKeyPairReturnError() *awsfaker.ErrorResponse

func (*KeyPairs) Get

func (k *KeyPairs) Get(name string) (KeyPair, bool)

func (*KeyPairs) Set

func (k *KeyPairs) Set(keyPair KeyPair)

func (*KeyPairs) SetCreateKeyPairReturnError

func (k *KeyPairs) SetCreateKeyPairReturnError(err *awsfaker.ErrorResponse)

func (*KeyPairs) SetDeleteKeyPairReturnError

func (k *KeyPairs) SetDeleteKeyPairReturnError(err *awsfaker.ErrorResponse)

type LoadBalancer

type LoadBalancer struct {
	Name      string
	Instances []string
}

type LoadBalancers

type LoadBalancers struct {
	// contains filtered or unexported fields
}

func NewLoadBalancers

func NewLoadBalancers() *LoadBalancers

func (*LoadBalancers) Delete

func (s *LoadBalancers) Delete(name string)

func (*LoadBalancers) Get

func (s *LoadBalancers) Get(name string) (LoadBalancer, bool)

func (*LoadBalancers) Set

func (s *LoadBalancers) Set(loadBalancer LoadBalancer)

type Stack

type Stack struct {
	Name       string
	Template   string
	WasUpdated bool
}

type Stacks

type Stacks struct {
	// contains filtered or unexported fields
}

func NewStacks

func NewStacks() *Stacks

func (*Stacks) CreateStackReturnError

func (s *Stacks) CreateStackReturnError() *awsfaker.ErrorResponse

func (*Stacks) Delete

func (s *Stacks) Delete(name string)

func (*Stacks) DeleteStackReturnError

func (s *Stacks) DeleteStackReturnError() *awsfaker.ErrorResponse

func (*Stacks) Get

func (s *Stacks) Get(name string) (Stack, bool)

func (*Stacks) Set

func (s *Stacks) Set(stack Stack)

func (*Stacks) SetCreateStackReturnError

func (s *Stacks) SetCreateStackReturnError(err *awsfaker.ErrorResponse)

func (*Stacks) SetDeleteStackReturnError

func (s *Stacks) SetDeleteStackReturnError(err *awsfaker.ErrorResponse)

Jump to

Keyboard shortcuts

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