onprem

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: 9 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// IdentityType is the identity type for OnPrem
	IdentityType = "OnPrem"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Identity

type Identity struct {
	Log    log.T
	Config *appconfig.SsmagentConfig
	// contains filtered or unexported fields
}

Identity is the struct defining the IAgentIdentityInner for OnPrem

func NewOnPremIdentity

func NewOnPremIdentity(log log.T, config *appconfig.SsmagentConfig) *Identity

NewOnPremIdentity initializes the onprem identity and credentials providers and determines if credentials should be shared or not

func (*Identity) AvailabilityZone

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

AvailabilityZone returns the managed instance availabilityZone

func (*Identity) AvailabilityZoneId

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

AvailabilityZoneId returns empty if the managed instance is not EC2

func (*Identity) CredentialProvider

func (i *Identity) CredentialProvider() credentialproviders.IRemoteProvider

CredentialProvider returns the initialized credentials provider

func (*Identity) Credentials

func (i *Identity) Credentials() *credentials.Credentials

Credentials returns the managed instance credentials

func (*Identity) IdentityType

func (*Identity) IdentityType() string

IdentityType returns the identity type of the managed instance

func (*Identity) InstanceID

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

InstanceID returns the managed instance ID

func (*Identity) InstanceType

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

InstanceType returns the managed instance instanceType

func (*Identity) IsIdentityEnvironment

func (i *Identity) IsIdentityEnvironment() bool

IsIdentityEnvironment returns if instance has managed instance registration

func (*Identity) Region

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

Region returns the region of the managed instance

func (*Identity) ServiceDomain

func (*Identity) ServiceDomain() (string, error)

ServiceDomain returns the service domain of a OnPrem instance

Jump to

Keyboard shortcuts

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