Documentation
¶
Index ¶
- func ChangeLockFor(change string) string
- func ResolveRoot(positional, flagged string) (string, error)
- func ValidateSegment(segment string) error
- type Owner
- func (o *Owner) AcceptedSpec(capability string) (string, error)
- func (o *Owner) Archive() string
- func (o *Owner) Change(name string) (string, error)
- func (o *Owner) ChangeDesign(name string) (string, error)
- func (o *Owner) ChangeLock(name string) (string, error)
- func (o *Owner) ChangeProposal(name string) (string, error)
- func (o *Owner) ChangeSpec(change, capability string) (string, error)
- func (o *Owner) ChangeSpecs(name string) (string, error)
- func (o *Owner) ChangeState(name string) (string, error)
- func (o *Owner) ChangeTasks(name string) (string, error)
- func (o *Owner) Changes() string
- func (o *Owner) CheckWriteTarget(target string) error
- func (o *Owner) EnsureUniqueChange(name string) error
- func (o *Owner) Evidence() string
- func (o *Owner) History() string
- func (o *Owner) Managed() string
- func (o *Owner) Root() string
- func (o *Owner) RootLock() string
- func (o *Owner) Specs() string
- func (o *Owner) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChangeLockFor ¶ added in v0.2.0
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 ValidateSegment ¶
Types ¶
type Owner ¶
type Owner struct {
// contains filtered or unexported fields
}
func (*Owner) ChangeLock ¶
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) CheckWriteTarget ¶
CheckWriteTarget refuses escapes and every symlink in the existing prefix.
func (*Owner) EnsureUniqueChange ¶
Click to show internal directories.
Click to hide internal directories.