Versions in this module Expand all Collapse all v3 v3.0.0 Apr 8, 2024 Changes in this version + const DefaultEndpoint + const NoSuchKeyErr + type BOSObjectStorage struct + func NewBOSObjectStorage(cfg *BOSStorageConfig) (*BOSObjectStorage, error) + func (b *BOSObjectStorage) DeleteObject(ctx context.Context, objectKey string) error + func (b *BOSObjectStorage) GetObject(ctx context.Context, objectKey string) (io.ReadCloser, int64, error) + func (b *BOSObjectStorage) IsObjectNotFoundErr(err error) bool + func (b *BOSObjectStorage) IsRetryableErr(error) bool + func (b *BOSObjectStorage) List(ctx context.Context, prefix string, delimiter string) ([]client.StorageObject, []client.StorageCommonPrefix, error) + func (b *BOSObjectStorage) ObjectExists(ctx context.Context, objectKey string) (bool, error) + func (b *BOSObjectStorage) PutObject(ctx context.Context, objectKey string, object io.ReadSeeker) error + func (b *BOSObjectStorage) Stop() + type BOSStorageConfig struct + AccessKeyID string + BucketName string + Endpoint string + SecretAccessKey flagext.Secret + func (cfg *BOSStorageConfig) RegisterFlags(f *flag.FlagSet) + func (cfg *BOSStorageConfig) RegisterFlagsWithPrefix(prefix string, f *flag.FlagSet)