Documentation
¶
Index ¶
Constants ¶
View Source
const (
// RootTag 根节点标签
RootTag = "ROOT"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Space ¶
type Space interface { // ID 返回空间 ID ID() uid.UID // Tree 返回记录层的树 Tree() trees.Tree // Init 初始化 Init(ctx context.Context) error // Load 加载数据 Load(ctx context.Context) error // Save 将数据持久化 Save(ctx context.Context) error // CreateMount 创建一个该空间的挂载 CreateMount(ctx context.Context, revision string, mountID uid.UID, mountOpts mounts.MountOptions) (mount mounts.Mount, head uid.UID, err error) }
Space 存储空间
type SpaceOptions ¶
type SpaceOptions struct { // 空间数据存储根目录 SpaceDataRoot string }
SpaceOptions 空间选项
Click to show internal directories.
Click to hide internal directories.