skeletonfs

package
v0.0.0-...-de5681c Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// MinimumFilePerm is the minimum allowed permission bits that skeleton will
	// create during install.
	MinimumFilePerm os.FileMode = 0440
	// MinimumDirPerm is the minimum allowed permission bits that skeleton will
	// create during install.
	MinimumDirPerm os.FileMode = 0700
)

Variables

This section is empty.

Functions

func SkeletonFS

func SkeletonFS(fsys fs.FS) skeletonFS

SkeletonFS is used to create new copies of the fsys in test case directories.

Skeleton installation has no support for nodes other than directories and regular files.

Types

type SkeletonInstallError

type SkeletonInstallError struct {
	Path string
	Err  error
	// contains filtered or unexported fields
}

SkeletonInstallError is returned when the skeleton cannot install the file for some path.

func (SkeletonInstallError) Error

func (skel SkeletonInstallError) Error() string

Error implements error.

func (SkeletonInstallError) Unwrap

func (skel SkeletonInstallError) Unwrap() error

Unwrap returns the wrapped error.

Jump to

Keyboard shortcuts

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