storage

package
v0.0.0-...-5a94a59 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2023 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAll

func GetAll() []storage_base.Storage

func GetByID

func GetByID(id []byte) storage_base.Storage

func NewGDriveStorage

func NewGDriveStorage(label string)

func NewS3Storage

func NewS3Storage(label string, bucket string, root string, region string, keyid string, secretkey string, endpoint string)

func NewStorage

func NewStorage(kind string, identifier string, rootPath string, label string) storage_base.Storage

func ResolveDescriptors

func ResolveDescriptors(descriptors []StorageDescriptor) []storage_base.Storage

func StorageDataToStorage

func StorageDataToStorage(descriptor StorageDescriptor) storage_base.Storage

func StorageSelect

func StorageSelect(label string) (storage_base.Storage, bool)

Types

type StorageDescriptor

type StorageDescriptor struct {
	StorageID  [32]byte
	Kind       string
	Identifier string
	RootPath   string
}

func GetAllDescriptors

func GetAllDescriptors() []StorageDescriptor

Jump to

Keyboard shortcuts

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