Documentation ¶
Index ¶
Constants ¶
View Source
const ( Local = "local" Cloud = "cloud" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FS ¶
type FS struct { Filesystem Filesystem Driver string Dir string Client *minio.Client StorageName string }
type Filesystem ¶
type Filesystem interface { List() ([]string, error) Read(path string) ([]byte, error) Create(path string, data []byte) error Remove(path string) error }
func CreateCloudFilesystem ¶
func CreateCloudFilesystem(ctx context.Context, dir string, storageName string, client *minio.Client) Filesystem
func CreateLocalFilesystem ¶
func CreateLocalFilesystem(dir string) Filesystem
Click to show internal directories.
Click to hide internal directories.