Documentation ¶
Index ¶
- Constants
- type Store
- func (s *Store) Concat(ctx context.Context, concurrency int, files []string) ([][]byte, error)
- func (s *Store) Delete(ctx context.Context, key string) error
- func (s *Store) Get(ctx context.Context, name string) (*file.File, error)
- func (s *Store) Put(ctx context.Context, reader io.Reader, name string, lastModified time.Time) error
- func (s *Store) Search(ctx context.Context, prefix string) (file.List, error)
- func (s *Store) Stat(ctx context.Context, name string) (*file.File, error)
- func (s *Store) String() string
Constants ¶
View Source
const Name = "objectStore"
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 ¶
Store implements archive.Store backed by s3-compatible object archive.
func NewFromConfig ¶
NewFromConfig produces a new instance of a store.
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.
func (*Store) Put ¶
func (s *Store) Put(ctx context.Context, reader io.Reader, name string, lastModified time.Time) error
Put writes the content of an io.Reader to the backing object storage bucket. It saves the actual lastModified time supplied as metadata because most s3 implementations do not allow modifying it.
Click to show internal directories.
Click to hide internal directories.