Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessKeyCredential ¶
AccessKeyCredential is kind of credential
func NewAccessKeyCredential ¶
func NewAccessKeyCredential(accessKeyId, accessKeySecret string) *AccessKeyCredential
NewAccessKeyCredential returns AccessKeyCredential
type BaseCredential ¶
BaseCredential is deprecated: Use AccessKeyCredential in this package instead.
func NewBaseCredential ¶
func NewBaseCredential(accessKeyId, accessKeySecret string) *BaseCredential
NewBaseCredential is deprecated: Use NewAccessKeyCredential in this package instead.
func (*BaseCredential) ToAccessKeyCredential ¶
func (baseCred *BaseCredential) ToAccessKeyCredential() *AccessKeyCredential
ToAccessKeyCredential returns AccessKeyCredential
type EcsRamRoleCredential ¶
type EcsRamRoleCredential struct {
RoleName string
}
EcsRamRoleCredential is kind of credential on ECS
func NewEcsRamRoleCredential ¶
func NewEcsRamRoleCredential(roleName string) *EcsRamRoleCredential
NewEcsRamRoleCredential returns EcsRamRoleCredential
type RamRoleArnCredential ¶
type RamRoleArnCredential struct { AccessKeyId string AccessKeySecret string RoleArn string RoleSessionName string RoleSessionExpiration int }
RamRoleArnCredential is going to replace StsRoleArnCredential
func NewRamRoleArnCredential ¶
func NewRamRoleArnCredential(accessKeyId, accessKeySecret, roleArn, roleSessionName string, roleSessionExpiration int) *RamRoleArnCredential
NewRamRoleArnCredential returns RamRoleArnCredential
type RsaKeyPairCredential ¶
RsaKeyPairCredential is kind of credential
func NewRsaKeyPairCredential ¶
func NewRsaKeyPairCredential(privateKey, publicKeyId string, sessionExpiration int) *RsaKeyPairCredential
NewRsaKeyPairCredential returns RsaKeyPairCredential
type StsRoleArnCredential ¶
type StsRoleArnCredential struct { AccessKeyId string AccessKeySecret string RoleArn string RoleSessionName string RoleSessionExpiration int }
StsRoleArnCredential is deprecated: Use RamRoleArnCredential in this package instead.
func NewStsRoleArnCredential ¶
func NewStsRoleArnCredential(accessKeyId, accessKeySecret, roleArn, roleSessionName string, roleSessionExpiration int) *StsRoleArnCredential
NewStsRoleArnCredential is deprecated: Use RamRoleArnCredential in this package instead.
func (*StsRoleArnCredential) ToRamRoleArnCredential ¶
func (oldCred *StsRoleArnCredential) ToRamRoleArnCredential() *RamRoleArnCredential
ToRamRoleArnCredential returns RamRoleArnCredential
type StsRoleNameOnEcsCredential ¶
type StsRoleNameOnEcsCredential struct {
RoleName string
}
StsRoleNameOnEcsCredential is deprecated: Use EcsRamRoleCredential in this package instead.
func NewStsRoleNameOnEcsCredential ¶
func NewStsRoleNameOnEcsCredential(roleName string) *StsRoleNameOnEcsCredential
NewStsRoleNameOnEcsCredential is deprecated: Use NewEcsRamRoleCredential in this package instead.
func (*StsRoleNameOnEcsCredential) ToEcsRamRoleCredential ¶
func (oldCred *StsRoleNameOnEcsCredential) ToEcsRamRoleCredential() *EcsRamRoleCredential
ToEcsRamRoleCredential is deprecated
type StsTokenCredential ¶
type StsTokenCredential struct { AccessKeyId string AccessKeySecret string AccessKeyStsToken string }
StsTokenCredential is kind of credential
func NewStsTokenCredential ¶
func NewStsTokenCredential(accessKeyId, accessKeySecret, accessKeyStsToken string) *StsTokenCredential
NewStsTokenCredential returns StsTokenCredential