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.
Click to show internal directories.
Click to hide internal directories.