local

package
v0.0.0-...-ebe581b Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

type Storage struct {
	localstorage.Storage
}

Storage stores files locally

func New

func New(rootPath string) (*Storage, error)

New initiates Storage

func (*Storage) Read

func (s *Storage) Read(key string) (io.ReadCloser, error)

Read retrieves a target from local

func (*Storage) Write

func (s *Storage) Write(value io.Reader, key string) (string, error)

Write writes target to local

Jump to

Keyboard shortcuts

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