ec2

package
v0.55.0 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2019 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 Address

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

func NewAddress

func NewAddress(client addressesClient, publicIp, allocationId *string, tags []*awsec2.Tag) Address

func (Address) Delete

func (a Address) Delete() error

func (Address) Name

func (a Address) Name() string

func (Address) Type added in v0.16.0

func (a Address) Type() string

type Addresses

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

func NewAddresses

func NewAddresses(client addressesClient, logger logger) Addresses

func (Addresses) List

func (d Addresses) List(filter string) ([]common.Deletable, error)

func (Addresses) Type added in v0.28.0

func (d Addresses) Type() string

type Image added in v0.25.0

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

func NewImage added in v0.25.0

func NewImage(client imagesClient, id *string, resourceTags resourceTags) Image

func (Image) Delete added in v0.25.0

func (i Image) Delete() error

func (Image) Name added in v0.25.0

func (i Image) Name() string

func (Image) Type added in v0.25.0

func (i Image) Type() string

type Images added in v0.25.0

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

func NewImages added in v0.25.0

func NewImages(client imagesClient, stsClient stsClient, logger logger, resourceTags resourceTags) Images

func (Images) List added in v0.25.0

func (i Images) List(filter string) ([]common.Deletable, error)

func (Images) Type added in v0.28.0

func (i Images) Type() string

type Instance

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

func NewInstance

func NewInstance(client instancesClient, logger logger, resourceTags resourceTags, id, keyName *string, tags []*awsec2.Tag) Instance

func (Instance) Delete

func (i Instance) Delete() error

Delete finds any addresses bound to the instance set for deletion, terminates the instance, waits for it to be terminated, deletes any tags that were bound to this instance, and finally releases the addresses.

func (Instance) Name

func (i Instance) Name() string

func (Instance) Type added in v0.16.0

func (i Instance) Type() string

type Instances

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

func NewInstances

func NewInstances(client instancesClient, logger logger, resourceTags resourceTags) Instances

func (Instances) List

func (i Instances) List(filter string) ([]common.Deletable, error)

func (Instances) Type added in v0.28.0

func (i Instances) Type() string

type InternetGateways

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

func NewInternetGateways

func NewInternetGateways(client internetGatewaysClient, logger logger) InternetGateways

func (InternetGateways) Delete

func (n InternetGateways) Delete(vpcId string) error

type KeyPair

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

func NewKeyPair

func NewKeyPair(client keyPairsClient, name *string) KeyPair

func (KeyPair) Delete

func (k KeyPair) Delete() error

func (KeyPair) Name

func (k KeyPair) Name() string

func (KeyPair) Type added in v0.16.0

func (k KeyPair) Type() string

type KeyPairs

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

func NewKeyPairs

func NewKeyPairs(client keyPairsClient, logger logger) KeyPairs

func (KeyPairs) List

func (k KeyPairs) List(filter string) ([]common.Deletable, error)

func (KeyPairs) Type added in v0.28.0

func (k KeyPairs) Type() string

type NatGateway added in v0.31.0

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

func NewNatGateway added in v0.31.0

func NewNatGateway(client natGatewaysClient, logger logger, id *string, tags []*awsec2.Tag) NatGateway

func (NatGateway) Delete added in v0.31.0

func (n NatGateway) Delete() error

func (NatGateway) Name added in v0.31.0

func (n NatGateway) Name() string

func (NatGateway) Type added in v0.31.0

func (n NatGateway) Type() string

type NatGateways added in v0.31.0

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

func NewNatGateways added in v0.31.0

func NewNatGateways(client natGatewaysClient, logger logger) NatGateways

func (NatGateways) List added in v0.31.0

func (n NatGateways) List(filter string) ([]common.Deletable, error)

func (NatGateways) Type added in v0.31.0

func (n NatGateways) Type() string

type NetworkInterface

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

func NewNetworkInterface

func NewNetworkInterface(client networkInterfacesClient, id *string, tags []*awsec2.Tag) NetworkInterface

func (NetworkInterface) Delete

func (n NetworkInterface) Delete() error

func (NetworkInterface) Name

func (n NetworkInterface) Name() string

func (NetworkInterface) Type added in v0.16.0

func (n NetworkInterface) Type() string

type NetworkInterfaces

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

func NewNetworkInterfaces

func NewNetworkInterfaces(client networkInterfacesClient, logger logger) NetworkInterfaces

func (NetworkInterfaces) List

func (e NetworkInterfaces) List(filter string) ([]common.Deletable, error)

