path

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 7, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChangeLockFor added in v0.2.0

func ChangeLockFor(change string) string

ChangeLockFor names the lock guarding one change folder. The lock sits beside that folder rather than inside it, because archive renames the folder while holding the lock and Windows refuses to move a directory that holds an open handle. This is the one derivation of that path: a state writer that has only the state file's folder resolves the same lock every other caller takes.

func ResolveRoot

func ResolveRoot(positional, flagged string) (string, error)

func ValidateSegment

func ValidateSegment(segment string) error

Types

type Owner

type Owner struct {
	// contains filtered or unexported fields
}

func New

func New(root string) (*Owner, error)

func (*Owner) AcceptedSpec

func (o *Owner) AcceptedSpec(capability string) (string, error)

func (*Owner) Archive

func (o *Owner) Archive() string

func (*Owner) Change

func (o *Owner) Change(name string) (string, error)

func (*Owner) ChangeDesign

func (o *Owner) ChangeDesign(name string) (string, error)

func (*Owner) ChangeLock

func (o *Owner) ChangeLock(name string) (string, error)

ChangeLock refuses before any caller can create a lock file, so locking an absent change never materializes its directory inside the managed tree.

func (*Owner) ChangeProposal

func (o *Owner) ChangeProposal(name string) (string, error)

func (*Owner) ChangeSpec

func (o *Owner) ChangeSpec(change, capability string) (string, error)

func (*Owner) ChangeSpecs

func (o *Owner) ChangeSpecs(name string) (string, error)

func (*Owner) ChangeState

func (o *Owner) ChangeState(name string) (string, error)

func (*Owner) ChangeTasks

func (o *Owner) ChangeTasks(name string) (string, error)

func (*Owner) Changes

func (o *Owner) Changes() string

func (*Owner) CheckWriteTarget

func (o *Owner) CheckWriteTarget(target string) error

CheckWriteTarget refuses escapes and every symlink in the existing prefix.

func (*Owner) EnsureUniqueChange

func (o *Owner) EnsureUniqueChange(name string) error

func (*Owner) Evidence

func (o *Owner) Evidence() string

func (*Owner) History

func (o *Owner) History() string

func (*Owner) Managed

func (o *Owner) Managed() string

func (*Owner) Root

func (o *Owner) Root() string

func (*Owner) RootLock

func (o *Owner) RootLock() string

func (*Owner) Specs

func (o *Owner) Specs() string

func (*Owner) String

func (o *Owner) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL