pkg

package
v0.0.0-...-30412bc Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const ReportMatchHeader = `` /* 153-byte string literal not displayed */

ReportMatchHeader is the header for matched packages

View Source
const ReportMatchRow = "<tr><td>%s</td><td>%s</td><td class=\"%s\">%s</td><td><a href=\"%s\">%s</a></td></tr>\n"

ReportMatchRow is the format string for a row of the matched packages

View Source
const ReportStart = `` /* 495-byte string literal not displayed */

ReportStart is the header at the beginning of a report

View Source
const ReportSummary = `` /* 1019-byte string literal not displayed */

ReportSummary is a format string for a summary of a report

View Source
const ReportTableClose = "</tbody></table>\n"

ReportTableClose terminates a table in the report

View Source
const ReportUnmatchedClose = `
<h3><a href="#summary">Back to Top</a></h3>
</body>
`

ReportUnmatchedClose terminates the report

View Source
const ReportUnmatchedHeader = `
<h1 id="unmatched">Unmatched Packages</h1>
<h3><a href="#summary">Back to Top</a></h3>
`

ReportUnmatchedHeader is the header for unmatched packages

View Source
const ReportUnmatchedRow = "<tr><td>%s</td><td>%s</td><td><a href=\"%s\">%s</a></td></tr>\n"

ReportUnmatchedRow is the format strign for a row of the unmatched packages

View Source
const ReportUnmatchedSectionStart = `
<h3>%s</h3>
<table>
<thead>
<tr><th>Name</th><th>Old Version</th><th>Location</th></tr>
</thead>
<tbody>
`
View Source
const ReportUnmatchedSectionStop = "</tbody></table>"

Variables

This section is empty.

Functions

This section is empty.

Types

type PackageYML

type PackageYML struct {
	Name    string              `yaml:"name"`
	Version string              `yaml:"version"`
	Sources []map[string]string `yaml:"source"`
}

PackageYML is a Go representation of a package.yml file

func Open

func Open(path string) (yml *PackageYML, err error)

Open parses a package.yml into a struct and returns it

type Report

type Report struct {
	// contains filtered or unexported fields
}

Report is a record of multiple package checks

func NewReport

func NewReport(releases []db.Release) *Report

func (Report) Print

func (r Report) Print()

Print generates an HTML report

Jump to

Keyboard shortcuts

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