func (NetworkInterfaces) Type added in v0.28.0

func (e NetworkInterfaces) Type() string

type ResourceTags added in v0.24.0

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

func NewResourceTags added in v0.24.0

func NewResourceTags(client tagsClient) ResourceTags

func (ResourceTags) Delete added in v0.24.0

func (r ResourceTags) Delete(resourceType, resourceId string) error

type RouteTables

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

func NewRouteTables

func NewRouteTables(client routesClient, logger logger, resourceTags resourceTags) RouteTables

func (RouteTables) Delete

func (u RouteTables) Delete(vpcId string) error

type SecurityGroup

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

func NewSecurityGroup

func NewSecurityGroup(client securityGroupsClient, logger logger, resourceTags resourceTags, id, groupName *string, tags []*awsec2.Tag, ingress []*awsec2.IpPermission, egress []*awsec2.IpPermission) SecurityGroup

func (SecurityGroup) Delete

func (s SecurityGroup) Delete() error

func (SecurityGroup) Name

func (s SecurityGroup) Name() string

func (SecurityGroup) Type added in v0.16.0

func (s SecurityGroup) Type() string

type SecurityGroups

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

func NewSecurityGroups

func NewSecurityGroups(client securityGroupsClient, logger logger, resourceTags resourceTags) SecurityGroups

func (SecurityGroups) List

func (s SecurityGroups) List(filter string) ([]common.Deletable, error)

func (SecurityGroups) Type added in v0.28.0

func (s SecurityGroups) Type() string

type Snapshot added in v0.25.0

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

func NewSnapshot added in v0.25.0

func NewSnapshot(client snapshotsClient, id *string) Snapshot

func (Snapshot) Delete added in v0.25.0

func (s Snapshot) Delete() error

func (Snapshot) Name added in v0.25.0

func (s Snapshot) Name() string

func (Snapshot) Type added in v0.25.0

func (s Snapshot) Type() string

type Snapshots added in v0.25.0

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

func NewSnapshots added in v0.25.0

func NewSnapshots(client snapshotsClient, stsClient stsClient, logger logger) Snapshots

func (Snapshots) List added in v0.25.0

func (s Snapshots) List(filter string) ([]common.Deletable, error)

func (Snapshots) Type added in v0.28.0

func (s Snapshots) Type() string

type Subnets

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

func NewSubnets

func NewSubnets(client subnetsClient, logger logger, resourceTags resourceTags) Subnets

func (Subnets) Delete

func (u Subnets) Delete(vpcId string) error

type Tag

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

func NewTag

func NewTag(client tagsClient, key, value, resourceId *string) Tag

func (Tag) Delete

func (t Tag) Delete() error

func (Tag) Name

func (t Tag) Name() string

func (Tag) Type added in v0.16.0

func (t Tag) Type() string

type Tags

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

func NewTags

func NewTags(client tagsClient, logger logger) Tags

func (Tags) List

func (a Tags) List(filter string) ([]common.Deletable, error)

func (Tags) Type added in v0.28.0

func (a Tags) Type() string

type Volume

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

func NewVolume

func NewVolume(client volumesClient, id, state *string, tags []*awsec2.Tag) Volume

func (Volume) Delete

func (v Volume) Delete() error

func (Volume) Name

func (v Volume) Name() string

func (Volume) Type added in v0.16.0

func (v Volume) Type() string

type Volumes

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

func NewVolumes

func NewVolumes(client volumesClient, logger logger) Volumes

func (Volumes) List

func (v Volumes) List(filter string) ([]common.Deletable, error)

func (Volumes) Type added in v0.28.0

func (v Volumes) Type() string

type Vpc

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

func NewVpc

func NewVpc(client vpcsClient,
	routes routeTables,
	subnets subnets,
	gateways internetGateways,
	resourceTags resourceTags,
	id *string,
	tags []*awsec2.Tag) Vpc

func (Vpc) Delete

func (v Vpc) Delete() error

func (Vpc) Name

func (v Vpc) Name() string

func (Vpc) Type added in v0.16.0

func (v Vpc) Type() string

type Vpcs

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

func NewVpcs

func NewVpcs(client vpcsClient, logger logger, routes routeTables, subnets subnets, gateways internetGateways, resourceTags resourceTags) Vpcs

func (Vpcs) List

func (v Vpcs) List(filter string) ([]common.Deletable, error)

func (Vpcs) Type added in v0.28.0

func (v Vpcs) Type() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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