customidentity

package
v0.0.0-...-0117b6e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

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

func (i *Identity) AvailabilityZone() (string, error)

AvailabilityZone returns the availabilityZone of the ec2 instance

func (*Identity) AvailabilityZoneId

func (i *Identity) AvailabilityZoneId() (string, error)

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

func (i *Identity) IdentityType() string

IdentityType returns the identity type of the CustomIdentity

func (*Identity) InstanceID

func (i *Identity) InstanceID() (string, error)

InstanceID returns the managed instance id

func (*Identity) InstanceType

func (i *Identity) InstanceType() (string, error)

InstanceType returns the instance type of the ec2 instance

func (*Identity) IsIdentityEnvironment

func (i *Identity) IsIdentityEnvironment() bool

IsIdentityEnvironment always returns true for custom identities

func (*Identity) Region

func (i *Identity) Region() (region string, err error)

Region returns the region of the ec2 instance

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL