Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClampedRetryer ¶
Types ¶
type AssumeRoleProvider ¶
type AssumeRoleProvider struct {
// contains filtered or unexported fields
}
AssumeRoleProvider is an AWS SDK credentials provider which retrieve credentials by assuming the defined role.
func NewAssumeRoleProvider ¶
func NewAssumeRoleProvider(role, sessionName string, sess *session.Session) *AssumeRoleProvider
NewAssumeRoleProvider initializes a new AssumeRoleProvider.
func (*AssumeRoleProvider) IsExpired ¶
func (a *AssumeRoleProvider) IsExpired() bool
IsExpired is true when the credentials has expired and must be retrieved again.
func (*AssumeRoleProvider) Retrieve ¶
func (a *AssumeRoleProvider) Retrieve() (credentials.Value, error)
Retrieve retrieves new credentials by assuming the defined role.
type Instance ¶
type Instance struct { InstanceType string VCPU int64 Memory int64 InstanceStorageDevices int64 InstanceStorageDeviceSize int64 Architecture string }
func (Instance) AvailableStorage ¶
func (Instance) MemoryFraction ¶
type InstanceTypes ¶
type InstanceTypes struct {
// contains filtered or unexported fields
}
func NewInstanceTypes ¶
func NewInstanceTypes(instanceData []Instance) *InstanceTypes
func NewInstanceTypesFromAWS ¶
func NewInstanceTypesFromAWS(ec2client ec2iface.EC2API) (*InstanceTypes, error)
func (*InstanceTypes) AllInstances ¶
func (types *InstanceTypes) AllInstances() map[string]Instance
AllInstances returns information for all known AWS EC2 instances.
func (*InstanceTypes) InstanceInfo ¶
func (types *InstanceTypes) InstanceInfo(instanceType string) (Instance, error)
func (*InstanceTypes) SyntheticInstanceInfo ¶
func (types *InstanceTypes) SyntheticInstanceInfo(instanceTypes []string) (Instance, error)
Click to show internal directories.
Click to hide internal directories.