storage

package
v0.0.0-...-bbc3de6 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(name string, factory Factory) error

Types

type Factory

type Factory = func(config *ucfg.Config) (Storage, error)

func GetFactory

func GetFactory(name string) (Factory, error)

type Storage

type Storage interface {
	// Check if a file exists
	FileExists(path string) bool
	// Upload a file to the storage
	Upload(name, path string) error
}

Storage is the interface common to all storage

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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