Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client wraps the EC2 API for instance operations.
type EC2API ¶
type EC2API interface {
DescribeInstances(ctx context.Context, params *ec2.DescribeInstancesInput, optFns ...func(*ec2.Options)) (*ec2.DescribeInstancesOutput, error)
}
EC2API captures the AWS SDK methods we use.
type Instance ¶
type Instance struct {
InstanceID string
Name string // from Name tag
State string // running, stopped, terminated, etc.
InstanceType string
PrivateIP string
PublicIP string
LaunchTime time.Time
VpcID string
SubnetID string
AvailabilityZone string
Architecture string
Platform string
ImageID string
KeyName string
SecurityGroups []SecurityGroup
IAMProfile string
Tags map[string]string
}
Instance represents an EC2 instance.
type SecurityGroup ¶
SecurityGroup is a minimal reference to an EC2 security group.
Click to show internal directories.
Click to hide internal directories.