local

package
v0.54.0 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2026 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Local

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

func (*Local) Exists added in v0.23.0

func (l *Local) Exists(ctx context.Context, storagePath string) bool

func (*Local) Init

func (l *Local) Init(ctx context.Context, cfg config.StorageConfig) error

func (*Local) JoinStoragePath added in v0.11.0

func (l *Local) JoinStoragePath(path string) string

func (*Local) ListFiles added in v0.52.0

func (l *Local) ListFiles(ctx context.Context, dirPath string) ([]storagetypes.FileInfo, error)

ListFiles implements StorageListable interface

func (*Local) Name added in v0.11.0

func (l *Local) Name() string

func (*Local) OpenFile added in v0.52.0

func (l *Local) OpenFile(ctx context.Context, filePath string) (io.ReadCloser, int64, error)

OpenFile implements StorageReadable interface

func (*Local) Save

func (l *Local) Save(ctx context.Context, r io.Reader, storagePath string) error

func (*Local) Type added in v0.11.0

func (l *Local) Type() storenum.StorageType

Jump to

Keyboard shortcuts

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