wrapper

package
v0.30.66 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Key       string
	FileName  string
	FilePath  string
	BucketIDs []string
}

type StorageProvider

type StorageProvider struct {
	// contains filtered or unexported fields
}

func New

func New(config Config) *StorageProvider

func (*StorageProvider) Close

func (s *StorageProvider) Close() (err error)

func (*StorageProvider) GetOpenStores

func (s *StorageProvider) GetOpenStores() []storage.Store

func (*StorageProvider) GetStoreConfig

func (s *StorageProvider) GetStoreConfig(name string) (storage.StoreConfiguration, error)

func (*StorageProvider) ID

func (s *StorageProvider) ID() string

func (*StorageProvider) Init

func (s *StorageProvider) Init() (err error)

func (*StorageProvider) Key

func (s *StorageProvider) Key() string

func (*StorageProvider) OpenStore

func (s *StorageProvider) OpenStore(name string) (storage.Store, error)

Used by AFGO through StorageProvider interface

func (*StorageProvider) SetStoreConfig

func (s *StorageProvider) SetStoreConfig(name string, _ storage.StoreConfiguration) error

AFGO StorageProvider placeholder implementations

type Store

type Store interface {
	storage.Store
	GetAll(transform db.Filter) ([][]byte, error)
}

Jump to

Keyboard shortcuts

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