miniofs

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2025 License: BSD-3-Clause Imports: 10 Imported by: 1 module, 4 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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) Clean added in v1.1.61

func (fs *Filer) Clean(ctx context.Context, prefix string) error

Clean removes all files from s3/minio starting by prefix

func (*Filer) LoadFile added in v1.0.55

func (fs *Filer) LoadFile(ctx context.Context, name string) (io.ReadSeekCloser, error)

LoadFile loads file from s3/minio

func (*Filer) SaveFile

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

SaveFile saves file to s3/minio

type Options

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

Options is minio client initializatoin options

Jump to

Keyboard shortcuts

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