aws

package
v0.0.0-...-35b58e7 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Deletable

type Deletable interface {
	Type() string
	Name() string
	Delete(*session.Session) error
}

Deletable provides an interface for any EC2 resource that can be deleted

type EBSVolume

type EBSVolume struct {
	*ec2.Volume
}

EBSVolume is a proxy for the AWS framework struct

func ListAvailableEBS

func ListAvailableEBS(s *session.Session) ([]EBSVolume, error)

ListAvailableEBS returns a list of Available EBSVolume

func (EBSVolume) Delete

func (v EBSVolume) Delete(s *session.Session) error

Delete the EBSVolume

func (EBSVolume) Name

func (v EBSVolume) Name() string

Name returns the Volume ID

func (EBSVolume) Sweeten

func (v EBSVolume) Sweeten(s *session.Session) error

Sweeten creates a snapshot for the volume and waits for it to finish before the deletion of the EBSVolume

func (EBSVolume) Type

func (v EBSVolume) Type() string

Type returns the EBS type

type EC2Instance

type EC2Instance struct {
	*ec2.Instance
}

EC2Instance is a proxy for the AWS framework struct

func ListInstances

func ListInstances(s *session.Session, ids []*string) ([]EC2Instance, error)

ListInstances returns the list of EC2Instance for the specific ids provided

func (EC2Instance) Delete

func (e EC2Instance) Delete(s *session.Session) error

Delete the LoadBalancer

func (EC2Instance) Name

func (e EC2Instance) Name() string

Name returns the EC2 Instance name

func (EC2Instance) Type

func (e EC2Instance) Type() string

Type returns the EC2 type

type LoadBalancer

type LoadBalancer struct {
	*elb.LoadBalancerDescription
}

LoadBalancer is a proxy for the AWS framework struct

func ListInactiveLoadBalancers

func ListInactiveLoadBalancers(s *session.Session) ([]LoadBalancer, error)

ListInactiveLoadBalancers returns a list of LoadBalancer that have no EC2Instance attached to it.

func (LoadBalancer) Delete

func (lb LoadBalancer) Delete(s *session.Session) error

Delete the LoadBalancer

func (LoadBalancer) Name

func (lb LoadBalancer) Name() string

Name returns the LoadBalancer name

func (LoadBalancer) Type

func (lb LoadBalancer) Type() string

Type returns the ELB type

type NetworkInterface

type NetworkInterface struct {
	*ec2.NetworkInterface
}

NetworkInterface is a proxy for the AWS framework struct

func ListUnattachedNetworkInterfaces

func ListUnattachedNetworkInterfaces(s *session.Session) ([]NetworkInterface, error)

ListUnattachedNetworkInterfaces returns a list of NetworkInterface that are currently not attached to an EC2Instance

func (NetworkInterface) Delete

func (ni NetworkInterface) Delete(s *session.Session) error

Delete the NetworkInterface

func (NetworkInterface) Name

func (ni NetworkInterface) Name() string

Name returns the NetworkInterface ID

func (NetworkInterface) Type

func (ni NetworkInterface) Type() string

Type returns the Network Interface type

type Snapshot

type Snapshot struct {
	*ec2.Snapshot
}

Snapshot is a proxy for the AWS framework struct

func (*Snapshot) Wait

func (snap *Snapshot) Wait(s *session.Session) error

Wait for the Snapshot to finish before doing anything else

type Sweetener

type Sweetener interface {
	Sweeten(*session.Session) error
}

Sweetener provides an interface to do preventive cleaning before deleting

Jump to

Keyboard shortcuts

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