Documentation ¶
Index ¶
- Constants
- func NewAliCloudOSSBackend(conf map[string]string, logger log.Logger) (physical.Backend, error)
- type AliCloudOSSBackend
- func (a *AliCloudOSSBackend) Delete(ctx context.Context, key string) error
- func (a *AliCloudOSSBackend) Get(ctx context.Context, key string) (*physical.Entry, error)
- func (a *AliCloudOSSBackend) List(ctx context.Context, prefix string) ([]string, error)
- func (a *AliCloudOSSBackend) Put(ctx context.Context, entry *physical.Entry) error
Constants ¶
View Source
const ( AlibabaMetricKey = "alibaba" AlibabaCloudOSSEndpointEnv = "ALICLOUD_OSS_ENDPOINT" AlibabaCloudOSSBucketEnv = "ALICLOUD_OSS_BUCKET" AlibabaCloudAccessKeyEnv = "ALICLOUD_ACCESS_KEY" AlibabaCloudSecretKeyEnv = "ALICLOUD_SECRET_KEY" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AliCloudOSSBackend ¶
type AliCloudOSSBackend struct {
// contains filtered or unexported fields
}
AliCloudOSSBackend is a physical backend that stores data within an Alibaba OSS bucket.
func (*AliCloudOSSBackend) Delete ¶
func (a *AliCloudOSSBackend) Delete(ctx context.Context, key string) error
Delete is used to permanently delete an entry
Click to show internal directories.
Click to hide internal directories.