local

package
v0.0.0-...-17c6d09 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2024 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 {
	// contains filtered or unexported fields
}

func New

func New(basePath, baseURL string, isDefault bool) (*LocalStore, error)

func (*LocalStore) Delete

func (s *LocalStore) Delete(path string) error

func (*LocalStore) Get

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

func (*LocalStore) GetSize

func (s *LocalStore) GetSize(path string) (int64, error)

func (*LocalStore) GetURL

func (s *LocalStore) GetURL(path string) string

func (*LocalStore) IsDefault

func (s *LocalStore) IsDefault() bool

func (*LocalStore) Save

func (s *LocalStore) Save(content io.Reader, filename string) (string, error)

func (*LocalStore) SetDefault

func (s *LocalStore) SetDefault() error

func (*LocalStore) SetExpiry

func (s *LocalStore) SetExpiry(path string, expiry time.Time) error

func (*LocalStore) Type

func (s *LocalStore) Type() string

Jump to

Keyboard shortcuts

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