Documentation ¶
Index ¶
- Constants
- type Identity
- func (e *Identity) AvailabilityZone() (string, error)
- func (e *Identity) AvailabilityZoneId() (string, error)
- func (e *Identity) Credentials() *credentials.Credentials
- func (e *Identity) IdentityType() string
- func (e *Identity) InstanceID() (string, error)
- func (e *Identity) InstanceType() (string, error)
- func (e *Identity) IsIdentityEnvironment() bool
- func (e *Identity) Region() (string, error)
- func (e *Identity) VpcPrimaryCIDRBlock() (map[string][]string, error)
Constants ¶
View Source
const (
// IdentityType is the identity type for ECS
IdentityType = "ECS"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Identity ¶
Identity is the struct defining the IAgentIdentityInner for ECS metadata service
func NewECSIdentity ¶
NewECSIdentity initializes the ecs identity
func (*Identity) AvailabilityZone ¶
AvailabilityZone returns the managed instance availabilityZone
func (*Identity) AvailabilityZoneId ¶
AvailabilityZoneId returns empty if the managed instance is not EC2
func (*Identity) Credentials ¶
func (e *Identity) Credentials() *credentials.Credentials
Credentials returns the managed instance credentials
func (*Identity) IdentityType ¶
IdentityType returns the identity type of the managed instance
func (*Identity) InstanceID ¶
InstanceID returns the ecs Instance ID
func (*Identity) InstanceType ¶
InstanceType returns the managed instance instanceType
func (*Identity) IsIdentityEnvironment ¶
IsIdentityEnvironment returns if instance has managed instance registration
Click to show internal directories.
Click to hide internal directories.