filesystem

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FilesystemStore

type FilesystemStore struct {
	Root types.DirectoryPath
}

func NewFilesystemStore

func NewFilesystemStore(root types.DirectoryPath) (s FilesystemStore, err error)

func (FilesystemStore) Create

func (s FilesystemStore) Create(h storage.Key) (io.WriteCloser, error)

func (FilesystemStore) Delete

func (s FilesystemStore) Delete(h storage.Key) error

func (FilesystemStore) Exists

func (s FilesystemStore) Exists(h storage.Key) bool

func (FilesystemStore) List

func (s FilesystemStore) List() ([]storage.Key, error)

func (FilesystemStore) MakeReadOnly

func (s FilesystemStore) MakeReadOnly(h storage.Key) error

func (FilesystemStore) Reader

func (s FilesystemStore) Reader(h storage.Key) (io.ReadCloser, error)

func (FilesystemStore) Writer

func (s FilesystemStore) Writer(h storage.Key) (io.WriteCloser, error)

Jump to

Keyboard shortcuts

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