Documentation ¶
Index ¶
- Constants
- Variables
- type BasicTree
- func (tree *BasicTree) Abs() Path
- func (tree *BasicTree) Create(path Path, subTree Tree, replace bool, ctx context.Context) (Tree, error)
- func (tree *BasicTree) Find(path Path, ctx context.Context) (Tree, error)
- func (tree *BasicTree) Leaves() []Tree
- func (tree *BasicTree) List(ctx context.Context) (map[string]Tree, error)
- func (tree *BasicTree) Merge(other Tree, ctx context.Context) error
- func (tree *BasicTree) Remove(path Path, recurse bool, ctx context.Context) error
- func (tree *BasicTree) Transfer() (*Transfer, error)
- type MountTree
- func (tree *MountTree) Abs() Path
- func (tree *MountTree) Create(path Path, subTree Tree, replace bool, ctx context.Context) (old Tree, err error)
- func (tree *MountTree) Find(path Path, ctx context.Context) (Tree, error)
- func (tree *MountTree) Leaves() []Tree
- func (tree *MountTree) List(ctx context.Context) (map[string]Tree, error)
- func (tree *MountTree) Merge(other Tree, ctx context.Context) error
- func (tree *MountTree) Mount(subTree Tree, path Path, ctx context.Context) (Tree, error)
- func (tree *MountTree) Remove(path Path, recurse bool, ctx context.Context) error
- func (tree *MountTree) Transfer() (*Transfer, error)
- type Path
- type Transfer
- type Tree
Constants ¶
View Source
const Separator = "/"
Variables ¶
View Source
var ErrUnknownSubType = errors.New("unknown sub-type")
View Source
var ErrUnsupported = errors.New("unsupported")
View Source
var ErrWrongPath = errors.New("wrong path")
View Source
var Extractors = map[string]func(msgpack.RawMessage) (Tree, error){}
Functions ¶
This section is empty.
Types ¶
type BasicTree ¶
type BasicTree struct {
// contains filtered or unexported fields
}
func NewBasicTree ¶
type MountTree ¶
type MountTree struct {
// contains filtered or unexported fields
}
func NewMountTree ¶
type Transfer ¶
type Transfer struct { SubType string `msgpack:"sub_type"` Desc msgpack.RawMessage `msgpack:"desc"` }
type Tree ¶
type Tree interface { Abs() Path Find(path Path, ctx context.Context) (Tree, error) Create(path Path, subTree Tree, replace bool, ctx context.Context) (old Tree, err error) Remove(path Path, recurse bool, ctx context.Context) error List(ctx context.Context) (map[string]Tree, error) Transfer() (*Transfer, error) Merge(other Tree, ctx context.Context) error Leaves() []Tree }
func ExtractTransfer ¶
Click to show internal directories.
Click to hide internal directories.