store

package
v0.0.0-...-d3b06f9 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LocalStore

type LocalStore struct {
	DirectoryName string
}

func (*LocalStore) Get

func (s *LocalStore) Get(fileName string) (io.ReadCloser, error)

func (*LocalStore) Save

func (s *LocalStore) Save(fileName string, file io.Reader) error

type Storer

type Storer interface {
	Save(string, io.Reader) error
	Get(string) (io.ReadCloser, error)
}

We could have multiple storers, gcloud, azure, aws, nfs, local, etc.

func CreateFileStore

func CreateFileStore(storeType string) (Storer, error)

func NewLocalStore

func NewLocalStore(cfg *config.StoreConfig) Storer

Jump to

Keyboard shortcuts

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