resolve

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MatchMethod

type MatchMethod int

MatchMethod describes how a target was resolved.

const (
	MatchNamedGroup MatchMethod = iota
	MatchProjectEnv
	MatchGlob
	MatchFuzzy
	MatchNone
)

func (MatchMethod) String

func (m MatchMethod) String() string

type ResolveResult

type ResolveResult struct {
	Connections []config.Connection
	Method      MatchMethod
}

ResolveResult contains the resolved connections and how they were matched.

func ResolveTarget

func ResolveTarget(target string, cfg *config.Config) (*ResolveResult, error)

ResolveTarget resolves a target string to connections, returning both the matched connections and the method used.

Jump to

Keyboard shortcuts

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