domain

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ContextHome = "home"
	ContextRoot = "root"
)

Variables

View Source
var ErrNoHome = errors.New("HOME is not set")

Functions

func ActiveSource

func ActiveSource(sourceID string) (state.Source, error)

func NormalizeContext

func NormalizeContext(context string) string

Types

type ActiveSelection

type ActiveSelection struct {
	Registry state.Registry
	Source   state.Source
	Scope    TargetScope
}

func SelectActive

func SelectActive(options SelectionOptions) (ActiveSelection, error)

type SelectionOptions

type SelectionOptions struct {
	SourceID    string
	Context     string
	RequireHome bool
}

type TargetScope

type TargetScope struct {
	Context      string
	LogicalRoot  string
	PhysicalRoot string
}

func NewTargetScope

func NewTargetScope(context string, requireHome bool) (TargetScope, error)

func (TargetScope) PhysicalPath

func (s TargetScope) PhysicalPath(logicalPath string) string

Jump to

Keyboard shortcuts

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