mkfs

package
v0.11.13 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: AGPL-3.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exists

func Exists(a Artefact, in *gomkore.Project) (bool, error)

func Stat

func Stat(a Artefact, in *gomkore.Project) (fs.FileInfo, error)

Types

type All

type All []Filter

func (All) Ok

func (fs All) Ok(p string, e fs.DirEntry) (bool, error)

type Any

type Any []Filter

func (Any) Ok

func (fs Any) Ok(p string, e fs.DirEntry) (bool, error)

type Artefact

type Artefact interface {
	gomkore.Artefact
	Path() string
}

func Moved

func Moved(a Artefact, strip, dest Directory) (Artefact, error)

type DirList

type DirList struct {
	Dir    string
	Filter Filter
}

func (DirList) Exists added in v0.11.13

func (d DirList) Exists(in *gomkore.Project) (bool, error)

func (DirList) List

func (d DirList) List(in *gomkore.Project) (ls []string, err error)

func (DirList) Moved

func (d DirList) Moved(strip, dest Directory) (DirList, error)

func (DirList) Name

func (d DirList) Name(prj *gomkore.Project) string

func (DirList) Path

func (d DirList) Path() string

func (DirList) Remove added in v0.11.13

func (d DirList) Remove(in *gomkore.Project) error

func (DirList) StateAt

func (d DirList) StateAt(in *gomkore.Project) (t time.Time, err error)

type DirPath

type DirPath struct {
	Dir    string
	NoStat bool
}

func (DirPath) Moved

func (d DirPath) Moved(strip, dest Directory) (File, error)

func (DirPath) Name

func (d DirPath) Name(in *gomkore.Project) string

func (DirPath) Path

func (d DirPath) Path() string

func (DirPath) StateAt

func (d DirPath) StateAt(in *gomkore.Project) (time.Time, error)

type DirTree

type DirTree struct {
	Dir    string
	Filter Filter
}

func DirFiles

func DirFiles(dir, match string, pathMax int) DirTree

func (DirTree) Exists added in v0.11.13

func (d DirTree) Exists(in *gomkore.Project) (bool, error)

func (DirTree) List

func (d DirTree) List(in *gomkore.Project) (ls []string, err error)

func (DirTree) Moved

func (d DirTree) Moved(strip, dest Directory) (DirTree, error)

func (DirTree) Name

func (d DirTree) Name(in *gomkore.Project) string

func (DirTree) Path

func (d DirTree) Path() string

func (DirTree) Remove added in v0.11.13

func (d DirTree) Remove(in *gomkore.Project) error

func (DirTree) StateAt

func (d DirTree) StateAt(in *gomkore.Project) (t time.Time, err error)

type Directory

type Directory interface {
	Artefact
	List(in *gomkore.Project) ([]string, error)
}

type File

type File string

func (File) Exists added in v0.11.13

func (f File) Exists(in *gomkore.Project) (bool, error)

func (File) Ext

func (f File) Ext() string

func (File) Moved

func (f File) Moved(strip, dest Directory) (File, error)

func (File) Name

func (f File) Name(in *gomkore.Project) string

func (File) Path

func (f File) Path() string

func (File) Remove added in v0.11.13

func (f File) Remove(in *gomkore.Project) error

func (File) StateAt

func (f File) StateAt(in *gomkore.Project) (time.Time, error)

func (File) WithExt

func (f File) WithExt(ext string) File

type Filter

type Filter interface {
	Ok(path string, entry fs.DirEntry) (bool, error)
}

func Not

func Not(f Filter) Filter

type FilterFunc

type FilterFunc func(string, fs.DirEntry) (bool, error)

func (FilterFunc) Ok

func (ff FilterFunc) Ok(p string, e fs.DirEntry) (bool, error)

type FsCopy

type FsCopy struct {
	MkDirMode fs.FileMode
}

func (FsCopy) Describe

func (FsCopy) Describe(*gomkore.Action, *gomkore.Env) string

func (FsCopy) Do

func (cp FsCopy) Do(tr *gomkore.Trace, a *gomkore.Action, _ *gomkore.Env) error

func (FsCopy) WriteHash

func (cp FsCopy) WriteHash(h hash.Hash, a *gomkore.Action, _ *gomkore.Env) (bool, error)

type IsDir

type IsDir bool

func (IsDir) Ok

func (d IsDir) Ok(_ string, e fs.DirEntry) (bool, error)

type MaxPathLen

type MaxPathLen int

func (MaxPathLen) Ok

func (fp MaxPathLen) Ok(p string, _ fs.DirEntry) (bool, error)

type Mode

type Mode struct{ Any, All fs.FileMode }

func (Mode) Ok

func (fm Mode) Ok(_ string, e fs.DirEntry) (bool, error)

type NameMatch

type NameMatch string

func (NameMatch) Ok

func (p NameMatch) Ok(_ string, e fs.DirEntry) (bool, error)

Jump to

Keyboard shortcuts

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