minio

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Endpoint string
	Region   string
	Bucket   string
	Prefix   string
	Secure   bool

	AccessKeyID     string
	AccessKeySecret string
}

type Minio

type Minio struct {
	// contains filtered or unexported fields
}

func NewMinio

func NewMinio(conf Config) (*Minio, error)

NewMinio create a new minio client

func (*Minio) Del

func (m *Minio) Del(ctx context.Context, p string) error

func (*Minio) Get

func (m *Minio) Get(ctx context.Context, p string) (f io.ReadCloser, err error)

func (*Minio) List

func (m *Minio) List(ctx context.Context, p string, fn func(fs.FileInfo) error) error

func (*Minio) Put

func (m *Minio) Put(ctx context.Context, p string, f io.Reader) (err error)

func (*Minio) Stat

func (m *Minio) Stat(ctx context.Context, p string) (fs.FileInfo, error)

Jump to

Keyboard shortcuts

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