Versions in this module Expand all Collapse all v1 v1.5.0 Dec 3, 2026 Changes in this version + const DefaultDNSResolveBudget + const MaxCNAMEHops + var ErrAssetNotFound = domi18n.Sentinel(domi18n.KeyUCInvAssetNotFound) + var ErrInvalidRequest = domi18n.Sentinel(domi18n.KeyUCInvInvalidRequest) + var ErrInvalidTarget = domi18n.Sentinel(domi18n.KeyUCInvInvalidTarget) + var ErrNoTargets = domi18n.Sentinel(domi18n.KeyUCAutoNoTargets) + func AppendTraceStep(tr domdns.ResolutionTrace, spec domdns.TraceStepSpec) domdns.ResolutionTrace + func EffectiveNodeTags(g inventory.Graph, n inventory.Node) []inventory.Tag + func FilterHostsByTags(g inventory.Graph, want []inventory.Tag) []inventory.Host + func FilterIdentitiesByTags(g inventory.Graph, want []inventory.Tag) []inventory.Identity + func FilterNodesByTags(g inventory.Graph, want []inventory.Tag) []inventory.Node + func FilterProfilesByTags(g inventory.Graph, want []inventory.Tag) []inventory.Profile + func IsValidPlaybookSelector(sel playbook.TargetSelector) bool + func MergeSortedUniqueTags(a, b []inventory.Tag) []inventory.Tag + func ProbeDNSAddress(ctx context.Context, adapter DNSAdapter, host netaddr.CanonicalHost, ...) domdns.ResolutionTrace + func SynthesizeTargetNodeID(rawID string, kind option.OriginKind, connPlan plan.SealedConnectionPlan) (inventory.NodeID, error) + func SynthesizeTargetNodeIDWithUser(rawID string, kind option.OriginKind, connPlan plan.SealedConnectionPlan, ...) (inventory.NodeID, error) + type AssetKind uint8 + const AssetKindHost + const AssetKindIdentity + const AssetKindInvalid + const AssetKindNode + const AssetKindProfile + func ParseAssetKind(raw string) (AssetKind, error) + func (k *AssetKind) UnmarshalText(txt []byte) error + func (k AssetKind) AppendText(b []byte) ([]byte, error) + func (k AssetKind) IsValid() bool + func (k AssetKind) IsZero() bool + func (k AssetKind) MarshalText() ([]byte, error) + func (k AssetKind) String() string + type DNSAdapter struct + func NewDNSAdapter(unified ports.DNSResolverPort) DNSAdapter + func (a DNSAdapter) IsConfigured() bool + func (a DNSAdapter) LookupCNAME(ctx context.Context, host string) (z ports.DNSCNAMEResult, err error) + func (a DNSAdapter) LookupIP(ctx context.Context, host string, family option.AddressFamily) (z ports.DNSIPResult, err error) + type DNSBudget struct + func NewDNSBudget(clk ports.Clock, budget time.Duration) *DNSBudget + func (b *DNSBudget) Close() + func (b *DNSBudget) LookupCNAME(ctx context.Context, adapter DNSAdapter, host string) (z ports.DNSCNAMEResult, err error) + func (b *DNSBudget) LookupIP(ctx context.Context, adapter DNSAdapter, host string, ...) (z ports.DNSIPResult, err error) + func (b *DNSBudget) ProbeAddress(ctx context.Context, fn func(callCtx context.Context)) + type ResolveStagedTargetRequest struct + CLIOptions option.OptionLayer + ExplicitAuth inventory.AuthMethod + Host algebraic.Option[inventory.Host] + Identity algebraic.Option[inventory.Identity] + Node inventory.Node + type ResolveTargetRequest struct + AllowAdHocRules bool + AllowDNSResolve bool + CLIOptions option.OptionLayer + ExplicitAuth inventory.AuthMethod + ExplicitOrigin algebraic.Option[option.OriginKind] + ProbeDNSAddress bool + Target string + type ResolvedAsset struct + func ResolveAssetRef(g inventory.Graph, kind AssetKind, raw string) (ResolvedAsset, error) + func (a ResolvedAsset) CanonicalID() string + func (a ResolvedAsset) Host() algebraic.Option[inventory.Host] + func (a ResolvedAsset) Identity() algebraic.Option[inventory.Identity] + func (a ResolvedAsset) IsValid() bool + func (a ResolvedAsset) IsZero() bool + func (a ResolvedAsset) Kind() AssetKind + func (a ResolvedAsset) MatchKind() domdns.MatchKind + func (a ResolvedAsset) Node() algebraic.Option[inventory.Node] + func (a ResolvedAsset) Profile() algebraic.Option[inventory.Profile] + type ResolvedTarget struct + func NewResolvedTarget(spec ResolvedTargetSpec) ResolvedTarget + func (r ResolvedTarget) Aliases() []inventory.Alias + func (r ResolvedTarget) DefaultProfile() algebraic.Option[execution.LaunchProfile] + func (r ResolvedTarget) EffectiveDefaultProfile() execution.LaunchProfile + func (r ResolvedTarget) EffectiveTags() []inventory.Tag + func (r ResolvedTarget) HostAliases() []inventory.Alias + func (r ResolvedTarget) HostID() algebraic.Option[inventory.HostID] + func (r ResolvedTarget) HostTags() []inventory.Tag + func (r ResolvedTarget) IsValid() bool + func (r ResolvedTarget) IsZero() bool + func (r ResolvedTarget) MatchedAdHocProfile() algebraic.Option[inventory.ProfileID] + func (r ResolvedTarget) MatchedAdHocProfileProvidesIdentity() bool + func (r ResolvedTarget) NodeExecution() algebraic.Option[execution.LaunchProfile] + func (r ResolvedTarget) NodeID() string + func (r ResolvedTarget) Origin() inventory.NodeOrigin + func (r ResolvedTarget) OriginKind() option.OriginKind + func (r ResolvedTarget) Plan() plan.SealedConnectionPlan + func (r ResolvedTarget) Policy() option.EffectivePolicy + func (r ResolvedTarget) Privilege() algebraic.Option[inventory.PrivilegePolicy] + func (r ResolvedTarget) PrivilegePasswordRef() algebraic.Option[secret.Ref] + func (r ResolvedTarget) ProfileTags() []inventory.Tag + func (r ResolvedTarget) Tags() []inventory.Tag + func (r ResolvedTarget) ToSelectionSummary(rawInput string) ResolvedTargetSummary + func (r ResolvedTarget) Trace() domdns.ResolutionTrace + type ResolvedTargetSpec struct + Aliases []inventory.Alias + GlobalExecution algebraic.Option[execution.LaunchProfile] + HostAliases []inventory.Alias + HostID algebraic.Option[inventory.HostID] + HostTags []inventory.Tag + MatchedAdHocProfile algebraic.Option[inventory.ProfileID] + MatchedAdHocProfileProvidesIdentity bool + NodeExecution algebraic.Option[execution.LaunchProfile] + NodeID string + Origin inventory.NodeOrigin + Plan plan.SealedConnectionPlan + Policy option.EffectivePolicy + Privilege algebraic.Option[inventory.PrivilegePolicy] + PrivilegePasswordRef algebraic.Option[secret.Ref] + ProfileTags []inventory.Tag + Tags []inventory.Tag + Trace domdns.ResolutionTrace + type ResolvedTargetSummary struct + Aliases []inventory.Alias + HostAliases []inventory.Alias + HostID algebraic.Option[inventory.HostID] + NodeLabel string + OriginKind option.OriginKind + Payload any + Plan plan.SealedConnectionPlan + Policy option.EffectivePolicy + RawInput string + Tags []inventory.Tag + Trace domdns.ResolutionTrace + type SelectionItem struct + NodeID inventory.NodeID + PolicySubjects []string + Summary ResolvedTargetSummary + func (i SelectionItem) Target() (ResolvedTarget, bool) + type SelectionRequest struct + All bool + AllowAdHocRules bool + AllowDNSResolve bool + CLIOptions option.OptionLayer + ExcludeNodes []string + ExcludeTags []inventory.Tag + Nodes []string + PlaybookSelector algebraic.Option[playbook.TargetSelector] + Tags []inventory.Tag + Targets []string + type SelectionResult struct + func ResolveSelection(ctx context.Context, g inventory.Graph, req SelectionRequest, ...) (SelectionResult, error) + func (r SelectionResult) IsValid() bool + func (r SelectionResult) IsZero() bool + func (r SelectionResult) Items() []SelectionItem + func (r SelectionResult) Warnings() []SelectionWarning + type SelectionWarning struct + Code string + Subject string + type TargetResolveFunc func(ctx context.Context, targetSpec string, cliOpts option.OptionLayer, ...) (ResolvedTargetSummary, error)