Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AWS ¶
type AWS interface {
server.Task
// Return region
Region() string
// S3
S3() *s3.Client
// Buckets
ListBuckets(context.Context) ([]s3types.Bucket, error)
CreateBucket(context.Context, string, ...aws.Opt) (*s3types.Bucket, error)
GetBucket(context.Context, string) (*s3types.Bucket, error)
DeleteBucket(context.Context, string) error
// Objects
ListObjects(context.Context, string, ...aws.Opt) ([]s3types.Object, error)
GetObjectMeta(context.Context, string, string) (*s3types.Object, url.Values, error)
GetObject(context.Context, io.Writer, func(url.Values) error, string, string) (*s3types.Object, error)
DeleteObject(context.Context, string, string) error
PutObject(context.Context, string, string, io.Reader, ...aws.Opt) (*s3types.Object, error)
}
Click to show internal directories.
Click to hide internal directories.