local

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2026 License: GPL-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 Backend

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

func New

func New(root string) (*Backend, error)

func (*Backend) DeleteManagedBundle

func (b *Backend) DeleteManagedBundle(ctx context.Context, bundlePath string, managedOutputPaths []string, opts storage.DeleteOptions) error

func (*Backend) DeleteManagedOutputs added in v0.6.0

func (b *Backend) DeleteManagedOutputs(ctx context.Context, bundlePath string, managedOutputPaths []string, opts storage.DeleteOptions) error

func (*Backend) DeletePrefix added in v0.1.4

func (b *Backend) DeletePrefix(ctx context.Context, prefix string, opts storage.DeleteOptions) error

func (*Backend) HasAny

func (b *Backend) HasAny(ctx context.Context, prefix string) (bool, error)

func (*Backend) OpenReader

func (b *Backend) OpenReader(ctx context.Context, path string) (io.ReadCloser, error)

func (*Backend) ReadFile

func (b *Backend) ReadFile(ctx context.Context, path string) ([]byte, error)

func (*Backend) Stat

func (b *Backend) Stat(ctx context.Context, path string) (storage.Entry, error)

func (*Backend) Walk

func (b *Backend) Walk(ctx context.Context, prefix string, opts storage.WalkOptions, fn storage.WalkFunc) error

func (*Backend) WriteFile

func (b *Backend) WriteFile(ctx context.Context, path string, data []byte, opts storage.WriteOptions) (storage.Entry, error)

func (*Backend) WriteFrom

func (b *Backend) WriteFrom(ctx context.Context, path string, r io.Reader, opts storage.WriteOptions) (storage.Entry, error)

Jump to

Keyboard shortcuts

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