patchfiles

package
v2.932.9 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2026 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExistingPaths

func ExistingPaths(fsys FS, outDir string) ([]string, error)

func HasAny

func HasAny(fsys FS, outDir string) (bool, error)

func PatchesDir

func PatchesDir(outDir string) string

PatchesDir returns the absolute path to the patches directory for the given output dir.

func PathFor

func PathFor(outDir, generatedPath string) string

func Read

func Read(fsys FS, outDir, generatedPath string) ([]byte, bool, error)

Types

type FS

type FS interface {
	Stat(name string) (fs.FileInfo, error)
	ReadFile(name string) ([]byte, error)
	ReadDir(name string) ([]fs.DirEntry, error)
}

FS is the minimal filesystem interface needed by the patchfiles package.

type PatchFile

type PatchFile struct {
	Path string
	Data []byte
}

func ReadAll

func ReadAll(fsys FS, outDir string) ([]PatchFile, error)

Jump to

Keyboard shortcuts

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