explode

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package explode is a utility library for exploding various package types, so that abireport can traverse their root directory.

Index

Constants

This section is empty.

Variables

View Source
var (
	// Impls is the valid set of packages understood by abireport
	Impls = map[string]Func{
		"*.rpm":   RPM,
		"*.eopkg": Eopkg,
		"*.deb":   Dpkg,
	}
)
View Source
var (
	// OutputDir is where the package implementation dumped
	// the packages to and extracted inside. This is automatically removed
	// at shutdown.
	OutputDir string
)

Functions

func Dpkg

func Dpkg(pkgs []string) (string, error)

Dpkg will explode all .deb's specified and then return the install/ path inside that exploded tree.

func Eopkg

func Eopkg(pkgs []string) (string, error)

Eopkg will explode all eopkgs passed to it and return the path to the "root" to walk.

func GetTypeForFilename

func GetTypeForFilename(name string) string

GetTypeForFilename will return the appropriate Impls key for the given input file, if it can be found.

func RPM

func RPM(pkgs []string) (string, error)

RPM will explode all RPMs passed to it and return the path to the "root" to walk.

func ShouldSkipName

func ShouldSkipName(name string) bool

ShouldSkipName is a utility to help with skipping any unwanted packages

Types

type Func

type Func func(pkgs []string) (string, error)

An Func is a function prototype for abireport extraction methods

Jump to

Keyboard shortcuts

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