Documentation ¶
Overview ¶
Package fs provided support for local file system.
Code generated by go generate via internal/cmd/service; DO NOT EDIT.
Index ¶
- Constants
- func NewStorager(pairs ...*types.Pair) (storage.Storager, error)
- type Storage
- func (s *Storage) Copy(src, dst string, pairs ...*types.Pair) (err error)
- func (s *Storage) CopyWithContext(ctx context.Context, src, dst string, pairs ...*types.Pair) (err error)
- func (s *Storage) Delete(path string, pairs ...*types.Pair) (err error)
- func (s *Storage) DeleteWithContext(ctx context.Context, path string, pairs ...*types.Pair) (err error)
- func (s *Storage) ListDir(path string, pairs ...*types.Pair) (err error)
- func (s *Storage) ListDirWithContext(ctx context.Context, path string, pairs ...*types.Pair) (err error)
- func (s *Storage) Metadata(pairs ...*types.Pair) (m info.StorageMeta, err error)
- func (s *Storage) MetadataWithContext(ctx context.Context, pairs ...*types.Pair) (m info.StorageMeta, err error)
- func (s *Storage) Move(src, dst string, pairs ...*types.Pair) (err error)
- func (s *Storage) MoveWithContext(ctx context.Context, src, dst string, pairs ...*types.Pair) (err error)
- func (s *Storage) Read(path string, pairs ...*types.Pair) (r io.ReadCloser, err error)
- func (s *Storage) ReadWithContext(ctx context.Context, path string, pairs ...*types.Pair) (r io.ReadCloser, err error)
- func (s *Storage) Stat(path string, pairs ...*types.Pair) (o *types.Object, err error)
- func (s *Storage) StatWithContext(ctx context.Context, path string, pairs ...*types.Pair) (o *types.Object, err error)
- func (s *Storage) String() string
- func (s *Storage) Write(path string, r io.Reader, pairs ...*types.Pair) (err error)
- func (s *Storage) WriteWithContext(ctx context.Context, path string, r io.Reader, pairs ...*types.Pair) (err error)
Constants ¶
View Source
const StreamModeType = os.ModeNamedPipe | os.ModeSocket | os.ModeDevice | os.ModeCharDevice
StreamModeType is the stream mode type.
View Source
const Type = "fs"
Type is the type for fs
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
Storage is the fs client.
func (*Storage) CopyWithContext ¶ added in v0.6.0
func (s *Storage) CopyWithContext(ctx context.Context, src, dst string, pairs ...*types.Pair) (err error)
CopyWithContext adds context support for Copy.
func (*Storage) DeleteWithContext ¶ added in v0.6.0
func (s *Storage) DeleteWithContext(ctx context.Context, path string, pairs ...*types.Pair) (err error)
DeleteWithContext adds context support for Delete.
func (*Storage) ListDirWithContext ¶ added in v1.0.0
func (s *Storage) ListDirWithContext(ctx context.Context, path string, pairs ...*types.Pair) (err error)
ListDirWithContext adds context support for ListDir.
func (*Storage) MetadataWithContext ¶ added in v0.6.0
func (s *Storage) MetadataWithContext(ctx context.Context, pairs ...*types.Pair) (m info.StorageMeta, err error)
MetadataWithContext adds context support for Metadata.
func (*Storage) MoveWithContext ¶ added in v0.6.0
func (s *Storage) MoveWithContext(ctx context.Context, src, dst string, pairs ...*types.Pair) (err error)
MoveWithContext adds context support for Move.
func (*Storage) ReadWithContext ¶ added in v0.6.0
func (s *Storage) ReadWithContext(ctx context.Context, path string, pairs ...*types.Pair) (r io.ReadCloser, err error)
ReadWithContext adds context support for Read.
func (*Storage) StatWithContext ¶ added in v0.6.0
func (s *Storage) StatWithContext(ctx context.Context, path string, pairs ...*types.Pair) (o *types.Object, err error)
StatWithContext adds context support for Stat.
Click to show internal directories.
Click to hide internal directories.