workspaces

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Workspace

type Workspace interface {
	// Path 返回工作空间路径
	Path() string
	// Head 返回头指针
	Head() uid.UID
	// Space 返回工作空间对应空间
	Space() spaces.Space
	// Mount 返回工作空间对应挂载
	Mount() mounts.Mount

	// Expand 展开工作空间
	Expand(ctx context.Context) error
}

Workspace 工作空间

func New

func New(path string, head uid.UID, space spaces.Space, mount mounts.Mount) Workspace

New 创建一个工作空间

Jump to

Keyboard shortcuts

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