rpm

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsPackage

func IsPackage(file string) bool

IsPackage returns true if given file is an rpm package

Types

type Object

type Object struct {
	Path     string
	User     string
	Group    string
	Mode     os.FileMode
	IsConfig bool
	IsDir    bool
	IsLink   bool
}

Object contains info about payload object

func (*Object) String

func (o *Object) String() string

String returns string representation of payload object

type Package

type Package struct {
	Name       string
	Dist       string
	Scriptlets string
	Payload    []*Object
	IsSrc      bool
}

Package contains package info

func ReadRPM

func ReadRPM(file string) (*Package, error)

ReadRPM reads info from package

func (*Package) String

func (p *Package) String() string

String returns string representation of package

Jump to

Keyboard shortcuts

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