Documentation ¶
Index ¶
- Constants
- type Identity
- func (i *Identity) AvailabilityZone() (string, error)
- func (i *Identity) AvailabilityZoneId() (string, error)
- func (i *Identity) Credentials() *credentials.Credentials
- func (i *Identity) IdentityType() string
- func (i *Identity) InstanceID() (string, error)
- func (i *Identity) InstanceType() (string, error)
- func (i *Identity) IsIdentityEnvironment() bool
- func (i *Identity) Region() (region string, err error)
Constants ¶
View Source
const (
// IdentityType is the identity type for CustomIdentity
IdentityType = "CustomIdentity"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Identity ¶
type Identity struct { Log log.T CustomIdentity appconfig.CustomIdentity }
Identity is the struct defining the IAgentIdentityInner for EC2 metadata service
func (*Identity) AvailabilityZone ¶
AvailabilityZone returns the availabilityZone of the ec2 instance
func (*Identity) AvailabilityZoneId ¶
AvailabilityZoneId returns the availabilityZoneId of the ec2 instance
func (*Identity) Credentials ¶
func (i *Identity) Credentials() *credentials.Credentials
Credentials returns the configured credentials
func (*Identity) IdentityType ¶
IdentityType returns the identity type of the CustomIdentity
func (*Identity) InstanceID ¶
InstanceID returns the managed instance id
func (*Identity) InstanceType ¶
InstanceType returns the instance type of the ec2 instance
func (*Identity) IsIdentityEnvironment ¶
IsIdentityEnvironment always returns true for custom identities
Click to show internal directories.
Click to hide internal directories.