Documentation ¶
Index ¶
- func New(storage model.Storage, tracerProvider trace.TracerProvider) model.Storage
- type Service
- func (a Service) ConvertError(err error) error
- func (a Service) Enabled() bool
- func (a Service) List(ctx context.Context, name string) ([]model.Item, error)
- func (a Service) Mkdir(ctx context.Context, name string, perm os.FileMode) error
- func (a Service) Name() string
- func (a Service) Path(name string) string
- func (a Service) ReadFrom(ctx context.Context, name string) (model.ReadAtSeekCloser, error)
- func (a Service) RemoveAll(ctx context.Context, name string) error
- func (a Service) Rename(ctx context.Context, oldName, newName string) error
- func (a Service) Stat(ctx context.Context, name string) (model.Item, error)
- func (a Service) UpdateDate(ctx context.Context, name string, date time.Time) error
- func (a Service) Walk(ctx context.Context, name string, walkFn func(model.Item) error) error
- func (a Service) WithIgnoreFn(ignoreFn func(model.Item) bool) model.Storage
- func (a Service) WriteTo(ctx context.Context, name string, reader io.Reader, opts model.WriteOpts) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Service ¶ added in v1.7.1
type Service struct {
// contains filtered or unexported fields
}
func (Service) ConvertError ¶ added in v1.7.1
func (Service) UpdateDate ¶ added in v1.7.1
func (Service) WithIgnoreFn ¶ added in v1.7.1
Click to show internal directories.
Click to hide internal directories.