credentials

package
v1.61.1042 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2021 License: Apache-2.0 Imports: 0 Imported by: 224

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessKeyCredential

type AccessKeyCredential struct {
	AccessKeyId     string
	AccessKeySecret string
}

func NewAccessKeyCredential

func NewAccessKeyCredential(accessKeyId, accessKeySecret string) *AccessKeyCredential

type BaseCredential deprecated

type BaseCredential struct {
	AccessKeyId     string
	AccessKeySecret string
}

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
}

func NewRamRoleArnCredential

func NewRamRoleArnCredential(accessKeyId, accessKeySecret, roleArn, roleSessionName string, roleSessionExpiration int) *RamRoleArnCredential

func NewRamRoleArnWithPolicyCredential

func NewRamRoleArnWithPolicyCredential(accessKeyId, accessKeySecret, roleArn, roleSessionName, policy string, roleSessionExpiration int) *RamRoleArnCredential

type RsaKeyPairCredential

type RsaKeyPairCredential struct {
	PrivateKey        string
	PublicKeyId       string
	SessionExpiration int
}

func NewRsaKeyPairCredential

func NewRsaKeyPairCredential(privateKey, publicKeyId string, sessionExpiration int) *RsaKeyPairCredential

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

Directories

Path Synopsis
Package providers Deprecated
Package providers Deprecated

Jump to

Keyboard shortcuts

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