telemetry

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(storage model.Storage, tracer trace.Tracer) model.Storage

Types

type App

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

func (App) ConvertError added in v0.3.4

func (a App) ConvertError(err error) error

func (App) Enabled

func (a App) Enabled() bool

func (App) List

func (a App) List(ctx context.Context, pathname string) ([]model.Item, error)

func (App) Mkdir added in v1.6.0

func (a App) Mkdir(ctx context.Context, name string, perm os.FileMode) error

func (App) Name

func (a App) Name() string

func (App) OpenFile added in v1.6.0

func (a App) OpenFile(ctx context.Context, name string, flag int, perm os.FileMode) (*model.FileItem, error)

func (App) Path

func (a App) Path(pathname string) string

func (App) ReadFrom

func (a App) ReadFrom(ctx context.Context, pathname string) (model.ReadAtSeekCloser, error)

func (App) RemoveAll added in v1.6.0

func (a App) RemoveAll(ctx context.Context, name string) error

func (App) Rename

func (a App) Rename(ctx context.Context, oldName, newName string) error

func (App) Stat added in v1.6.0

func (a App) Stat(ctx context.Context, name string) (model.Item, error)

func (App) UpdateDate

func (a App) UpdateDate(ctx context.Context, pathname string, date time.Time) error

func (App) Walk

func (a App) Walk(ctx context.Context, pathname string, walkFn func(model.Item) error) error

func (App) WithIgnoreFn

func (a App) WithIgnoreFn(ignoreFn func(model.Item) bool) model.Storage

func (App) WriteTo

func (a App) WriteTo(ctx context.Context, pathname string, reader io.Reader, opts model.WriteOpts) error

Jump to

Keyboard shortcuts

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