Documentation ¶
Index ¶
- Constants
- type OssAgent
- func (u *OssAgent) CleanObjectsWithPrefix(ctx context.Context, bucket, prefix string) (err error)
- func (agent *OssAgent) CopyBucketFile(ctx context.Context, ...) (err error)
- func (u *OssAgent) DeleteFileObject(ctx context.Context, bucket, key string) (err error)
- func (agent *OssAgent) GetClient() *oss.Client
- func (agent *OssAgent) ListBucketItems(ctx context.Context, bucket string, relativeBucket string) (result []string, err error)
- func (u *OssAgent) OpenFileObject(ctx context.Context, bucket, key string) (*oss.ReadOnlyFile, error)
- func (agent *OssAgent) UploadDirectory(ctx context.Context, srcDir string, bucket, preName string) (err error)
- func (agent *OssAgent) UploadFileObject(ctx context.Context, srcPath, bucket, key string) (err error)
Constants ¶
View Source
const (
BucketSep = "/"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OssAgent ¶
type OssAgent struct { Region string // contains filtered or unexported fields }
func NewOssAgent ¶
func (*OssAgent) CleanObjectsWithPrefix ¶
func (*OssAgent) CopyBucketFile ¶
func (*OssAgent) DeleteFileObject ¶
func (*OssAgent) ListBucketItems ¶
func (*OssAgent) OpenFileObject ¶
func (*OssAgent) UploadDirectory ¶
Click to show internal directories.
Click to hide internal directories.