Documentation
¶
Index ¶
- func NewCredentialProvider() (minioCred.Provider, error)
- func NewTencentCredentialProvider() (minioCred.Provider, error)
- func VerifyAWS(ctx context.Context, bucketName, region, address string, secure bool) error
- func VerifyAliyun(ctx context.Context, bucketName, region, address string, secure bool) error
- func VerifyAzure(ctx context.Context, params VerifyAzureParams) error
- func VerifyGCP(ctx context.Context, bucketName string) error
- func VerifyTencent(ctx context.Context, bucketName, region, address string, secure bool) error
- type Credential
- type CredentialProvider
- type TencentCredentialProvider
- type VerifyAzureParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCredentialProvider ¶
func VerifyAliyun ¶
func VerifyAzure ¶
func VerifyAzure(ctx context.Context, params VerifyAzureParams) error
Types ¶
type Credential ¶
type Credential interface { credentials.Credential }
Credential is defined to mock aliyun credential.Credentials
type CredentialProvider ¶
type CredentialProvider struct {
// contains filtered or unexported fields
}
CredentialProvider implements "github.com/minio/minio-go/v7/pkg/credentials".Provider also implements transport
func (CredentialProvider) IsExpired ¶
func (c CredentialProvider) IsExpired() bool
IsExpired returns if the credentials are no longer valid, and need to be retrieved. according to the caller minioCred.Credentials.IsExpired(), it already has a lock, so we don't need to worry about concurrency
func (*CredentialProvider) Retrieve ¶
func (c *CredentialProvider) Retrieve() (minioCred.Value, error)
Retrieve returns nil if it successfully retrieved the value. Error is returned if the value were not obtainable, or empty. according to the caller minioCred.Credentials.Get(), it already has a lock, so we don't need to worry about concurrency
func (*CredentialProvider) RetrieveWithCredContext ¶
func (c *CredentialProvider) RetrieveWithCredContext(_ *minioCred.CredContext) (minioCred.Value, error)
RetrieveWithCredContext implements "github.com/minio/minio-go/v7/pkg/credentials".Provider.RetrieveWithCredContext()
type TencentCredentialProvider ¶
type TencentCredentialProvider struct {
// contains filtered or unexported fields
}
TencentCredentialProvider implements "github.com/minio/minio-go/v7/pkg/credentials".Provider also implements transport
func (TencentCredentialProvider) IsExpired ¶
func (c TencentCredentialProvider) IsExpired() bool
IsExpired returns if the credentials are no longer valid, and need to be retrieved. according to the caller minioCred.Credentials.IsExpired(), it already has a lock, so we don't need to worry about concurrency
func (*TencentCredentialProvider) Retrieve ¶
func (c *TencentCredentialProvider) Retrieve() (minioCred.Value, error)
Retrieve returns nil if it successfully retrieved the value. Error is returned if the value were not obtainable, or empty. according to the caller minioCred.Credentials.Get(), it already has a lock, so we don't need to worry about concurrency
func (*TencentCredentialProvider) RetrieveWithCredContext ¶
func (c *TencentCredentialProvider) RetrieveWithCredContext(_ *minioCred.CredContext) (minioCred.Value, error)
RetrieveWithCredContext implements "github.com/minio/minio-go/v7/pkg/credentials".Provider.RetrieveWithCredContext()