impl

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2020 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DumpAr

func DumpAr(data []byte, withChecksums bool) (string, error)

DumpAr dumps ar archives.

func DumpCpio

func DumpCpio(data []byte, withChecksums bool) (string, error)

DumpCpio dumps cpio archives.

func DumpMtree

func DumpMtree(data []byte) (string, error)

DumpMtree dumps mtree metadata archives.

func DumpRpm

func DumpRpm(data []byte, withChecksums bool) (string, error)

DumpRpm dumps RPM packages.

func DumpTar

func DumpTar(data []byte, withChecksums bool) (string, error)

DumpTar dumps tar archives.

func Indent

func Indent(dump string) string

Indent is a general-purpose helper function for pretty-printing of nested data.

func RecognizeAndDump

func RecognizeAndDump(data []byte, withChecksums bool) (string, error)

RecognizeAndDump converts binary input data into a readable dump (if it can recognize the data format).

Types

type IndexEntry

type IndexEntry struct {
	Tag    uint32 //defines the semantics of the value in this field
	Type   uint32 //data type
	Offset uint32 //relative to the beginning of the store
	Count  uint32 //number of data items in this field
}

IndexEntry represents an entry in the index of an RPM header.

Jump to

Keyboard shortcuts

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