Documentation ¶
Index ¶
- Constants
- type Identity
- func (*Identity) AvailabilityZone() (string, error)
- func (*Identity) AvailabilityZoneId() (string, error)
- func (i *Identity) CredentialProvider() credentialproviders.IRemoteProvider
- func (i *Identity) Credentials() *credentials.Credentials
- func (*Identity) IdentityType() string
- func (i *Identity) InstanceID() (string, error)
- func (*Identity) InstanceType() (string, error)
- func (i *Identity) IsIdentityEnvironment() bool
- func (i *Identity) Region() (string, error)
- func (*Identity) ServiceDomain() (string, error)
Constants ¶
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 ¶
AvailabilityZone returns the managed instance availabilityZone
func (*Identity) AvailabilityZoneId ¶
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 ¶
IdentityType returns the identity type of the managed instance
func (*Identity) InstanceID ¶
InstanceID returns the managed instance ID
func (*Identity) InstanceType ¶
InstanceType returns the managed instance instanceType
func (*Identity) IsIdentityEnvironment ¶
IsIdentityEnvironment returns if instance has managed instance registration
func (*Identity) ServiceDomain ¶
ServiceDomain returns the service domain of a OnPrem instance