Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cloud ¶
type Cloud interface {
GetMetadata() MetadataService
}
type EC2Metadata ¶
type EC2Metadata interface { Available() bool GetInstanceIdentityDocument() (ec2metadata.EC2InstanceIdentityDocument, error) }
type MetadataService ¶
type MetadataService interface { GetInstanceID() string GetRegion() string GetAvailabilityZone() string }
MetadataService represents AWS metadata service.
func NewMetadataService ¶
func NewMetadataService(svc EC2Metadata) (MetadataService, error)
NewMetadataService returns a new MetadataServiceImplementation.
Click to show internal directories.
Click to hide internal directories.