env

package
v0.18.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EnvRoleSessionName = envNewSdkRoleSessionName
	EnvCredentialsURI  = envNewSdkCredentialsURI // #nosec G101
)

https://github.com/aliyun/credentials-go

Variables

This section is empty.

Functions

func GetAccessKeyId

func GetAccessKeyId() string

func GetAccessKeySecret

func GetAccessKeySecret() string

func GetAliyuncliIgnoreProfile

func GetAliyuncliIgnoreProfile() string

func GetAliyuncliProfileName

func GetAliyuncliProfileName() string

func GetAliyuncliProfilePath

func GetAliyuncliProfilePath() string

func GetCredentialsFile

func GetCredentialsFile() string

func GetCredentialsURI

func GetCredentialsURI() string

func GetOIDCProviderArn

func GetOIDCProviderArn() string

func GetOIDCTokenFile

func GetOIDCTokenFile() string

func GetRoleArn

func GetRoleArn() string

func GetRoleSessionName

func GetRoleSessionName() string

func GetSecurityToken

func GetSecurityToken() string

func NewCredentialsProvider

func NewCredentialsProvider(opts CredentialsProviderOptions) (provider.CredentialsProvider, error)

NewCredentialsProvider return a CredentialsProvider base on environment variables

Types

type CredentialsProviderOptions

type CredentialsProviderOptions struct {
	STSEndpoint string
}

Jump to

Keyboard shortcuts

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