release

package
v0.0.0-...-ce9a8f4 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2022 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Verify

func Verify(path string) (string, error)

Verify verifies a local file or http/https url with well known public GNG keys saved by apt-key, in /etc/apt/trusted.gpg and under /etc/apt/trusted.gpg.d

func VerifyWithOptions

func VerifyWithOptions(path string, options *VerifyOptions) (string, error)

VerifyWithOptions verifies a local file or http/https url with given public GNG public key.

Types

type Checksum

type Checksum string

type File

type File struct {
	Name string
	Size int
	MD5  string
	SHA1 string
}

File is a single file in a deb release.

type Release

type Release struct {
	Origin      string
	Label       string
	Suite       string
	Version     string
	Codename    string
	Date        time.Time
	Archs       []string
	Components  []string
	Description string
	Files       map[string]*File
}

Release is a deb type source entry hosted via web server. Check sources.list(5) for details.

func Load

func Load(url string) (*Release, error)

Load loads a release from a url.

type VerifyOptions

type VerifyOptions struct {
	KeyPath      string
	Armored      bool
	AutoDiscover bool
}

VerifyOptions specifies the option to verify cleartext GPG signature.

Jump to

Keyboard shortcuts

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