Struct: ibmiam.Provider
Overview
Provider Struct
Implemented Interfaces
s3crypto.Cipher, credentials.Provider, s3manager.ReadSeekerWriteTo, s3manager.WriterReadFrom
Structure Field Summary collapse
-
ErrorStatus error
Error.
Constructor Functions collapse
-
func NewEnvProvider(config *aws.Config) *Provider
NewEnvProvider constructor of the IBM IAM provider that loads IAM credentials from environment variables Parameter:.
-
func NewSharedConfigProvider(config *aws.Config, filename, profilename string) *Provider
NewSharedConfigProvider constructor of the IBM IAM provider that loads IAM Credentials from shared config Parameters:.
-
func NewSharedCredentialsProvider(config *aws.Config, filename, profilename string) *Provider
NewSharedCredentialsProvider constructor of the IBM IAM provider that loads IAM credentials from shared credentials file Parameters:.
-
func NewStaticProvider(config *aws.Config, authEndPoint, apiKey, serviceInstanceID string) *Provider
NewStaticProvider constructor of the IBM IAM provider that uses IAM details passed directly Returns: New Provider (AWS type).
Method Summary collapse
-
func (p *Provider) IsExpired() bool
IsExpired …
-
func (p *Provider) IsValid() bool
IsValid …
-
func (p *Provider) Retrieve() (credentials.Value, error)
Retrieve …
Structure Field Details
ErrorStatus error
Error
Function Details
func NewEnvProvider(config *aws.Config) *Provider
NewEnvProvider constructor of the IBM IAM provider that loads IAM credentials from environment variables Parameter:
AWS Config
Returns:
A new provider with AWS config, API Key, IBM IAM Authentication Server Endpoint and
Service Instance ID
23 24 25 26 27 28 29 |
// File 'aws/credentials/ibmiam/env_provider.go', line 23
|
func NewSharedConfigProvider(config *aws.Config, filename, profilename string) *Provider
NewSharedConfigProvider constructor of the IBM IAM provider that loads IAM Credentials from shared config Parameters:
AWS Config
Profile filename
Profile name
Returns:
Common Ini Provider with values
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 |
// File 'aws/credentials/ibmiam/shared_config_provider.go', line 31
|
func NewSharedCredentialsProvider(config *aws.Config, filename, profilename string) *Provider
NewSharedCredentialsProvider constructor of the IBM IAM provider that loads IAM credentials from shared credentials file Parameters:
AWS Config
Profile filename
Profile prefix
Returns:
Common initial provider with config file/profile
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 |
// File 'aws/credentials/ibmiam/shared_credentials_provider.go', line 28
|
func NewStaticProvider(config *aws.Config, authEndPoint, apiKey, serviceInstanceID string) *Provider
NewStaticProvider constructor of the IBM IAM provider that uses IAM details passed directly Returns: New Provider (AWS type)
12 13 14 |
// File 'aws/credentials/ibmiam/static_provider.go', line 12
|
Method Details
func (p *Provider) IsExpired() bool
IsExpired …
Provider expired or not - boolean
139 140 141 |
// File 'aws/credentials/ibmiam/common.go', line 139
|
func (p *Provider) IsValid() bool
IsValid … Returns:
Provider validation - boolean
106 107 108 |
// File 'aws/credentials/ibmiam/common.go', line 106
|
func (p *Provider) Retrieve() (credentials.Value, error)
Retrieve … Returns:
Credential values
Error
115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 |
// File 'aws/credentials/ibmiam/common.go', line 115
|