staticproc

package
v0.85.0-pre.6 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2026 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Reconcile

func Reconcile(out_dir string, files Files) error

Types

type File

type File struct {
	SrcDir           string
	SrcPathRel       string // Relative to SrcDir
	SrcNamePrehashed bool
	Bytes            []byte
	OutNamePrefix    string
	ModTime          time.Time
	OutName          string
	Size             int64
}

func (*File) Hash

func (f *File) Hash() error

type Files

type Files map[string]*File // SrcPathRel -> File

func CollectPhysical

func CollectPhysical(
	src_dir string,
	prehashed_dirs []string,
	out_name_prefix string,
) (Files, error)

func (Files) Inject

func (files Files) Inject(file *File)

func (Files) Map

func (files Files) Map() map[string]string

Jump to

Keyboard shortcuts

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