api

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2019 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ResourceProvider

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

ResourceProvider implements an AWS resource provider using the AWS API (via the AWS SDK).

func NewResourceProvider

func NewResourceProvider() *ResourceProvider

NewResourceProvider returns a reference to a new ResourceProvider for the AWS API.

func (*ResourceProvider) AllEC2Instances added in v0.2.0

func (provider *ResourceProvider) AllEC2Instances() ([]reachAWS.EC2Instance, error)

AllEC2Instances queries the AWS API for all EC2 instances.

func (*ResourceProvider) EC2Instance added in v0.2.0

func (provider *ResourceProvider) EC2Instance(id string) (*reachAWS.EC2Instance, error)

EC2Instance queries the AWS API for an EC2 instance matching the given ID.

func (*ResourceProvider) ElasticNetworkInterface added in v0.2.0

func (provider *ResourceProvider) ElasticNetworkInterface(id string) (*reachAWS.ElasticNetworkInterface, error)

ElasticNetworkInterface queries the AWS API for an elastic network interface matching the given ID.

func (*ResourceProvider) NetworkACL added in v0.2.0

func (provider *ResourceProvider) NetworkACL(id string) (*reachAWS.NetworkACL, error)

NetworkACL queries the AWS API for a network ACL matching the given ID.

func (*ResourceProvider) RouteTable added in v0.2.0

func (provider *ResourceProvider) RouteTable(id string) (*reachAWS.RouteTable, error)

RouteTable queries the AWS API for a route table matching the given ID.

func (*ResourceProvider) SecurityGroup added in v0.2.0

func (provider *ResourceProvider) SecurityGroup(id string) (*reachAWS.SecurityGroup, error)

SecurityGroup queries the AWS API for a security group matching the given ID.

func (*ResourceProvider) SecurityGroupReference added in v0.2.0

func (provider *ResourceProvider) SecurityGroupReference(id, accountID string) (*reachAWS.SecurityGroupReference, error)

SecurityGroupReference queries the AWS API for a security group matching the given ID, but returns a security group reference representation instead of the full security group representation.

func (*ResourceProvider) Subnet added in v0.2.0

func (provider *ResourceProvider) Subnet(id string) (*reachAWS.Subnet, error)

Subnet queries the AWS API for a subnet matching the given ID.

func (*ResourceProvider) VPC added in v0.2.0

func (provider *ResourceProvider) VPC(id string) (*reachAWS.VPC, error)

VPC queries the AWS API for a VPC matching the given ID.

Jump to

Keyboard shortcuts

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