Documentation
¶
Index ¶
- Constants
- type FSMeta
- type S3Client
- func (c *S3Client) BucketExists(ctx context.Context, bucketName string) (bool, error)
- func (c *S3Client) CreateBucket(ctx context.Context, bucketName string) error
- func (c *S3Client) CreatePrefix(ctx context.Context, bucketName string, prefix string) error
- func (c *S3Client) GetFSMeta(ctx context.Context, bucketName, prefix string) (*FSMeta, error)
- func (c *S3Client) RemoveBucket(ctx context.Context, bucketName string) error
- func (c *S3Client) RemoveObjects(ctx context.Context, bucketName, prefix string) error
- func (c *S3Client) RemoveObjectsOneByOne(ctx context.Context, bucketName, prefix string) error
- func (c *S3Client) RemovePrefix(ctx context.Context, bucketName string, prefix string) error
- func (c *S3Client) SetFSMeta(ctx context.Context, meta *FSMeta) error
- type S3Config
Constants ¶
View Source
const (
MetadataName = ".metadata.json"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type S3Client ¶
type S3Client struct { Config *S3Config Minio *minio.Client }
func CreateClient ¶
func CreateClientFromConfig ¶
func (*S3Client) BucketExists ¶
func (*S3Client) CreateBucket ¶
func (*S3Client) CreatePrefix ¶
func (*S3Client) RemoveBucket ¶
func (*S3Client) RemoveObjects ¶
func (*S3Client) RemoveObjectsOneByOne ¶
func (*S3Client) RemovePrefix ¶
Click to show internal directories.
Click to hide internal directories.