packages

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildName

func BuildName(dir, name, version, arch string) (string, string, string)

func SplitVersion

func SplitVersion(v string) string

Types

type InReleaseModel

type InReleaseModel struct {
	Origin        string `key:"Origin"`
	Label         string `key:"Label"`
	Component     string `key:"Component"`
	Codename      string `key:"Codename"`
	Date          string `key:"Date"`
	Architectures string `key:"Architectures"`
	Description   string `key:"Description"`
	MD5Sum        string `key:"MD5Sum"`
	SHA1          string `key:"SHA1"`
	SHA256        string `key:"SHA256"`
}

func (*InReleaseModel) Decode

func (v *InReleaseModel) Decode(data []byte) error

func (*InReleaseModel) Encode

func (v *InReleaseModel) Encode() ([]byte, error)

type PackegesModel

type PackegesModel struct {
	Package      string `key:"Package"`
	Source       string `key:"Source"`
	Version      string `key:"Version"`
	Architecture string `key:"Architecture"`
	Maintainer   string `key:"Maintainer"`
	Filename     string `key:"Filename"`
	Size         int64  `key:"Size"`
	MD5sum       string `key:"MD5sum"`
	SHA1         string `key:"SHA1"`
	SHA256       string `key:"SHA256"`
	Raw          string `key:"_"`
}

func (*PackegesModel) Decode

func (v *PackegesModel) Decode(data []byte) error

func (*PackegesModel) Encode

func (v *PackegesModel) Encode() ([]byte, error)

type ReleaseModel

type ReleaseModel struct {
	Component    string `key:"Component"`
	Origin       string `key:"Origin"`
	Label        string `key:"Label"`
	Architecture string `key:"Architecture"`
	Description  string `key:"Description"`
}

func (*ReleaseModel) Decode

func (v *ReleaseModel) Decode(data []byte) error

func (*ReleaseModel) Encode

func (v *ReleaseModel) Encode() ([]byte, error)

Jump to

Keyboard shortcuts

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