workspace

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrWorkspaceLocked = errors.New("workspace locked by another process")
)

Functions

func NormPath

func NormPath(path string) string

Types

type Workspace

type Workspace struct {
	Owner         string
	Root          string
	AppsDir       string
	DatasitesDir  string
	MetadataDir   string
	LogsDir       string
	UserDir       string
	UserPublicDir string
	// contains filtered or unexported fields
}

func NewWorkspace

func NewWorkspace(rootDir string, user string) (*Workspace, error)

func (*Workspace) DatasiteAbsPath

func (w *Workspace) DatasiteAbsPath(path string) string

func (*Workspace) DatasiteRelPath

func (w *Workspace) DatasiteRelPath(path string) (string, error)

func (*Workspace) Lock

func (w *Workspace) Lock() error

func (*Workspace) PathOwner

func (w *Workspace) PathOwner(path string) string

func (*Workspace) Setup

func (w *Workspace) Setup() error

func (*Workspace) Unlock

func (w *Workspace) Unlock() error

Jump to

Keyboard shortcuts

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