Documentation ¶
Index ¶
- type ResourceProvider
- func (provider *ResourceProvider) AllEC2Instances() ([]reachAWS.EC2Instance, error)
- func (provider *ResourceProvider) EC2Instance(id string) (*reachAWS.EC2Instance, error)
- func (provider *ResourceProvider) ElasticNetworkInterface(id string) (*reachAWS.ElasticNetworkInterface, error)
- func (provider *ResourceProvider) NetworkACL(id string) (*reachAWS.NetworkACL, error)
- func (provider *ResourceProvider) RouteTable(id string) (*reachAWS.RouteTable, error)
- func (provider *ResourceProvider) SecurityGroup(id string) (*reachAWS.SecurityGroup, error)
- func (provider *ResourceProvider) SecurityGroupReference(id, accountID string) (*reachAWS.SecurityGroupReference, error)
- func (provider *ResourceProvider) Subnet(id string) (*reachAWS.Subnet, error)
- func (provider *ResourceProvider) VPC(id string) (*reachAWS.VPC, error)
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.