Documentation
¶
Overview ¶
Package kustpath resolves lexical discovery references.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClaimPrefix ¶ added in v0.8.1
ClaimPrefix formats a resolved slash coordinate without cleaning its components.
Types ¶
type HostRelation ¶ added in v0.8.1
type HostRelation uint8
HostRelation compares the location of two lexical paths.
const ( HostDisjoint HostRelation = iota HostEqual HostAncestor HostDescendant )
Host relations describe the base path relative to the target path.
func RelateHost ¶ added in v0.8.1
func RelateHost(base, target string) HostRelation
RelateHost compares lexical host paths. Empty paths denote missing evidence.
func (HostRelation) Contains ¶ added in v0.8.1
func (r HostRelation) Contains() bool
Contains reports whether the base contains or equals the target.
func (HostRelation) Overlaps ¶ added in v0.8.1
func (r HostRelation) Overlaps() bool
Overlaps reports whether either path contains the other.
type Policy ¶
type Policy uint8
Policy identifies the boundary required by a discovery reference.
const ( Directory Policy = iota // Directory permits relative parent traversal. File // File confines relative references to their package. Transformer // Transformer confines native references to the source. Claim // Claim uses source-relative slash coordinates. Root // Root checks an already resolved graph coordinate. Dependency // Dependency permits absolute paths and relative parent traversal. )
Directory, File, Transformer, Claim, Root and Dependency define discovery reference boundaries.