types

package
v0.0.0-...-261a1ea Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2024 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

type Database struct {
	Apkurl    string         `json:"apkurl"`
	Archs     []string       `json:"archs"`
	Reponame  string         `json:"reponame"`
	Urlprefix string         `json:"urlprefix"`
	Packages  []PackageEntry `json:"packages"`
}

type MelangePackage

type MelangePackage struct {
	Package struct {
		Name    string `yaml:"name"`
		Version string `yaml:"version"`
		Epoch   int    `yaml:"epoch"`
	} `yaml:"package"`
	Secfixes Secfixes `yaml:"secfixes"`
}

func LoadMelangePackage

func LoadMelangePackage(fileName string) (*MelangePackage, error)

LoadMelangePackage loads a Melange source package YAML file and extracts the Secfixes data from it.

func (MelangePackage) Entry

func (mp MelangePackage) Entry() PackageEntry

func (MelangePackage) Identity

func (mp MelangePackage) Identity() string

Identity returns the package identity triple as apk-tools expects it to be, e.g. `[name]-[version]-r[epoch].`

type Package

type Package struct {
	Name     string   `json:"name"`
	Secfixes Secfixes `json:"secfixes"`
}

type PackageEntry

type PackageEntry struct {
	Pkg Package `json:"pkg"`
}

type Secfixes

type Secfixes map[string][]string

TODO(kaniini): Harmonize these types with alpine's secdb implementation and place the implementation in alpine-go.

Jump to

Keyboard shortcuts

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