apk

package
v1.13.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const Type string = "apk"

Variables

View Source
var RelatedPath = "lib/apk/db/installed"

Functions

func CheckRelatedFile

func CheckRelatedFile(file string) (string, bool, bool)

func Scan

func Scan(data interface{}) interface{}

func SplitDependencies added in v1.13.0

func SplitDependencies(value string) (dependencies []string)

func SplitLicense added in v1.13.0

func SplitLicense(license string) []string

Types

type ApkIndexRecord added in v1.13.0

type ApkIndexRecord struct {
	Checksum         string   `mapstructure:"C"`
	Package          string   `mapstructure:"P"`
	Version          string   `mapstructure:"V"`
	Architecture     string   `mapstructure:"A"`
	Size             string   `mapstructure:"S"`
	InstalledSize    string   `mapstructure:"I"`
	Description      string   `mapstructure:"T"`
	URL              string   `mapstructure:"U"`
	Licenses         []string `mapstructure:"L"`
	Origin           string   `mapstructure:"o"`
	Maintainer       string   `mapstructure:"m"`
	BuildTimestamp   string   `mapstructure:"t"`
	GitCommit        string   `mapstructure:"c"`
	ProviderPriority string   `mapstructure:"k"`
	Dependencies     []string `mapstructure:"D"`
	Provides         []string `mapstructure:"p"`
	Install          string   `mapstructure:"i"`
}

func ParseApkIndexFile added in v1.13.0

func ParseApkIndexFile(apkDBContent string) ([]ApkIndexRecord, error)

Jump to

Keyboard shortcuts

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