storage

package
v0.0.0-...-fa6ae4b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 6, 2021 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigOptions

type ConfigOptions struct {
	Endpoint string
	ID       string
	Secret   string
	Secure   bool
}

ConfigOptions is configurate options for Minio.

type S3Client

type S3Client struct {
	*minio.Client
	// contains filtered or unexported fields
}

S3Client is a AWS S3 compatible Minio client.

func New

func New(ctx context.Context, config ConfigOptions) S3Client

New returns a new S3Client.

func (S3Client) PrepareBuckets

func (c S3Client) PrepareBuckets(ctx context.Context, buckets ...string) error

PrepareBuckets prepares buckets before object operations.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL