Documentation ¶
Index ¶
- type AccessKeyCredential
- type BaseCredentialdeprecated
- type BearerTokenCredential
- type BearerTokenCredentialsProvider
- type Credentials
- type CredentialsProvider
- type ECSRAMRoleCredentialsProvider
- type EcsRamRoleCredential
- type OIDCCredentialsProvider
- type OIDCCredentialsProviderBuilder
- func (b *OIDCCredentialsProviderBuilder) Build() (provider *OIDCCredentialsProvider, err error)
- func (b *OIDCCredentialsProviderBuilder) WithDurationSeconds(durationSeconds int) *OIDCCredentialsProviderBuilder
- func (b *OIDCCredentialsProviderBuilder) WithOIDCProviderARN(oidcProviderArn string) *OIDCCredentialsProviderBuilder
- func (b *OIDCCredentialsProviderBuilder) WithOIDCTokenFilePath(oidcTokenFilePath string) *OIDCCredentialsProviderBuilder
- func (b *OIDCCredentialsProviderBuilder) WithPolicy(policy string) *OIDCCredentialsProviderBuilder
- func (b *OIDCCredentialsProviderBuilder) WithRoleArn(roleArn string) *OIDCCredentialsProviderBuilder
- func (b *OIDCCredentialsProviderBuilder) WithRoleSessionName(roleSessionName string) *OIDCCredentialsProviderBuilder
- func (b *OIDCCredentialsProviderBuilder) WithStsRegion(region string) *OIDCCredentialsProviderBuilder
- type RAMRoleARNCredentialsProvider
- type RSAKeyPairCredentialsProviderdeprecated
- type RamRoleArnCredential
- func NewRamRoleArnCredential(accessKeyId, accessKeySecret, roleArn, roleSessionName string, ...) *RamRoleArnCredential
- func NewRamRoleArnWithPolicyAndExternalIdCredential(...) *RamRoleArnCredential
- func NewRamRoleArnWithPolicyCredential(accessKeyId, accessKeySecret, roleArn, roleSessionName, policy string, ...) *RamRoleArnCredential
- type RsaKeyPairCredentialdeprecated
- type SessionCredentials
- type StaticAKCredentialsProvider
- type StaticSTSCredentialsProvider
- type StsRoleArnCredentialdeprecated
- type StsRoleNameOnEcsCredentialdeprecated
- type StsTokenCredential
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessKeyCredential ¶
func NewAccessKeyCredential ¶
func NewAccessKeyCredential(accessKeyId, accessKeySecret string) *AccessKeyCredential
type BaseCredential
deprecated
Deprecated: Use AccessKeyCredential in this package instead.
func NewBaseCredential
deprecated
func NewBaseCredential(accessKeyId, accessKeySecret string) *BaseCredential
Deprecated: Use NewAccessKeyCredential in this package instead.
func (*BaseCredential) ToAccessKeyCredential ¶
func (baseCred *BaseCredential) ToAccessKeyCredential() *AccessKeyCredential
type BearerTokenCredential ¶
type BearerTokenCredential struct {
BearerToken string
}
func NewBearerTokenCredential ¶
func NewBearerTokenCredential(token string) *BearerTokenCredential
NewBearerTokenCredential return a BearerTokenCredential object
type BearerTokenCredentialsProvider ¶ added in v1.62.809
type BearerTokenCredentialsProvider struct {
// contains filtered or unexported fields
}
func NewBearerTokenCredentialsProvider ¶ added in v1.62.809
func NewBearerTokenCredentialsProvider(bearerToken string) *BearerTokenCredentialsProvider
func (*BearerTokenCredentialsProvider) GetCredentials ¶ added in v1.62.809
func (provider *BearerTokenCredentialsProvider) GetCredentials() (cc *Credentials, err error)
type Credentials ¶ added in v1.62.809
type CredentialsProvider ¶ added in v1.62.809
type CredentialsProvider interface {
GetCredentials() (cc *Credentials, err error)
}
type ECSRAMRoleCredentialsProvider ¶ added in v1.62.809
type ECSRAMRoleCredentialsProvider struct {
// contains filtered or unexported fields
}
func NewECSRAMRoleCredentialsProvider ¶ added in v1.62.809
func NewECSRAMRoleCredentialsProvider(roleName string) *ECSRAMRoleCredentialsProvider
func (*ECSRAMRoleCredentialsProvider) GetCredentials ¶ added in v1.62.809
func (provider *ECSRAMRoleCredentialsProvider) GetCredentials() (cc *Credentials, err error)
type EcsRamRoleCredential ¶
type EcsRamRoleCredential struct {
RoleName string
}
func NewEcsRamRoleCredential ¶
func NewEcsRamRoleCredential(roleName string) *EcsRamRoleCredential
type OIDCCredentialsProvider ¶ added in v1.62.809
type OIDCCredentialsProvider struct {
// contains filtered or unexported fields
}
func (*OIDCCredentialsProvider) GetCredentials ¶ added in v1.62.809
func (provider *OIDCCredentialsProvider) GetCredentials() (cc *Credentials, err error)
type OIDCCredentialsProviderBuilder ¶ added in v1.62.809
type OIDCCredentialsProviderBuilder struct {
// contains filtered or unexported fields
}
func NewOIDCCredentialsProviderBuilder ¶ added in v1.62.809
func NewOIDCCredentialsProviderBuilder() *OIDCCredentialsProviderBuilder
func (*OIDCCredentialsProviderBuilder) Build ¶ added in v1.62.809
func (b *OIDCCredentialsProviderBuilder) Build() (provider *OIDCCredentialsProvider, err error)
func (*OIDCCredentialsProviderBuilder) WithDurationSeconds ¶ added in v1.62.809
func (b *OIDCCredentialsProviderBuilder) WithDurationSeconds(durationSeconds int) *OIDCCredentialsProviderBuilder
func (*OIDCCredentialsProviderBuilder) WithOIDCProviderARN ¶ added in v1.62.809
func (b *OIDCCredentialsProviderBuilder) WithOIDCProviderARN(oidcProviderArn string) *OIDCCredentialsProviderBuilder
func (*OIDCCredentialsProviderBuilder) WithOIDCTokenFilePath ¶ added in v1.62.809
func (b *OIDCCredentialsProviderBuilder) WithOIDCTokenFilePath(oidcTokenFilePath string) *OIDCCredentialsProviderBuilder
func (*OIDCCredentialsProviderBuilder) WithPolicy ¶ added in v1.62.809
func (b *OIDCCredentialsProviderBuilder) WithPolicy(policy string) *OIDCCredentialsProviderBuilder
func (*OIDCCredentialsProviderBuilder) WithRoleArn ¶ added in v1.62.809
func (b *OIDCCredentialsProviderBuilder) WithRoleArn(roleArn string) *OIDCCredentialsProviderBuilder
func (*OIDCCredentialsProviderBuilder) WithRoleSessionName ¶ added in v1.62.809
func (b *OIDCCredentialsProviderBuilder) WithRoleSessionName(roleSessionName string) *OIDCCredentialsProviderBuilder
func (*OIDCCredentialsProviderBuilder) WithStsRegion ¶ added in v1.62.809
func (b *OIDCCredentialsProviderBuilder) WithStsRegion(region string) *OIDCCredentialsProviderBuilder
type RAMRoleARNCredentialsProvider ¶ added in v1.62.809
type RAMRoleARNCredentialsProvider struct {
// contains filtered or unexported fields
}
func NewRAMRoleARNCredentialsProvider ¶ added in v1.62.809
func NewRAMRoleARNCredentialsProvider(credentialsProvider CredentialsProvider, roleArn, roleSessionName string, durationSeconds int, policy, stsRegion, externalId string) (provider *RAMRoleARNCredentialsProvider, err error)
func (*RAMRoleARNCredentialsProvider) GetCredentials ¶ added in v1.62.809
func (provider *RAMRoleARNCredentialsProvider) GetCredentials() (cc *Credentials, err error)
type RSAKeyPairCredentialsProvider
deprecated
added in
v1.62.809
type RSAKeyPairCredentialsProvider struct { PublicKeyId string PrivateKeyId string // contains filtered or unexported fields }
Deprecated: the RSA key pair credentials is deprecated
func NewRSAKeyPairCredentialsProvider
deprecated
added in
v1.62.809
func NewRSAKeyPairCredentialsProvider(publicKeyId, privateKeyId string, durationSeconds int) (provider *RSAKeyPairCredentialsProvider, err error)
Deprecated: the RSA key pair credentials is deprecated
func (*RSAKeyPairCredentialsProvider) GetCredentials
deprecated
added in
v1.62.809
func (provider *RSAKeyPairCredentialsProvider) GetCredentials() (cc *Credentials, err error)
Deprecated: the RSA key pair credentials is deprecated
type RamRoleArnCredential ¶
type RamRoleArnCredential struct { AccessKeyId string AccessKeySecret string RoleArn string RoleSessionName string RoleSessionExpiration int Policy string StsRegion string ExternalId string }
func NewRamRoleArnCredential ¶
func NewRamRoleArnCredential(accessKeyId, accessKeySecret, roleArn, roleSessionName string, roleSessionExpiration int) *RamRoleArnCredential
func NewRamRoleArnWithPolicyAndExternalIdCredential ¶ added in v1.62.362
func NewRamRoleArnWithPolicyAndExternalIdCredential(accessKeyId, accessKeySecret, roleArn, roleSessionName, policy, externalId string, roleSessionExpiration int) *RamRoleArnCredential
func NewRamRoleArnWithPolicyCredential ¶
func NewRamRoleArnWithPolicyCredential(accessKeyId, accessKeySecret, roleArn, roleSessionName, policy string, roleSessionExpiration int) *RamRoleArnCredential
type RsaKeyPairCredential
deprecated
Deprecated: the RSA key pair is deprecated
func NewRsaKeyPairCredential
deprecated
func NewRsaKeyPairCredential(privateKey, publicKeyId string, sessionExpiration int) *RsaKeyPairCredential
Deprecated: the RSA key pair is deprecated
type SessionCredentials ¶ added in v1.62.809
type StaticAKCredentialsProvider ¶ added in v1.62.809
type StaticAKCredentialsProvider struct {
// contains filtered or unexported fields
}
func NewStaticAKCredentialsProvider ¶ added in v1.62.809
func NewStaticAKCredentialsProvider(accessKeyId, accessKeySecret string) *StaticAKCredentialsProvider
func (*StaticAKCredentialsProvider) GetCredentials ¶ added in v1.62.809
func (provider *StaticAKCredentialsProvider) GetCredentials() (cc *Credentials, err error)
type StaticSTSCredentialsProvider ¶ added in v1.62.809
type StaticSTSCredentialsProvider struct {
// contains filtered or unexported fields
}
func NewStaticSTSCredentialsProvider ¶ added in v1.62.809
func NewStaticSTSCredentialsProvider(accessKeyId, accessKeySecret, securityToken string) *StaticSTSCredentialsProvider
func (*StaticSTSCredentialsProvider) GetCredentials ¶ added in v1.62.809
func (provider *StaticSTSCredentialsProvider) GetCredentials() (cc *Credentials, err error)
type StsRoleArnCredential
deprecated
type StsRoleArnCredential struct { AccessKeyId string AccessKeySecret string RoleArn string RoleSessionName string RoleSessionExpiration int }
Deprecated: Use RamRoleArnCredential in this package instead.
func NewStsRoleArnCredential
deprecated
func NewStsRoleArnCredential(accessKeyId, accessKeySecret, roleArn, roleSessionName string, roleSessionExpiration int) *StsRoleArnCredential
Deprecated: Use RamRoleArnCredential in this package instead.
func (*StsRoleArnCredential) ToRamRoleArnCredential ¶
func (oldCred *StsRoleArnCredential) ToRamRoleArnCredential() *RamRoleArnCredential
type StsRoleNameOnEcsCredential
deprecated
type StsRoleNameOnEcsCredential struct {
RoleName string
}
Deprecated: Use EcsRamRoleCredential in this package instead.
func NewStsRoleNameOnEcsCredential
deprecated
func NewStsRoleNameOnEcsCredential(roleName string) *StsRoleNameOnEcsCredential
Deprecated: Use NewEcsRamRoleCredential in this package instead.
func (*StsRoleNameOnEcsCredential) ToEcsRamRoleCredential ¶
func (oldCred *StsRoleNameOnEcsCredential) ToEcsRamRoleCredential() *EcsRamRoleCredential
type StsTokenCredential ¶
type StsTokenCredential struct { AccessKeyId string AccessKeySecret string AccessKeyStsToken string }
func NewStsTokenCredential ¶
func NewStsTokenCredential(accessKeyId, accessKeySecret, accessKeyStsToken string) *StsTokenCredential