Documentation
¶
Overview ¶
Package files provides the durable file operations used by managed updates. Paths are chosen by trusted code and must be under owned, non-writable parents.
Index ¶
- func Check(path string, directory bool) error
- func CheckAncestors(path string) error
- func Copy(source, dest string, mode os.FileMode) error
- func Directory(path string, mode os.FileMode) error
- func Hash(path string) (string, error)
- func Lock(path string) (func(), error)
- func Remove(path string) error
- func Replace(path string, mode os.FileMode, write func(io.Writer) error) error
- func Sync(path string) error
- func Write(path string, data []byte, mode os.FileMode) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckAncestors ¶
func Directory ¶
Directory checks ancestors before creating anything. Root-owned sticky parents are permitted for isolated tests; production uses /var/lib and /run.
Types ¶
This section is empty.