types

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package types is the collection of main data types used by the Trusty libraries

Deprecated: moved to pkg/v1/types

Index

Constants

View Source
const (
	// ECOSYSTEM_NPM identifies the NPM ecosystem
	//
	// Deprecated: moved to pkg/v1/types
	ECOSYSTEM_NPM Ecosystem = v1.ECOSYSTEM_NPM

	// ECOSYSTEM_GO identifies the Go language
	//
	// Deprecated: moved to pkg/v1/types
	ECOSYSTEM_GO Ecosystem = v1.ECOSYSTEM_GO

	// ECOSYSTEM_PYPI identifies the Python Package Index
	//
	// Deprecated: moved to pkg/v1/types
	ECOSYSTEM_PYPI Ecosystem = v1.ECOSYSTEM_PYPI

	// IngestStatusFailed ingestion failed permanently
	//
	// Deprecated: moved to pkg/v1/types
	IngestStatusFailed = v1.IngestStatusFailed

	// IngestStatusComplete means ingestion is done, data available
	//
	// Deprecated: moved to pkg/v1/types
	IngestStatusComplete = v1.IngestStatusComplete

	// IngestStatusPending means that the ingestion process is waiting to start
	//
	// Deprecated: moved to pkg/v1/types
	IngestStatusPending = v1.IngestStatusPending

	// IngestStatusScoring means the scoring process is underway
	//
	// Deprecated: moved to pkg/v1/types
	IngestStatusScoring = v1.IngestStatusScoring
)

Variables

View Source
var ConvertDepsToMap = v1.ConvertDepsToMap

ConvertDepsToMap converts a slice of Dependency structs to a map for easier comparison

Deprecated: moved to pkg/v1/types

View Source
var DiffDependencies = v1.DiffDependencies

DiffDependencies compares two sets of dependencies (represented as maps) and finds what's added in newDeps.

Deprecated: moved to pkg/v1/types

View Source
var Ecosystems = v1.Ecosystems

Ecosystems enumerates the supported ecosystems

Deprecated: moved to pkg/v1/types

Functions

This section is empty.

Types

type Activity deprecated added in v0.2.0

type Activity = v1.Activity

Activity captures a package's activity score

Deprecated: moved to pkg/v1/types

type ActivityDescription deprecated added in v0.2.0

type ActivityDescription = v1.ActivityDescription

ActivityDescription captures the fields of the activuty score

Deprecated: moved to pkg/v1/types

type Alternative deprecated added in v0.1.0

type Alternative = v1.Alternative

Alternative is an alternative package returned from the package intelligence API

Deprecated: moved to pkg/v1/types

type AlternativesList deprecated added in v0.1.0

type AlternativesList = v1.AlternativesList

AlternativesList is the alternatives block in the trusty API response

Deprecated: moved to pkg/v1/types

type Dependency deprecated

type Dependency = v1.Dependency

Dependency represents a generic dependency structure

Deprecated: moved to pkg/v1/types

type Ecosystem deprecated added in v0.1.0

type Ecosystem = v1.Ecosystem

Ecosystem is an identifier of a packaging system supported by Trusty

Deprecated: moved to pkg/v1/types

type HistoricalProvenance deprecated added in v0.1.0

type HistoricalProvenance = v1.HistoricalProvenance

HistoricalProvenance has the historical provenance components from a package

Deprecated: moved to pkg/v1/types

type MaliciousData deprecated added in v0.1.0

type MaliciousData = v1.MaliciousData

MaliciousData contains the security details when a dependency is malicious

Deprecated: moved to pkg/v1/types

type PackageData deprecated added in v0.1.0

type PackageData = v1.PackageData

PackageData contains the data about the queried package

Deprecated: moved to pkg/v1/types

type Provenance deprecated added in v0.1.0

type Provenance = v1.Provenance

Provenance has the package's provenance score and provenance type components

Deprecated: moved to pkg/v1/types

type ProvenanceDescription deprecated added in v0.1.0

type ProvenanceDescription = v1.ProvenanceDescription

ProvenanceDescription contians the provenance types

Deprecated: moved to pkg/v1/types

type Reply deprecated added in v0.1.0

type Reply = v1.Reply

Reply is the response from the package report API

Deprecated: moved to pkg/v1/types

type ScoreSummary deprecated added in v0.1.0

type ScoreSummary = v1.ScoreSummary

ScoreSummary is the summary score returned from the package intelligence API

Deprecated: moved to pkg/v1/types

type SigstoreProvenance deprecated added in v0.1.0

type SigstoreProvenance = v1.SigstoreProvenance

SigstoreProvenance has the sigstore certificate data when a package was signed using a github actions workflow

Deprecated: moved to pkg/v1/types

type Typosquatting deprecated added in v0.2.0

type Typosquatting = v1.Typosquatting

Typosquatting score for the package's name

Deprecated: moved to pkg/v1/types

type TyposquattingDescription deprecated added in v0.2.0

type TyposquattingDescription = v1.TyposquattingDescription

TyposquattingDescription captures the dat details of the typosquatting score

Deprecated: moved to pkg/v1/types

Jump to

Keyboard shortcuts

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