Documentation
¶
Overview ¶
Package localdiskstore is a archive.Store compatible abstraction over the golang standard library for os-agnostic path resolution and disk io.
Index ¶
- Constants
- type Store
- func (s *Store) Concat(ctx context.Context, concurrency int, files []string) ([][]byte, error)
- func (s *Store) Delete(_ context.Context, name string) error
- func (s *Store) Get(ctx context.Context, name string) (*file.File, error)
- func (s *Store) Put(_ context.Context, source io.Reader, name string, lastModified time.Time) error
- func (s *Store) Search(ctx context.Context, search string) (file.List, error)
- func (s *Store) Stat(_ context.Context, search string) (*file.File, error)
- func (s *Store) String() string
Constants ¶
View Source
const Name = "localDisk"
Name is used in the memorybox configuration file to determine which type of store to instantiate.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
RootPath string
}
Store implements archive.Store backed by local disk.
func NewFromConfig ¶
NewFromConfig instantiates a Store using configuration values that were likely sourced from a configuration file target.
func (*Store) Concat ¶
Concat an array of byte arrays ordered identically with the input files supplied. Note that this loads the entire dataset into memory.
Click to show internal directories.
Click to hide internal directories.