Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
AllStates = []string{
"pending",
"running",
"stopping",
"stopped",
"shutting-down",
"terminated",
}
)
Functions ¶
This section is empty.
Types ¶
type CallerIdentity ¶
func GetMockedUser ¶ added in v0.1.0
func GetMockedUser() *CallerIdentity
type Ec2Client ¶
type Ec2Client struct {
// contains filtered or unexported fields
}
func NewEc2Client ¶
func (*Ec2Client) GetInstances ¶
type Ec2ClientInterface ¶
type Ec2ClientInterface interface {
DescribeInstances(ctx context.Context, params *ec2.DescribeInstancesInput, optFns ...func(*ec2.Options)) (*ec2.DescribeInstancesOutput, error)
}
type Instance ¶
type Instance struct { Id string Name string State string InstanceType string Keyname string Ip string LaunchTime string }
func GetMockedInstances ¶ added in v0.1.0
type StsClient ¶
type StsClient struct {
// contains filtered or unexported fields
}
func (*StsClient) GetCallerIdentity ¶
func (s *StsClient) GetCallerIdentity() (*CallerIdentity, error)
type StsClientInterface ¶
type StsClientInterface interface {
GetCallerIdentity(ctx context.Context, params *sts.GetCallerIdentityInput, optFns ...func(*sts.Options)) (*sts.GetCallerIdentityOutput, error)
}
Click to show internal directories.
Click to hide internal directories.