Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var SecurityGroupIDTemplateString string = types.AxolVarTemplateStringFieldWithKeyValue.New("SecurityGroups", "GroupId", "GroupName")
View Source
var TagsTemplateString string = types.AxolVarTemplateStringFieldWithKeyValue.New("Tags", "Key", "Value")
Functions ¶
func DescribeInstances ¶
func DescribeInstances(c context.Context, api EC2DescribeInstancesAPI, input *ec2.DescribeInstancesInput) (*ec2.DescribeInstancesOutput, error)
DescribeInstances retrieves information about EC2 instance. Inputs:
c is the context of the method call, which includes the AWS Region. api is the interface that defines the method call. input defines the input arguments to the service call.
Output:
If success, a DescribeInstancesOutput object containing the result of the service call and nil. Otherwise, nil and an error from the call to DescribeInstances.
func RunDescribeInstances ¶
func RunDescribeInstances(input *ec2.DescribeInstancesInput, optFns ...func(*util.AWSConfigOptions) error) (aws.Config, *ec2.DescribeInstancesOutput, error)
Describe EC2 instances
Types ¶
type EC2DescribeInstancesAPI ¶
type EC2DescribeInstancesAPI interface { DescribeInstances( ctx context.Context, params *ec2.DescribeInstancesInput, optFns ...func(*ec2.Options)) (*ec2.DescribeInstancesOutput, error) }
EC2DescribeInstancesAPI defines the interface for the DescribeInstances function. We use this interface to test the function using a mocked service.
Click to show internal directories.
Click to hide internal directories.