builddb

package
v1.38.0 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2017 License: Apache-2.0 Imports: 1 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Asset added in v1.30.0

type Asset struct {
	SHA1     string `json:"sha1"`
	SHA256   string `json:"sha256"`
	MD5      string `json:"md5"`
	Size     int64  `json:"size"`
	FileName string `json:"file_name"`
}

Asset contains information about the archive files in a BuildDBBranch

type Branch added in v1.30.0

type Branch struct {
	GoVersion string    `json:"go_version"`
	BuildDate time.Time `json:"build_date"`
	Assets    []Asset   `json:"assets"`
}

Branch represents a "label" in the BuildDB

type BranchSortEntry

type BranchSortEntry struct {
	Branch    string
	BuildDate time.Time
}

BranchSortEntry is a helper for the frontend to be able to sort the labels / branches by time

type BranchSortEntryByBuildDate

type BranchSortEntryByBuildDate []BranchSortEntry

BranchSortEntryByBuildDate implements a sorter for BranchSortEntries

func (BranchSortEntryByBuildDate) Len

func (BranchSortEntryByBuildDate) Less

func (b BranchSortEntryByBuildDate) Less(i, j int) bool

func (BranchSortEntryByBuildDate) Swap

func (b BranchSortEntryByBuildDate) Swap(i, j int)

type BuildDB

type BuildDB map[string]Branch

The BuildDB is an archive for former builds

type ByFilename

type ByFilename []Asset

ByFilename implements a sorter for Assets

func (ByFilename) Len

func (f ByFilename) Len() int

func (ByFilename) Less

func (f ByFilename) Less(i, j int) bool

func (ByFilename) Swap

func (f ByFilename) Swap(i, j int)

type HashDB added in v1.27.0

type HashDB map[string]Hashes

HashDB is a database of file hashes

type Hashes added in v1.27.0

type Hashes struct {
	MD5    string `json:"md5sum" yaml:"md5sum"`
	SHA1   string `json:"sha1sum" yaml:"sha1sum"`
	SHA256 string `json:"sha256sum" yaml:"sha256sum"`
	SHA384 string `json:"sha384sum" yaml:"sha384sum"`
}

Hashes contains the different hashes for a file in a HashDB

Jump to

Keyboard shortcuts

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