metadata

package
v0.0.0-...-2f34974 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCommitHash

func GetCommitHash() string

Types

type LocalFile

type LocalFile struct {
	Name     string    `json:"name"`
	Checksum string    `json:"checksum"`
	ModTime  time.Time `json:"mod_time"`
}

LocalFile is a selection of basic metadata used to hold data about local signature databases and config files.

type VerifiedFiles

type VerifiedFiles struct {
	LocalFiles map[string]LocalFile `json:"local_files"`
}

VerifiedFiles contains a slice of files along with their SHA256 hash checksums

func NewVerifiedFiles

func NewVerifiedFiles(mLen int) *VerifiedFiles

VerifiedFiles returns a new empty VerifiedFiles struct.

Jump to

Keyboard shortcuts

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