Struct: ibmiam.TrustedProfileProvider
Overview
Provider Struct
Implemented Interfaces
s3crypto.Cipher, credentials.Provider, s3manager.ReadSeekerWriteTo, s3manager.WriterReadFrom
Structure Field Summary collapse
-
ErrorStatus error
Error.
Constructor Functions collapse
-
func NewEnvProviderTrustedProfile(config *aws.Config) *TrustedProfileProvider
NewEnvProvider constructor of the IBM IAM provider that loads IAM trusted profile credentials from environment variables Parameter:.
-
func NewTrustedProfileProviderCR(config *aws.Config, authEndPoint string, trustedProfileID string, crTokenFilePath string, serviceInstanceID string) *TrustedProfileProvider
NewTrustedProfileProviderWithCR constructor of the IBM IAM provider that uses IAM trusted-profile details passed Returns: New TrustedProfileProvider (AWS type).
Method Summary collapse
-
func (p *TrustedProfileProvider) IsExpired() bool
IsExpired …
-
func (p *TrustedProfileProvider) IsValid() bool
IsValid …
-
func (p *TrustedProfileProvider) Retrieve() (credentials.Value, error)
Retrieve …
Structure Field Details
ErrorStatus error
Error
Function Details
func NewEnvProviderTrustedProfile(config *aws.Config) *TrustedProfileProvider
NewEnvProvider constructor of the IBM IAM provider that loads IAM trusted profile credentials from environment variables Parameter:
AWS Config
Returns:
A new provider with AWS config, Trusted Profile ID, CR token file path, IBM IAM Authentication Server Endpoint and
Service Instance ID
23 24 25 26 27 28 29 30 |
// File 'aws/credentials/ibmiam/env_provider_trusted_profile.go', line 23
|
func NewTrustedProfileProviderCR(config *aws.Config, authEndPoint string, trustedProfileID string, crTokenFilePath string, serviceInstanceID string) *TrustedProfileProvider
NewTrustedProfileProviderWithCR constructor of the IBM IAM provider that uses IAM trusted-profile details passed Returns: New TrustedProfileProvider (AWS type)
19 20 21 22 23 |
// File 'aws/credentials/ibmiam/trusted_profile_provider.go', line 19
|
Method Details
func (p *TrustedProfileProvider) IsExpired() bool
IsExpired …
TrustedProfileProvider expired or not - boolean
155 156 157 |
// File 'aws/credentials/ibmiam/trusted_profile.go', line 155
|
func (p *TrustedProfileProvider) IsValid() bool
IsValid … Returns:
TrustedProfileProvider validation - boolean
110 111 112 |
// File 'aws/credentials/ibmiam/trusted_profile.go', line 110
|
func (p *TrustedProfileProvider) Retrieve() (credentials.Value, error)
Retrieve … Returns:
Credential values
Error
119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 |
// File 'aws/credentials/ibmiam/trusted_profile.go', line 119
|