minio

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2023 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
	Basket          string
	AccessKeyID     string
	SecretAccessKey string
	UseSSL          bool
}

type Storage

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

func NewStorage

func NewStorage(conf Config) (*Storage, error)

NewStorage returns a new Storage.

func (*Storage) Delete

func (g *Storage) Delete(ctx context.Context, path string) error

Delete deletes path.

func (*Storage) Open added in v0.0.2

func (g *Storage) Open(ctx context.Context, path string) (io.ReadCloser, error)

// Open opens path for reading.

func (*Storage) OpenWithStat added in v0.0.2

func (g *Storage) OpenWithStat(ctx context.Context, path string) (io.ReadCloser, *gostorages.Stat, error)

OpenWithStat opens path for reading with file stats.

func (*Storage) Save

func (g *Storage) Save(ctx context.Context, content io.Reader, path string) error

func (*Storage) Stat added in v0.0.2

func (g *Storage) Stat(ctx context.Context, path string) (*gostorages.Stat, error)

Stat returns path metadata.

Jump to

Keyboard shortcuts

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