credential

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 6, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CustomCredential

type CustomCredential struct {
	// contains filtered or unexported fields
}

CustomCredential use user defined SecretId and SecretKey

func (*CustomCredential) GetQCloudCredential

func (cred *CustomCredential) GetQCloudCredential() *common.Credential

func (*CustomCredential) GetQCloudCustomCredential

func (cred *CustomCredential) GetQCloudCustomCredential() *common.Credential

func (*CustomCredential) UpdateQCloudCustomCredential

func (cred *CustomCredential) UpdateQCloudCustomCredential(secretId, secretKey string) *common.Credential

type FakeCred

type FakeCred struct {
	// contains filtered or unexported fields
}

func (*FakeCred) GetQCloudAssumedCredential

func (cred *FakeCred) GetQCloudAssumedCredential() (*common.Credential, error)

func (*FakeCred) GetQCloudCredential

func (cred *FakeCred) GetQCloudCredential() *common.Credential

func (*FakeCred) GetQCloudCustomCredential

func (cred *FakeCred) GetQCloudCustomCredential() *common.Credential

func (*FakeCred) UpdateQCloudCustomCredential

func (cred *FakeCred) UpdateQCloudCustomCredential(secretId, secretKey string) *common.Credential

type QCloudCredential

type QCloudCredential interface {
	GetQCloudCredential() *common.Credential
	UpdateQCloudCustomCredential(secretId, secretKey string) *common.Credential
}

func NewFakeCred

func NewFakeCred(secretId, secretKey string, expiredDuration time.Duration) QCloudCredential

func NewQCloudCredential

func NewQCloudCredential(clusterId, appId, secretId, secretKey string, expiredDuration time.Duration) QCloudCredential

Jump to

Keyboard shortcuts

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