local

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package local implements a storage.Storage backend for local file storage

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

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

Storage implements the storage.Storage interface for local file storage

func New

func New(basePath string) Storage

New returns a new local file storage

func (Storage) GetFile

func (s Storage) GetFile(_ context.Context, cachePath string) (io.ReadSeekCloser, error)

GetFile implements the storage.Storage GetFile method

func (Storage) LoadMeta

func (s Storage) LoadMeta(_ context.Context, cachePath string) (*storage.Meta, error)

LoadMeta implements the storage.Storage LoadMeta method

func (Storage) StoreFile

func (s Storage) StoreFile(_ context.Context, cachePath string, metadata *storage.Meta, data io.Reader) (err error)

StoreFile implements the storage.Storage StoreFile method

Jump to

Keyboard shortcuts

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