workref

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: May 29, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package workref provides tiny shared workspace reference value objects used to pass workspace identifiers and paths through transport and runtime helpers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PathRef

type PathRef struct {
	WorkspaceID   string `json:"workspace_id,omitempty"   yaml:"workspace_id,omitempty"`
	WorkspacePath string `json:"workspace_path,omitempty" yaml:"workspace_path,omitempty"`
}

PathRef identifies one workspace by id plus transport-facing filesystem path.

func NewPath

func NewPath(id string, path string) PathRef

NewPath constructs one normalized transport-facing workspace reference.

type RootRef

type RootRef struct {
	WorkspaceID string `json:"workspace_id,omitempty" yaml:"workspace_id,omitempty"`
	Workspace   string `json:"workspace,omitempty"    yaml:"workspace,omitempty"`
}

RootRef identifies one workspace by id plus runtime/root-directory path.

func NewRoot

func NewRoot(id string, root string) RootRef

NewRoot constructs one normalized runtime-facing workspace reference.

Jump to

Keyboard shortcuts

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