minio

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

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

Driver implements Driver to store files in minio

func (*Driver) DeleteDir

func (driver *Driver) DeleteDir(path string) error

DeleteDir implements Driver

func (*Driver) DeleteFile

func (driver *Driver) DeleteFile(path string) error

DeleteFile implements Driver

func (*Driver) GetFile

func (driver *Driver) GetFile(path string, offset int64) (int64, io.ReadCloser, error)

GetFile implements Driver

func (*Driver) ListDir

func (driver *Driver) ListDir(path string, callback func(core.FileInfo) error) error

ListDir implements Driver

func (*Driver) MakeDir

func (driver *Driver) MakeDir(path string) error

MakeDir implements Driver

func (*Driver) PutFile

func (driver *Driver) PutFile(destPath string, data io.Reader, appendData bool) (int64, error)

PutFile implements Driver

func (*Driver) Rename

func (driver *Driver) Rename(fromPath string, toPath string) error

Rename implements Driver

func (*Driver) Stat

func (driver *Driver) Stat(path string) (core.FileInfo, error)

Stat implements Driver

type DriverFactory

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

DriverFactory implements DriverFactory

func NewDriverFactory

func NewDriverFactory(endpoint, accessKeyID, secretAccessKey, location, bucket string, useSSL bool, perm core.Perm) *DriverFactory

NewDriverFactory creates a DriverFactory implementation

func (*DriverFactory) NewDriver

func (factory *DriverFactory) NewDriver() (core.Driver, error)

NewDriver implements DriverFactory

Jump to

Keyboard shortcuts

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