Documentation ¶
Index ¶
- type CustomCredential
- type FakeCred
- func (cred *FakeCred) GetQCloudAssumedCredential() (*common.Credential, error)
- func (cred *FakeCred) GetQCloudCredential() *common.Credential
- func (cred *FakeCred) GetQCloudCustomCredential() *common.Credential
- func (cred *FakeCred) UpdateQCloudCustomCredential(secretId, secretKey string) *common.Credential
- type QCloudCredential
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
Click to show internal directories.
Click to hide internal directories.