Documentation ¶
Overview ¶
Package ec2wrapper is used to wrap around the ec2 service APIs
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EC2 ¶
type EC2 interface { CreateNetworkInterface(input *ec2svc.CreateNetworkInterfaceInput) (*ec2svc.CreateNetworkInterfaceOutput, error) DescribeInstances(input *ec2svc.DescribeInstancesInput) (*ec2svc.DescribeInstancesOutput, error) DescribeInstanceTypes(input *ec2svc.DescribeInstanceTypesInput) (*ec2svc.DescribeInstanceTypesOutput, error) AttachNetworkInterface(input *ec2svc.AttachNetworkInterfaceInput) (*ec2svc.AttachNetworkInterfaceOutput, error) DeleteNetworkInterface(input *ec2svc.DeleteNetworkInterfaceInput) (*ec2svc.DeleteNetworkInterfaceOutput, error) DetachNetworkInterface(input *ec2svc.DetachNetworkInterfaceInput) (*ec2svc.DetachNetworkInterfaceOutput, error) AssignPrivateIpAddresses(input *ec2svc.AssignPrivateIpAddressesInput) (*ec2svc.AssignPrivateIpAddressesOutput, error) UnassignPrivateIpAddressesWithContext(ctx aws.Context, input *ec2svc.UnassignPrivateIpAddressesInput, opts ...request.Option) (*ec2svc.UnassignPrivateIpAddressesOutput, error) DescribeNetworkInterfaces(input *ec2svc.DescribeNetworkInterfacesInput) (*ec2svc.DescribeNetworkInterfacesOutput, error) ModifyNetworkInterfaceAttribute(input *ec2svc.ModifyNetworkInterfaceAttributeInput) (*ec2svc.ModifyNetworkInterfaceAttributeOutput, error) CreateTags(input *ec2svc.CreateTagsInput) (*ec2svc.CreateTagsOutput, error) }
type EC2Wrapper ¶ added in v1.5.0
type EC2Wrapper struct {
// contains filtered or unexported fields
}
EC2Wrapper is used to wrap around EC2 service APIs to obtain ClusterID from the ec2 instance tags
func NewMetricsClient ¶ added in v1.5.0
func NewMetricsClient() (*EC2Wrapper, error)
NewMetricsClient returns an instance of the EC2 wrapper
func (*EC2Wrapper) GetClusterTag ¶ added in v1.5.0
func (e *EC2Wrapper) GetClusterTag(tagKey string) (string, error)
GetClusterTag is used to retrieve a tag from the ec2 instance
Click to show internal directories.
Click to hide internal directories.