identity

package
v0.0.0-...-955c50f Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 3 Imported by: 25

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IAgentIdentity

type IAgentIdentity interface {
	InstanceID() (string, error)
	ShortInstanceID() (string, error)
	Region() (string, error)
	AvailabilityZone() (string, error)
	AvailabilityZoneId() (string, error)
	InstanceType() (string, error)
	Credentials() *credentials.Credentials
	IdentityType() string
	GetServiceEndpoint(string) string
}

IAgentIdentity defines the interface identity cacher exposes

type IAgentIdentityInner

type IAgentIdentityInner interface {
	InstanceID() (string, error)
	Region() (string, error)
	AvailabilityZone() (string, error)
	AvailabilityZoneId() (string, error)
	InstanceType() (string, error)
	IsIdentityEnvironment() bool
	Credentials() *credentials.Credentials
	IdentityType() string
}

IAgentIdentityInner defines the interface each identity needs to expose

type ICredentialRefresherAgentIdentity

type ICredentialRefresherAgentIdentity interface {
	CredentialProvider() credentialproviders.IRemoteProvider
}

ICredentialRefresherAgentIdentity defines the interface for identities that require custom credential refresh (e.g. onprem, ec2)

type ICredentialRefresherProvider

type ICredentialRefresherProvider interface {
	ShareProfile() string
	ShareFile() string
	SharesCredentials() bool
}

ICredentialRefresherProvider defines the interface for credential providers that require custom credential refresh

type IInnerIdentityGetter

type IInnerIdentityGetter interface {
	GetInner() IAgentIdentityInner
}

type IMetadataIdentity

type IMetadataIdentity interface {
	VpcPrimaryCIDRBlock() (map[string][]string, error)
}

IMetadataIdentity defines the interface for identities that will query metadata for VPC CIDR block information (ec2, ecs)

type Registrar

type Registrar interface {
	Register(context.Context) error
}

Registrar identity registers the agent on startup

Directories

Path Synopsis
availableidentities
ec2
ec2/ec2detector
Package ec2detector implements the detection of EC2 using specific sub-detectors
Package ec2detector implements the detection of EC2 using specific sub-detectors
ec2/ec2detector/nitrodetector
Package nitrodetector implements logic to determine if we are running on an nitro hypervisor
Package nitrodetector implements logic to determine if we are running on an nitro hypervisor
ec2/ec2detector/xendetector
Package xendetector implements logic to determine if we are running on an amazon Xen hypervisor
Package xendetector implements logic to determine if we are running on an amazon Xen hypervisor
ecs
onpremprovider
package onprem contains functions that help procure the managed instance auth credentials dependencies
package onprem contains functions that help procure the managed instance auth credentials dependencies

Jump to

Keyboard shortcuts

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