image

package
v0.0.0-...-6a8fcbc Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2025 License: Apache-2.0 Imports: 16 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Total amount of images in memory and consumed memory (in bytes).
	// Currently maintained only by the optimized implementation.
	// Cannot import stats package due to import cycles.
	StatImages atomic.Int64
	StatMemory atomic.Int64
)

Functions

func Compress

func Compress(rawData []byte) []byte

func DecodeB64

func DecodeB64(b64Data []byte) ([]byte, error)

func DecompressCheck

func DecompressCheck(compressed []byte) error

func EncodeB64

func EncodeB64(rawData []byte) []byte

func Fsck

func Fsck(r io.Reader, fsckCmd string) ([]byte, bool, error)

Fsck runs fsckCmd against a file system image provided in r. It returns the fsck logs, whether the file system is clean and an error in case fsck could not be run.

func MustDecompress

func MustDecompress(compressed []byte) (data []byte, dtor func())

Types

type FsckChecker

type FsckChecker struct {
	// contains filtered or unexported fields
}

func (*FsckChecker) Exists

func (fc *FsckChecker) Exists(cmd string) bool

Jump to

Keyboard shortcuts

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