Versions in this module Expand all Collapse all v1 v1.8.11 Feb 5, 2021 Changes in this version + const Prefix + const TemplateSuffix + var DefaultTemplateOptions = []string + var Formats = map[string]Format + var Skip = filepath.SkipDir + var Umask = os.FileMode(0) + func DiffPatch(path RelPath, fromData []byte, fromMode os.FileMode, toData []byte, ...) (diff.Patch, error) + func FQDNHostname(fs vfs.FS) (string, error) + func KernelInfo(fs vfs.FS) (map[string]string, error) + func MkdirAll(system System, absPath AbsPath, perm os.FileMode) error + func OSRelease(fs vfs.FS) (map[string]string, error) + func PersistentStateData(s PersistentState) (interface{}, error) + func ShellQuoteArgs(args []string) string + func SuspiciousSourceDirEntry(base string, info os.FileInfo) bool + func Walk(system System, rootAbsPath AbsPath, ...) error + type AGEEncryption struct + Args []string + Command string + Identities []string + Identity string + Recipient string + Recipients []string + RecipientsFile string + RecipientsFiles []string + func (t *AGEEncryption) Decrypt(ciphertext []byte) ([]byte, error) + func (t *AGEEncryption) DecryptToFile(filename string, ciphertext []byte) error + func (t *AGEEncryption) Encrypt(plaintext []byte) ([]byte, error) + func (t *AGEEncryption) EncryptFile(filename string) ([]byte, error) + type AbsPath string + func NewAbsPath(path string) (AbsPath, error) + func NewAbsPathFromExtPath(extPath string, homeDirAbsPath AbsPath) (AbsPath, error) + func NormalizePath(path string) (AbsPath, error) + func (p AbsPath) Base() string + func (p AbsPath) Dir() AbsPath + func (p AbsPath) Join(elems ...RelPath) AbsPath + func (p AbsPath) MustTrimDirPrefix(dirPrefix AbsPath) RelPath + func (p AbsPath) Split() (AbsPath, RelPath) + func (p AbsPath) TrimDirPrefix(dirPrefixAbsPath AbsPath) (RelPath, error) + type AbsPaths []AbsPath + func (ps AbsPaths) Len() int + func (ps AbsPaths) Less(i, j int) bool + func (ps AbsPaths) Swap(i, j int) + type ActualStateAbsent struct + func (s *ActualStateAbsent) EntryState() (*EntryState, error) + func (s *ActualStateAbsent) Path() AbsPath + func (s *ActualStateAbsent) Remove(system System) error + type ActualStateDir struct + func (s *ActualStateDir) EntryState() (*EntryState, error) + func (s *ActualStateDir) Path() AbsPath + func (s *ActualStateDir) Remove(system System) error + type ActualStateEntry interface + EntryState func() (*EntryState, error) + Path func() AbsPath + Remove func(system System) error + func NewActualStateEntry(system System, absPath AbsPath, info os.FileInfo, err error) (ActualStateEntry, error) + type ActualStateFile struct + func (lc ActualStateFile) Contents() ([]byte, error) + func (lc ActualStateFile) ContentsSHA256() ([]byte, error) + func (s *ActualStateFile) EntryState() (*EntryState, error) + func (s *ActualStateFile) Path() AbsPath + func (s *ActualStateFile) Remove(system System) error + type ActualStateSymlink struct + func (ll ActualStateSymlink) Linkname() (string, error) + func (ll ActualStateSymlink) LinknameSHA256() ([]byte, error) + func (s *ActualStateSymlink) EntryState() (*EntryState, error) + func (s *ActualStateSymlink) Path() AbsPath + func (s *ActualStateSymlink) Remove(system System) error + type AddOptions struct + AutoTemplate bool + Empty bool + Encrypt bool + Exact bool + Exists bool + Include *IncludeSet + RemoveDir RelPath + Template bool + type ApplyOptions struct + Include *IncludeSet + PreApplyFunc PreApplyFunc + SkipEncrypted bool + Umask os.FileMode + type BoltPersistentState struct + func NewBoltPersistentState(system System, path AbsPath, mode BoltPersistentStateMode) (*BoltPersistentState, error) + func (b *BoltPersistentState) Close() error + func (b *BoltPersistentState) CopyTo(p PersistentState) error + func (b *BoltPersistentState) Delete(bucket, key []byte) error + func (b *BoltPersistentState) ForEach(bucket []byte, fn func(k, v []byte) error) error + func (b *BoltPersistentState) Get(bucket, key []byte) ([]byte, error) + func (b *BoltPersistentState) Set(bucket, key, value []byte) error + type BoltPersistentStateMode int + const BoltPersistentStateReadOnly + const BoltPersistentStateReadWrite + type DebugEncryption struct + func NewDebugEncryption(encryption Encryption) *DebugEncryption + func (e *DebugEncryption) Decrypt(ciphertext []byte) ([]byte, error) + func (e *DebugEncryption) DecryptToFile(filename string, ciphertext []byte) error + func (e *DebugEncryption) Encrypt(plaintext []byte) ([]byte, error) + func (e *DebugEncryption) EncryptFile(filename string) ([]byte, error) + type DebugPersistentState struct + func NewDebugPersistentState(persistentState PersistentState) *DebugPersistentState + func (s *DebugPersistentState) Close() error + func (s *DebugPersistentState) CopyTo(p PersistentState) error + func (s *DebugPersistentState) Delete(bucket, key []byte) error + func (s *DebugPersistentState) ForEach(bucket []byte, fn func(k, v []byte) error) error + func (s *DebugPersistentState) Get(bucket, key []byte) ([]byte, error) + func (s *DebugPersistentState) Set(bucket, key, value []byte) error + type DebugSystem struct + func NewDebugSystem(system System) *DebugSystem + func (s *DebugSystem) Chmod(name AbsPath, mode os.FileMode) error + func (s *DebugSystem) Glob(name string) ([]string, error) + func (s *DebugSystem) IdempotentCmdOutput(cmd *exec.Cmd) ([]byte, error) + func (s *DebugSystem) Lstat(name AbsPath) (os.FileInfo, error) + func (s *DebugSystem) Mkdir(name AbsPath, perm os.FileMode) error + func (s *DebugSystem) RawPath(path AbsPath) (AbsPath, error) + func (s *DebugSystem) ReadDir(name AbsPath) ([]os.FileInfo, error) + func (s *DebugSystem) ReadFile(filename AbsPath) ([]byte, error) + func (s *DebugSystem) Readlink(name AbsPath) (string, error) + func (s *DebugSystem) RemoveAll(name AbsPath) error + func (s *DebugSystem) Rename(oldpath, newpath AbsPath) error + func (s *DebugSystem) RunCmd(cmd *exec.Cmd) error + func (s *DebugSystem) RunScript(scriptname RelPath, dir AbsPath, data []byte) error + func (s *DebugSystem) Stat(name AbsPath) (os.FileInfo, error) + func (s *DebugSystem) UnderlyingFS() vfs.FS + func (s *DebugSystem) WriteFile(name AbsPath, data []byte, perm os.FileMode) error + func (s *DebugSystem) WriteSymlink(oldname string, newname AbsPath) error + type DirAttr struct + Exact bool + Private bool + TargetName string + func (da DirAttr) SourceName() string + type DryRunSystem struct + func NewDryRunSystem(system System) *DryRunSystem + func (s *DryRunSystem) Chmod(name AbsPath, mode os.FileMode) error + func (s *DryRunSystem) Glob(pattern string) ([]string, error) + func (s *DryRunSystem) IdempotentCmdOutput(cmd *exec.Cmd) ([]byte, error) + func (s *DryRunSystem) Lstat(name AbsPath) (os.FileInfo, error) + func (s *DryRunSystem) Mkdir(name AbsPath, perm os.FileMode) error + func (s *DryRunSystem) Modified() bool + func (s *DryRunSystem) RawPath(path AbsPath) (AbsPath, error) + func (s *DryRunSystem) ReadDir(dirname AbsPath) ([]os.FileInfo, error) + func (s *DryRunSystem) ReadFile(filename AbsPath) ([]byte, error) + func (s *DryRunSystem) Readlink(name AbsPath) (string, error) + func (s *DryRunSystem) RemoveAll(AbsPath) error + func (s *DryRunSystem) Rename(oldpath, newpath AbsPath) error + func (s *DryRunSystem) RunCmd(cmd *exec.Cmd) error + func (s *DryRunSystem) RunScript(scriptname RelPath, dir AbsPath, data []byte) error + func (s *DryRunSystem) Stat(name AbsPath) (os.FileInfo, error) + func (s *DryRunSystem) UnderlyingFS() vfs.FS + func (s *DryRunSystem) WriteFile(AbsPath, []byte, os.FileMode) error + func (s *DryRunSystem) WriteSymlink(string, AbsPath) error + type DumpSystem struct + func NewDumpSystem() *DumpSystem + func (DumpSystem) Chmod(name AbsPath, perm os.FileMode) error + func (DumpSystem) Glob(pattern string) ([]string, error) + func (DumpSystem) IdempotentCmdOutput(cmd *exec.Cmd) ([]byte, error) + func (DumpSystem) Lstat(name AbsPath) (os.FileInfo, error) + func (DumpSystem) RawPath(path AbsPath) (AbsPath, error) + func (DumpSystem) ReadDir(dirname AbsPath) ([]os.FileInfo, error) + func (DumpSystem) ReadFile(filename AbsPath) ([]byte, error) + func (DumpSystem) Readlink(name AbsPath) (string, error) + func (DumpSystem) RemoveAll(name AbsPath) error + func (DumpSystem) Rename(oldpath, newpath AbsPath) error + func (DumpSystem) RunCmd(cmd *exec.Cmd) error + func (DumpSystem) Stat(name AbsPath) (os.FileInfo, error) + func (s *DumpSystem) Data() interface{} + func (s *DumpSystem) Mkdir(dirname AbsPath, perm os.FileMode) error + func (s *DumpSystem) RunScript(scriptname RelPath, dir AbsPath, data []byte) error + func (s *DumpSystem) UnderlyingFS() vfs.FS + func (s *DumpSystem) WriteFile(filename AbsPath, data []byte, perm os.FileMode) error + func (s *DumpSystem) WriteSymlink(oldname string, newname AbsPath) error + type Encryption interface + Decrypt func(ciphertext []byte) ([]byte, error) + DecryptToFile func(filename string, ciphertext []byte) error + Encrypt func(plaintext []byte) ([]byte, error) + EncryptFile func(filename string) ([]byte, error) + type EntryState struct + ContentsSHA256 hexBytes + Mode os.FileMode + Type EntryStateType + func (s *EntryState) Contents() []byte + func (s *EntryState) Equal(other *EntryState) bool + func (s *EntryState) Equivalent(other *EntryState) bool + type EntryStateType string + const EntryStateTypeAbsent + const EntryStateTypeDir + const EntryStateTypeFile + const EntryStateTypePresent + const EntryStateTypeScript + const EntryStateTypeSymlink + type FileAttr struct + Empty bool + Encrypted bool + Executable bool + Once bool + Order int + Private bool + TargetName string + Template bool + Type SourceFileTargetType + func (fa FileAttr) SourceName() string + type Format interface + Marshal func(value interface{}) ([]byte, error) + Name func() string + Unmarshal func(data []byte, value interface{}) error + var JSONFormat Format = jsonFormat{} + var TOMLFormat Format = tomlFormat{} + var YAMLFormat Format = yamlFormat{} + type GPGEncryption struct + Args []string + Command string + Recipient string + Symmetric bool + func (t *GPGEncryption) Decrypt(ciphertext []byte) ([]byte, error) + func (t *GPGEncryption) DecryptToFile(filename string, ciphertext []byte) error + func (t *GPGEncryption) Encrypt(plaintext []byte) ([]byte, error) + func (t *GPGEncryption) EncryptFile(filename string) (ciphertext []byte, err error) + type GitDiffSystem struct + func NewGitDiffSystem(system System, w io.Writer, dirAbsPath AbsPath, color bool) *GitDiffSystem + func (s *GitDiffSystem) Chmod(name AbsPath, mode os.FileMode) error + func (s *GitDiffSystem) Glob(pattern string) ([]string, error) + func (s *GitDiffSystem) IdempotentCmdOutput(cmd *exec.Cmd) ([]byte, error) + func (s *GitDiffSystem) Lstat(name AbsPath) (os.FileInfo, error) + func (s *GitDiffSystem) Mkdir(name AbsPath, perm os.FileMode) error + func (s *GitDiffSystem) RawPath(path AbsPath) (AbsPath, error) + func (s *GitDiffSystem) ReadDir(dirname AbsPath) ([]os.FileInfo, error) + func (s *GitDiffSystem) ReadFile(filename AbsPath) ([]byte, error) + func (s *GitDiffSystem) Readlink(name AbsPath) (string, error) + func (s *GitDiffSystem) RemoveAll(name AbsPath) error + func (s *GitDiffSystem) Rename(oldpath, newpath AbsPath) error + func (s *GitDiffSystem) RunCmd(cmd *exec.Cmd) error + func (s *GitDiffSystem) RunScript(scriptname RelPath, dir AbsPath, data []byte) error + func (s *GitDiffSystem) Stat(name AbsPath) (os.FileInfo, error) + func (s *GitDiffSystem) UnderlyingFS() vfs.FS + func (s *GitDiffSystem) WriteFile(filename AbsPath, data []byte, perm os.FileMode) error + func (s *GitDiffSystem) WriteSymlink(oldname string, newname AbsPath) error + type IncludeBits int + const IncludeAbsent + const IncludeAll + const IncludeDirs + const IncludeFiles + const IncludeScripts + const IncludeSymlinks + type IncludeSet struct + func NewIncludeSet(bits IncludeBits) *IncludeSet + func (s *IncludeSet) IncludeActualStateEntry(actualStateEntry ActualStateEntry) bool + func (s *IncludeSet) IncludeFileInfo(info os.FileInfo) bool + func (s *IncludeSet) IncludeTargetStateEntry(targetStateEntry TargetStateEntry) bool + func (s *IncludeSet) Set(str string) error + func (s *IncludeSet) String() string + func (s *IncludeSet) Type() string + type MockPersistentState struct + func NewMockPersistentState() *MockPersistentState + func (s *MockPersistentState) Close() error + func (s *MockPersistentState) CopyTo(p PersistentState) error + func (s *MockPersistentState) Delete(bucket, key []byte) error + func (s *MockPersistentState) ForEach(bucket []byte, fn func(k, v []byte) error) error + func (s *MockPersistentState) Get(bucket, key []byte) ([]byte, error) + func (s *MockPersistentState) Set(bucket, key, value []byte) error + type NoEncryption struct + func (NoEncryption) Decrypt([]byte) ([]byte, error) + func (NoEncryption) DecryptToFile(string, []byte) error + func (NoEncryption) Encrypt([]byte) ([]byte, error) + func (NoEncryption) EncryptFile(string) ([]byte, error) + type NullPersistentState struct + func (NullPersistentState) Close() error + func (NullPersistentState) CopyTo(s PersistentState) error + func (NullPersistentState) Delete(bucket, key []byte) error + func (NullPersistentState) ForEach(bucket []byte, fn func(k, v []byte) error) error + func (NullPersistentState) Get(bucket, key []byte) ([]byte, error) + func (NullPersistentState) Set(bucket, key, value []byte) error + type PersistentState interface + Close func() error + CopyTo func(s PersistentState) error + Delete func(bucket, key []byte) error + ForEach func(bucket []byte, fn func(k, v []byte) error) error + Get func(bucket, key []byte) ([]byte, error) + Set func(bucket, key, value []byte) error + type PreApplyFunc func(targetRelPath RelPath, ...) error + type ReadOnlySystem struct + func NewReadOnlySystem(system System) *ReadOnlySystem + func (ReadOnlySystem) Chmod(name AbsPath, perm os.FileMode) error + func (ReadOnlySystem) Mkdir(name AbsPath, perm os.FileMode) error + func (ReadOnlySystem) RemoveAll(name AbsPath) error + func (ReadOnlySystem) Rename(oldpath, newpath AbsPath) error + func (ReadOnlySystem) RunCmd(cmd *exec.Cmd) error + func (ReadOnlySystem) RunScript(scriptname RelPath, dir AbsPath, data []byte) error + func (ReadOnlySystem) WriteFile(filename AbsPath, data []byte, perm os.FileMode) error + func (ReadOnlySystem) WriteSymlink(oldname string, newname AbsPath) error + func (s *ReadOnlySystem) Glob(pattern string) ([]string, error) + func (s *ReadOnlySystem) IdempotentCmdOutput(cmd *exec.Cmd) ([]byte, error) + func (s *ReadOnlySystem) Lstat(filename AbsPath) (os.FileInfo, error) + func (s *ReadOnlySystem) RawPath(path AbsPath) (AbsPath, error) + func (s *ReadOnlySystem) ReadDir(dirname AbsPath) ([]os.FileInfo, error) + func (s *ReadOnlySystem) ReadFile(filename AbsPath) ([]byte, error) + func (s *ReadOnlySystem) Readlink(name AbsPath) (string, error) + func (s *ReadOnlySystem) Stat(name AbsPath) (os.FileInfo, error) + func (s *ReadOnlySystem) UnderlyingFS() vfs.FS + type RealSystem struct + func NewRealSystem(fs vfs.FS) *RealSystem + func (s *RealSystem) Chmod(name AbsPath, mode os.FileMode) error + func (s *RealSystem) Glob(pattern string) ([]string, error) + func (s *RealSystem) IdempotentCmdOutput(cmd *exec.Cmd) ([]byte, error) + func (s *RealSystem) Lstat(filename AbsPath) (os.FileInfo, error) + func (s *RealSystem) Mkdir(name AbsPath, perm os.FileMode) error + func (s *RealSystem) PathSeparator() rune + func (s *RealSystem) RawPath(absPath AbsPath) (AbsPath, error) + func (s *RealSystem) ReadDir(dirname AbsPath) ([]os.FileInfo, error) + func (s *RealSystem) ReadFile(filename AbsPath) ([]byte, error) + func (s *RealSystem) Readlink(name AbsPath) (string, error) + func (s *RealSystem) RemoveAll(name AbsPath) error + func (s *RealSystem) Rename(oldpath, newpath AbsPath) error + func (s *RealSystem) RunCmd(cmd *exec.Cmd) error + func (s *RealSystem) RunScript(scriptname RelPath, dir AbsPath, data []byte) (err error) + func (s *RealSystem) Stat(name AbsPath) (os.FileInfo, error) + func (s *RealSystem) UnderlyingFS() vfs.FS + func (s *RealSystem) WriteFile(filename AbsPath, data []byte, perm os.FileMode) error + func (s *RealSystem) WriteSymlink(oldname string, newname AbsPath) error + type RelPath string + func (p RelPath) Base() string + func (p RelPath) Dir() RelPath + func (p RelPath) HasDirPrefix(dirPrefix RelPath) bool + func (p RelPath) Join(elems ...RelPath) RelPath + func (p RelPath) Split() (RelPath, RelPath) + func (p RelPath) TrimDirPrefix(dirPrefix RelPath) (RelPath, error) + type RelPaths []RelPath + func (ps RelPaths) Len() int + func (ps RelPaths) Less(i, j int) bool + func (ps RelPaths) Swap(i, j int) + type SourceFileTargetType int + const SourceFileTypeFile + const SourceFileTypePresent + const SourceFileTypeScript + const SourceFileTypeSymlink + type SourceRelPath struct + func NewSourceRelDirPath(relPath RelPath) SourceRelPath + func NewSourceRelPath(relPath RelPath) SourceRelPath + func (p SourceRelPath) Dir() SourceRelPath + func (p SourceRelPath) Empty() bool + func (p SourceRelPath) Join(elems ...SourceRelPath) SourceRelPath + func (p SourceRelPath) RelPath() RelPath + func (p SourceRelPath) Split() (SourceRelPath, SourceRelPath) + func (p SourceRelPath) String() string + func (p SourceRelPath) TargetRelPath() RelPath + type SourceRelPaths []SourceRelPath + func (ps SourceRelPaths) Len() int + func (ps SourceRelPaths) Less(i, j int) bool + func (ps SourceRelPaths) Swap(i, j int) + type SourceState struct + func NewSourceState(options ...SourceStateOption) *SourceState + func (s *SourceState) Add(sourceSystem System, persistentState PersistentState, destSystem System, ...) error + func (s *SourceState) AddDestAbsPathInfos(destAbsPathInfos map[AbsPath]os.FileInfo, system System, destAbsPath AbsPath, ...) error + func (s *SourceState) Apply(targetSystem System, persistentState PersistentState, targetDir AbsPath, ...) error + func (s *SourceState) Entries() map[RelPath]SourceStateEntry + func (s *SourceState) Entry(targetRelPath RelPath) (SourceStateEntry, bool) + func (s *SourceState) ExecuteTemplateData(name string, data []byte) ([]byte, error) + func (s *SourceState) Ignored(targetRelPath RelPath) bool + func (s *SourceState) MinVersion() semver.Version + func (s *SourceState) MustEntry(targetRelPath RelPath) SourceStateEntry + func (s *SourceState) Read() error + func (s *SourceState) TargetRelPaths() RelPaths + func (s *SourceState) TemplateData() map[string]interface{} + type SourceStateDir struct + Attr DirAttr + func (s *SourceStateDir) Evaluate() error + func (s *SourceStateDir) Order() int + func (s *SourceStateDir) SourceRelPath() SourceRelPath + func (s *SourceStateDir) TargetStateEntry() (TargetStateEntry, error) + type SourceStateEntry interface + Evaluate func() error + Order func() int + SourceRelPath func() SourceRelPath + TargetStateEntry func() (TargetStateEntry, error) + type SourceStateFile struct + Attr FileAttr + func (lc SourceStateFile) Contents() ([]byte, error) + func (lc SourceStateFile) ContentsSHA256() ([]byte, error) + func (s *SourceStateFile) Evaluate() error + func (s *SourceStateFile) Order() int + func (s *SourceStateFile) SourceRelPath() SourceRelPath + func (s *SourceStateFile) TargetStateEntry() (TargetStateEntry, error) + type SourceStateOption func(*SourceState) + func WithDefaultTemplateDataFunc(defaultTemplateDataFunc func() map[string]interface{}) SourceStateOption + func WithDestDir(destDirAbsPath AbsPath) SourceStateOption + func WithEncryption(encryption Encryption) SourceStateOption + func WithPriorityTemplateData(priorityTemplateData map[string]interface{}) SourceStateOption + func WithSourceDir(sourceDirAbsPath AbsPath) SourceStateOption + func WithSystem(system System) SourceStateOption + func WithTemplateFuncs(templateFuncs template.FuncMap) SourceStateOption + func WithTemplateOptions(templateOptions []string) SourceStateOption + type SourceStateRemove struct + func (s *SourceStateRemove) Evaluate() error + func (s *SourceStateRemove) Order() int + func (s *SourceStateRemove) SourceRelPath() SourceRelPath + func (s *SourceStateRemove) TargetStateEntry() (TargetStateEntry, error) + type SourceStateRenameDir struct + func (s *SourceStateRenameDir) Evaluate() error + func (s *SourceStateRenameDir) Order() int + func (s *SourceStateRenameDir) SourceRelPath() SourceRelPath + func (s *SourceStateRenameDir) TargetStateEntry() (TargetStateEntry, error) + type System interface + Chmod func(name AbsPath, mode os.FileMode) error + Glob func(pattern string) ([]string, error) + IdempotentCmdOutput func(cmd *exec.Cmd) ([]byte, error) + Lstat func(filename AbsPath) (os.FileInfo, error) + Mkdir func(name AbsPath, perm os.FileMode) error + RawPath func(absPath AbsPath) (AbsPath, error) + ReadDir func(dirname AbsPath) ([]os.FileInfo, error) + ReadFile func(filename AbsPath) ([]byte, error) + Readlink func(name AbsPath) (string, error) + RemoveAll func(name AbsPath) error + Rename func(oldpath, newpath AbsPath) error + RunCmd func(cmd *exec.Cmd) error + RunScript func(scriptname RelPath, dir AbsPath, data []byte) error + Stat func(name AbsPath) (os.FileInfo, error) + UnderlyingFS func() vfs.FS + WriteFile func(filename AbsPath, data []byte, perm os.FileMode) error + WriteSymlink func(oldname string, newname AbsPath) error + type TARReaderSystem struct + func NewTARReaderSystem(tarReader *tar.Reader, options TARReaderSystemOptions) (*TARReaderSystem, error) + func (TARReaderSystem) Chmod(name AbsPath, perm os.FileMode) error + func (TARReaderSystem) Glob(pattern string) ([]string, error) + func (TARReaderSystem) IdempotentCmdOutput(cmd *exec.Cmd) ([]byte, error) + func (TARReaderSystem) Mkdir(name AbsPath, perm os.FileMode) error + func (TARReaderSystem) RawPath(path AbsPath) (AbsPath, error) + func (TARReaderSystem) ReadDir(dirname AbsPath) ([]os.FileInfo, error) + func (TARReaderSystem) RemoveAll(name AbsPath) error + func (TARReaderSystem) Rename(oldpath, newpath AbsPath) error + func (TARReaderSystem) RunCmd(cmd *exec.Cmd) error + func (TARReaderSystem) RunScript(scriptname RelPath, dir AbsPath, data []byte) error + func (TARReaderSystem) Stat(name AbsPath) (os.FileInfo, error) + func (TARReaderSystem) UnderlyingFS() vfs.FS + func (TARReaderSystem) WriteFile(filename AbsPath, data []byte, perm os.FileMode) error + func (TARReaderSystem) WriteSymlink(oldname string, newname AbsPath) error + func (s *TARReaderSystem) FileInfos() map[AbsPath]os.FileInfo + func (s *TARReaderSystem) Lstat(filename AbsPath) (os.FileInfo, error) + func (s *TARReaderSystem) ReadFile(filename AbsPath) ([]byte, error) + func (s *TARReaderSystem) Readlink(name AbsPath) (string, error) + type TARReaderSystemOptions struct + RootAbsPath AbsPath + StripComponents int + type TARWriterSystem struct + func NewTARWriterSystem(w io.Writer, headerTemplate tar.Header) *TARWriterSystem + func (TARWriterSystem) Chmod(name AbsPath, perm os.FileMode) error + func (TARWriterSystem) Glob(pattern string) ([]string, error) + func (TARWriterSystem) IdempotentCmdOutput(cmd *exec.Cmd) ([]byte, error) + func (TARWriterSystem) Lstat(name AbsPath) (os.FileInfo, error) + func (TARWriterSystem) RawPath(path AbsPath) (AbsPath, error) + func (TARWriterSystem) ReadDir(dirname AbsPath) ([]os.FileInfo, error) + func (TARWriterSystem) ReadFile(filename AbsPath) ([]byte, error) + func (TARWriterSystem) Readlink(name AbsPath) (string, error) + func (TARWriterSystem) RemoveAll(name AbsPath) error + func (TARWriterSystem) Rename(oldpath, newpath AbsPath) error + func (TARWriterSystem) RunCmd(cmd *exec.Cmd) error + func (TARWriterSystem) Stat(name AbsPath) (os.FileInfo, error) + func (TARWriterSystem) UnderlyingFS() vfs.FS + func (s *TARWriterSystem) Close() error + func (s *TARWriterSystem) Mkdir(name AbsPath, perm os.FileMode) error + func (s *TARWriterSystem) RunScript(scriptname RelPath, dir AbsPath, data []byte) error + func (s *TARWriterSystem) WriteFile(filename AbsPath, data []byte, perm os.FileMode) error + func (s *TARWriterSystem) WriteSymlink(oldname string, newname AbsPath) error + type TargetStateAbsent struct + func (t *TargetStateAbsent) Apply(system System, persistentState PersistentState, ...) error + func (t *TargetStateAbsent) EntryState(umask os.FileMode) (*EntryState, error) + func (t *TargetStateAbsent) Evaluate() error + func (t *TargetStateAbsent) SkipApply(persistentState PersistentState) (bool, error) + type TargetStateDir struct + func (t *TargetStateDir) Apply(system System, persistentState PersistentState, ...) error + func (t *TargetStateDir) EntryState(umask os.FileMode) (*EntryState, error) + func (t *TargetStateDir) Evaluate() error + func (t *TargetStateDir) SkipApply(persistentState PersistentState) (bool, error) + type TargetStateEntry interface + Apply func(system System, persistentState PersistentState, ...) error + EntryState func(umask os.FileMode) (*EntryState, error) + Evaluate func() error + SkipApply func(persistentState PersistentState) (bool, error) + type TargetStateFile struct + func (lc TargetStateFile) Contents() ([]byte, error) + func (lc TargetStateFile) ContentsSHA256() ([]byte, error) + func (t *TargetStateFile) Apply(system System, persistentState PersistentState, ...) error + func (t *TargetStateFile) EntryState(umask os.FileMode) (*EntryState, error) + func (t *TargetStateFile) Evaluate() error + func (t *TargetStateFile) SkipApply(persistentState PersistentState) (bool, error) + type TargetStatePresent struct + func (lc TargetStatePresent) Contents() ([]byte, error) + func (lc TargetStatePresent) ContentsSHA256() ([]byte, error) + func (t *TargetStatePresent) Apply(system System, persistentState PersistentState, ...) error + func (t *TargetStatePresent) EntryState(umask os.FileMode) (*EntryState, error) + func (t *TargetStatePresent) Evaluate() error + func (t *TargetStatePresent) SkipApply(persistentState PersistentState) (bool, error) + type TargetStateRenameDir struct + func (t *TargetStateRenameDir) Apply(system System, persistentState PersistentState, ...) error + func (t *TargetStateRenameDir) EntryState(umask os.FileMode) (*EntryState, error) + func (t *TargetStateRenameDir) Evaluate() error + func (t *TargetStateRenameDir) SkipApply(persistentState PersistentState) (bool, error) + type TargetStateScript struct + func (lc TargetStateScript) Contents() ([]byte, error) + func (lc TargetStateScript) ContentsSHA256() ([]byte, error) + func (t *TargetStateScript) Apply(system System, persistentState PersistentState, ...) error + func (t *TargetStateScript) EntryState(umask os.FileMode) (*EntryState, error) + func (t *TargetStateScript) Evaluate() error + func (t *TargetStateScript) SkipApply(persistentState PersistentState) (bool, error) + type TargetStateSymlink struct + func (ll TargetStateSymlink) Linkname() (string, error) + func (ll TargetStateSymlink) LinknameSHA256() ([]byte, error) + func (t *TargetStateSymlink) Apply(system System, persistentState PersistentState, ...) error + func (t *TargetStateSymlink) EntryState(umask os.FileMode) (*EntryState, error) + func (t *TargetStateSymlink) Evaluate() error + func (t *TargetStateSymlink) SkipApply(persistentState PersistentState) (bool, error) + type ZIPWriterSystem struct + func NewZIPWriterSystem(w io.Writer, modified time.Time) *ZIPWriterSystem + func (ZIPWriterSystem) Chmod(name AbsPath, perm os.FileMode) error + func (ZIPWriterSystem) Glob(pattern string) ([]string, error) + func (ZIPWriterSystem) IdempotentCmdOutput(cmd *exec.Cmd) ([]byte, error) + func (ZIPWriterSystem) Lstat(name AbsPath) (os.FileInfo, error) + func (ZIPWriterSystem) RawPath(path AbsPath) (AbsPath, error) + func (ZIPWriterSystem) ReadDir(dirname AbsPath) ([]os.FileInfo, error) + func (ZIPWriterSystem) ReadFile(filename AbsPath) ([]byte, error) + func (ZIPWriterSystem) Readlink(name AbsPath) (string, error) + func (ZIPWriterSystem) RemoveAll(name AbsPath) error + func (ZIPWriterSystem) Rename(oldpath, newpath AbsPath) error + func (ZIPWriterSystem) RunCmd(cmd *exec.Cmd) error + func (ZIPWriterSystem) Stat(name AbsPath) (os.FileInfo, error) + func (ZIPWriterSystem) UnderlyingFS() vfs.FS + func (s *ZIPWriterSystem) Close() error + func (s *ZIPWriterSystem) Mkdir(name AbsPath, perm os.FileMode) error + func (s *ZIPWriterSystem) RunScript(scriptname RelPath, dir AbsPath, data []byte) error + func (s *ZIPWriterSystem) WriteFile(filename AbsPath, data []byte, perm os.FileMode) error + func (s *ZIPWriterSystem) WriteSymlink(oldname string, newname AbsPath) error