Help us shape the future of Go! Take the 2026 Go Developer Survey

blob

package
v0.22.1 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2023 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FS

type FS interface {
	Create(name string) (*os.File, error)
	MkdirAll(path string, perm fs.FileMode) error
	Open(name string) (fs.ReadDirFile, error)
	Remove(name string) error

	file.RenamerRemover
}

type FilesystemStore

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

func NewFilesystemStore

func NewFilesystemStore(path string, fs FS) *FilesystemStore

func (*FilesystemStore) Delete

func (s *FilesystemStore) Delete(ctx context.Context, checksum string) error

func (*FilesystemStore) Read

func (s *FilesystemStore) Read(ctx context.Context, checksum string) ([]byte, error)

func (*FilesystemStore) Write

func (s *FilesystemStore) Write(ctx context.Context, checksum string, data []byte) error

Jump to

Keyboard shortcuts

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