groups

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2026 License: MIT Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotFound          = errors.New("session membership not found")
	ErrInvalidInput      = errors.New("invalid session membership input")
	ErrAlreadyRegistered = errors.New("session membership already registered")
	ErrOwnershipConflict = errors.New("session ownership conflict")
	ErrSelectorConflict  = errors.New("session selector already registered in project")
	ErrNameConflict      = ErrSelectorConflict
	ErrCorrupt           = errors.New("session membership registry is corrupt")
	ErrStorageBusy       = errors.New("session membership storage is busy")
	ErrClosed            = errors.New("session membership registry is closed")
)

Functions

This section is empty.

Types

type ProjectDirectory

type ProjectDirectory interface {
	CanonicalPath() string
	OperationPath() string
	Validate() error
}

ProjectDirectory is a pinned capability for one encoded project directory.

type ProjectStorage

type ProjectStorage struct {
	// contains filtered or unexported fields
}

ProjectStorage is a Registry-owned capability for one encoded project directory. CanonicalPath is suitable for identity and containment checks; OperationPath remains anchored to the Registry's pinned directory handles. Callers must validate the capability before and after constructing storage.

func (ProjectStorage) CanonicalPath

func (s ProjectStorage) CanonicalPath() string

func (ProjectStorage) OperationPath

func (s ProjectStorage) OperationPath() string

func (ProjectStorage) Validate

func (s ProjectStorage) Validate() error

type Registry

type Registry struct {
	// contains filtered or unexported fields
}

func NewRegistry

func NewRegistry(root string) (*Registry, error)

func (*Registry) Close

func (r *Registry) Close() error

func (*Registry) DeleteProjectStorage

func (r *Registry) DeleteProjectStorage(ctx context.Context, project string) error

DeleteProjectStorage requires the caller to drain all project operations and close their stores first. The encoded child is removed relative to the pinned root; nested links are unlinked rather than traversed by os.Root.RemoveAll.

func (*Registry) ProjectStorage

func (r *Registry) ProjectStorage(ctx context.Context, project string) (ProjectDirectory, error)

ProjectStorage creates or opens one encoded project directory through the Registry's pinned root and returns a capability that keeps all later child storage anchored to that exact directory identity.

Jump to

Keyboard shortcuts

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