2023-12-21 22:17:40 +08:00
|
|
|
package credentials
|
|
|
|
|
|
|
|
//Environmental virables that may be used by the provider
|
|
|
|
const (
|
|
|
|
ENVCredentialFile = "ALIBABA_CLOUD_CREDENTIALS_FILE"
|
|
|
|
ENVEcsMetadata = "ALIBABA_CLOUD_ECS_METADATA"
|
|
|
|
PATHCredentialFile = "~/.alibabacloud/credentials"
|
2024-04-26 10:46:37 +08:00
|
|
|
ENVRoleArn = "ALIBABA_CLOUD_ROLE_ARN"
|
|
|
|
ENVOIDCProviderArn = "ALIBABA_CLOUD_OIDC_PROVIDER_ARN"
|
|
|
|
ENVOIDCTokenFile = "ALIBABA_CLOUD_OIDC_TOKEN_FILE"
|
|
|
|
ENVRoleSessionName = "ALIBABA_CLOUD_ROLE_SESSION_NAME"
|
2023-12-21 22:17:40 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
// Provider will be implemented When you want to customize the provider.
|
|
|
|
type Provider interface {
|
|
|
|
resolve() (*Config, error)
|
|
|
|
}
|