S3Backend

package
v0.0.0-...-0cb0dc6 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2022 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 S3Backend

type S3Backend struct {
	Client   *minio.Client
	Bucket   string
	BasePath string
}

func NewS3Backend

func NewS3Backend(path string, timeout int) (*S3Backend, error)

func (*S3Backend) FileExists

func (s *S3Backend) FileExists(filename string) bool

func (*S3Backend) GetDirectories

func (s *S3Backend) GetDirectories(dirname string) ([]string, error)

func (*S3Backend) GetFile

func (s *S3Backend) GetFile(filename string) ([]byte, error)

func (*S3Backend) GetFiles

func (s *S3Backend) GetFiles(dirname string) ([]string, error)

func (*S3Backend) GetFilesRecursive

func (s *S3Backend) GetFilesRecursive(dirname string) ([]string, error)

func (*S3Backend) MkdirAll

func (s *S3Backend) MkdirAll(dirname string) error

func (*S3Backend) PutFile

func (s *S3Backend) PutFile(filename string, content *bytes.Buffer) error

Jump to

Keyboard shortcuts

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