managedtarget

package
v1.11.2 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2026 License: MIT Imports: 2 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

Overview

Package managedtarget resolves a caller-facing shell name into one host-shaped Sidecar-owned target. It is state-free: callers supply the candidates they are authorized to expose, so local and future remote hosts share ambiguity and precedence rules without sharing storage.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error struct {
	Kind    ErrorKind
	Message string
}

func (*Error) Error

func (e *Error) Error() string

type ErrorKind

type ErrorKind string
const (
	NotFound  ErrorKind = "not_found"
	Ambiguous ErrorKind = "ambiguous"
)

type Query

type Query struct{ Host, Project, Namespace, Value string }

type Target

type Target struct {
	Host, Project, ProjectRoot, Kind, Session, Name, Namespace, WorkDir, WorktreeRoot, ManifestPath string
	Priority                                                                                        int
}

func Resolve

func Resolve(candidates []Target, q Query) (Target, error)

Resolve prefers exact durable session identity over display name. Every filter is exact; an empty field means the caller has not scoped that axis.

Jump to

Keyboard shortcuts

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