Documentation
¶
Overview ¶
Package outputnames separates source identity from destination spelling.
Index ¶
Constants ¶
const ( MaxPortableNameBytes = 255 MaximumAttempts = 16 )
const MaximumMappings = 65_536
Variables ¶
var ErrInvalidMapping = errors.New("output name mapping is invalid")
Functions ¶
func Candidate ¶
Candidate keeps a safe extension so a repaired document still opens normally. The operation and complete logical path distinguish equal-looking source names.
func PortableName ¶
PortableName governs generated names only. Original names are tried through the destination's own namespace, including on filesystems with fewer restrictions.
Types ¶
type GuardedNamespace ¶
type GuardedNamespace struct {
Acquire func() (outputcap.PublicOperationGuard, error)
}
GuardedNamespace probes names through retained directory capabilities. The executor still performs its own identity check when it creates the final.
func (GuardedNamespace) InspectName ¶
func (namespace GuardedNamespace) InspectName(parentPath, component string) (kind outputcap.EntryKind, resultErr error)
type Resolver ¶
type Resolver struct {
// contains filtered or unexported fields
}
Resolver reconstructs frozen names without owning mutation capabilities.
func NewResolver ¶
type Root ¶
type Root struct {
ReservedName string
RequestedName string
PhysicalName string
Kind receivecontract.ContainerEntryKind
}