workdir

package
v0.0.0-...-ed7d7af Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCopy

func NewCopy(fs afero.Fs) *copy

func NewCreate

func NewCreate(fs afero.Fs) *create
func NewLink(fs afero.Fs) *link

func NewModify

func NewModify(fs afero.Fs) *modify

Types

type Copier

type Copier interface {
	CopyFilesInFolder(sourcePath, destPath string, exclude []string) error
}

type Creator

type Creator interface {
	CreateDir(elems ...string) (*pathlib.Path, error)
	CreateFile(file string, content []byte) error
}

type Linker

type Linker interface {
	LinkFiles(source, dest string) error
	RemoveLinkedFiles(directory string)
}

type Modifier

type Modifier interface {
	UpdatePermissions(mode os.FileMode, files []*pathlib.Path) error
	UpdatePermissionsForFilesInFolder(mode os.FileMode, folder *pathlib.Path) error
	UpdateContent(file string, content []byte) error
	UpdateContentForce(file string, content []byte) error
}

type Utilizer

type Utilizer interface {
	Creator
	Linker
	Copier
	Modifier
}

func NewUtils

func NewUtils(fs afero.Fs) Utilizer

Jump to

Keyboard shortcuts

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