snapshot

package
v0.0.0-...-5a8ca9d Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Expand

func Expand(
	fromPath string,
	toPath string,
) error

Expand expands the given snapshot into a target directory. If the target directory does not exist, this function creates it.

func New

func New(
	buildPath string,
	outPath string,
) error

New creates a tarball snapshot by copying all the pseudofiles from which ghw reads system information into `buildPath` and tarring it up into `outPath`.

Types

This section is empty.

Jump to

Keyboard shortcuts

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