Documentation
¶
Index ¶
- Variables
- func Compress(rawData []byte) []byte
- func DecodeB64(b64Data []byte) ([]byte, error)
- func DecompressCheck(compressed []byte) error
- func EncodeB64(rawData []byte) []byte
- func Fsck(r io.Reader, fsckCmd string) ([]byte, bool, error)
- func MustDecompress(compressed []byte) (data []byte, dtor func())
- type FsckChecker
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 DecompressCheck ¶
func Fsck ¶
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 ¶
Types ¶
type FsckChecker ¶
type FsckChecker struct {
// contains filtered or unexported fields
}
func (*FsckChecker) Exists ¶
func (fc *FsckChecker) Exists(cmd string) bool
Click to show internal directories.
Click to hide internal directories.