Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface {
// MakeBucket creates a new bucket on object storage.
MakeBucket(ctx context.Context, bucketName string) error
// BucketExists checks if a bucket exists.
BucketExists(ctx context.Context, bucketName string) (bool, error)
// GetObject gets an object from object storage.
GetObject(ctx context.Context, bucketName string, objectName string) (io.ReadCloser, error)
// PutObject puts an object to object storage.
PutObject(ctx context.Context, bucketName string, objectName string, reader io.Reader, contentType string) error
// DeleteObject deletes an object from object storage.
DeleteObject(ctx context.Context, bucketName string, objectName string) error
}
Client is an interface for object storage client.
Click to show internal directories.
Click to hide internal directories.