rpm

package
v0.5.9 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CPIOToTarHeader

func CPIOToTarHeader(entry *cpio.CpioEntry) (*tar.Header, error)

func Compare

func Compare(a api.Version, b api.Version) int

func PrefixFilter

func PrefixFilter(prefix string, reader *tar.Reader, files []string) error

func RPMReader

func RPMReader(rpmReader io.Reader, tarWriter *tar.Writer) error

func RPMToCPIO

func RPMToCPIO(rpmReader io.Reader) (*cpio.CpioStream, error)

func Tar

func Tar(rs io.Reader, tarfile *tar.Writer, noSymlinksAndDirs bool, capabilities map[string][]string, selinuxLabels map[string]string, createdPaths map[string]struct{}) error

Extract the contents of a cpio stream from and writes it as a tar file into the provided writer

func Untar

func Untar(tmpRoot string, tarFile string) error

Types

type Collector

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

func NewCollector

func NewCollector() *Collector

func (*Collector) RPMToTar

func (c *Collector) RPMToTar(rpmReader io.Reader, tarWriter *tar.Writer, noSymlinksAndDirs bool, capabilities map[string][]string, selinuxLabels map[string]string) error

type Token

type Token struct {
	Text string
	Type TokenType
}

func (*Token) Compare

func (a *Token) Compare(b *Token) int

type TokenType

type TokenType string
const (
	NumToken   TokenType = "num"
	AlphaToken TokenType = "alpha"
	SepToken   TokenType = "sep"
)

type Tokenizer

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

func (*Tokenizer) NextToken

func (tk *Tokenizer) NextToken() *Token

Jump to

Keyboard shortcuts

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