types

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 23, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Package

type Package struct {
	Type string `json:"type"`
	Name string `json:"name"`
}

Package is a package

func (*Package) Equals

func (pkg *Package) Equals(p Package) bool

Equals compares one package to another

type PackageRepositories

type PackageRepositories struct {
	Package
	Repositories []Repository `json:"repositories"`
}

PackageRepositories represents the repositories associated with a package

func (*PackageRepositories) AddRepositories

func (pkg *PackageRepositories) AddRepositories(repos ...Repository)

AddRepositories adds repositories. It will ignore any repositories that are already associated with the package.

type Report

type Report struct {
	Results []Result `json:"results"`
}

Report details tally's findings

type Repository

type Repository struct {
	Name string `json:"name"`
}

Repository is a source code repository

type Result

type Result struct {
	Repository Repository              `json:"repository,omitempty"`
	Packages   []Package               `json:"packages,omitempty"`
	Result     *models.ScorecardResult `json:"result,omitempty"`
}

Result is the scorecard result for a repository, with any associated packages

Jump to

Keyboard shortcuts

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