Documentation ¶
Index ¶
- type AccessKeyCredential
- type BaseCredentialdeprecated
- type BearerTokenCredential
- type EcsRamRoleCredential
- 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 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 EcsRamRoleCredential ¶
type EcsRamRoleCredential struct {
RoleName string
}
func NewEcsRamRoleCredential ¶
func NewEcsRamRoleCredential(roleName string) *EcsRamRoleCredential
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 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
Source Files ¶
Click to show internal directories.
Click to hide internal directories.