miniofs

package
v1.0.54 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2022 License: BSD-3-Clause Imports: 8 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Filer

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

Filer saves files on s3/minio

func NewFiler

func NewFiler(ctx context.Context, opt Options) (*Filer, error)

NewFiler creates Minio file saver

func (*Filer) SaveFile

func (fs *Filer) SaveFile(ctx context.Context, name string, reader io.Reader) error

SaveFile saves file to s3/minio

type Options

type Options struct {
	URL, User, Key, Bucket string
}

Options is minio client initializatoin options

Jump to

Keyboard shortcuts

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