Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AKPairProvider ¶
type AKPairProvider struct {
// contains filtered or unexported fields
}
func NewAKPairProvider ¶
func NewAKPairProvider(ak string, sk string) *AKPairProvider
func (*AKPairProvider) Name ¶
func (a *AKPairProvider) Name() string
func (*AKPairProvider) Resolve ¶
func (a *AKPairProvider) Resolve() (*Credential, error)
type Client ¶ added in v1.2.1
func NewClientSet ¶ added in v1.2.1
type ClientMgr ¶ added in v1.2.1
type ClientMgr struct { // protect things below sync.RWMutex // contains filtered or unexported fields }
ClientMgr manager of aliyun openapi clientset
func NewClientMgr ¶ added in v1.2.1
func NewClientMgr(key, secret, credentialPath, regionID, secretNamespace, secretName string) (*ClientMgr, error)
NewClientMgr return new aliyun client manager
type Credential ¶
type Credential struct { Credential auth.Credential Expiration time.Time }
type EncryptedCredentialInfo ¶
type EncryptedCredentialProvider ¶
type EncryptedCredentialProvider struct {
// contains filtered or unexported fields
}
func NewEncryptedCredentialProvider ¶
func NewEncryptedCredentialProvider(credentialPath, secretNamespace, secretName string) *EncryptedCredentialProvider
NewEncryptedCredentialProvider get token from file or secret. default filepath /var/addon/token-config
func (*EncryptedCredentialProvider) Name ¶
func (e *EncryptedCredentialProvider) Name() string
func (*EncryptedCredentialProvider) Resolve ¶
func (e *EncryptedCredentialProvider) Resolve() (*Credential, error)
type Interface ¶
type Interface interface { Resolve() (*Credential, error) Name() string }
type MetadataProvider ¶
type MetadataProvider struct { }
func NewMetadataProvider ¶
func NewMetadataProvider() *MetadataProvider
NewMetadataProvider get ramRole from metadata
func (*MetadataProvider) Name ¶
func (m *MetadataProvider) Name() string
func (*MetadataProvider) Resolve ¶
func (m *MetadataProvider) Resolve() (*Credential, error)
Click to show internal directories.
Click to hide internal directories.