Documentation
¶
Overview ¶
Package remap implements the remap rule engine for modctl. Rules are applied sequentially in position order to transform or filter archive entry paths before they are handed to the planner.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InvalidGlobError ¶
InvalidGlobError is returned when a glob pattern in a remap rule is malformed.
func (*InvalidGlobError) Error ¶
func (e *InvalidGlobError) Error() string
func (*InvalidGlobError) Unwrap ¶
func (e *InvalidGlobError) Unwrap() error
type Result ¶
type Result struct {
// Path is the transformed destination path. Empty if Skip is true
Path string
// Skip is true if the entry should be excluded from the install
Skip bool
// SkipReason is a human-readable explanation of why the entry was
// skipped. Empty when Skip is false. Callers that don't need the
// reason (e.g. the planner) can ignore this field.
SkipReason string
}
Result is the outcome of applying a remap rule set to a single path
Click to show internal directories.
Click to hide internal directories.