filesystem

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: MIT Imports: 11 Imported by: 2

Documentation

Index

Constants

View Source
const (
	Local = "local"
	Cloud = "cloud"
)

Variables

View Source
var (
	ErrorMissingCloud = errors.New("cloud client is not initialized")
)

Functions

This section is empty.

Types

type Client

type Client interface {
	GetList() ([]string, error)
	Read(path string) ([]byte, error)
	Create(path string, data []byte) error
	Remove(path string) error

	MustGetList() []string
	MustRead(path string) []byte
	MustCreate(path string, data []byte)
	MustRemove(path string)
}

func New

func New(ctx context.Context, config Config) Client

type Config

type Config struct {
	Driver string
	Name   string
	Dir    string
	Cloud  *minio.Client
}

Jump to

Keyboard shortcuts

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