Documentation
¶
Overview ¶
Package types is the collection of main data types used by the Trusty libraries
Deprecated: moved to pkg/v1/types
Index ¶
- Constants
- Variables
- type Activitydeprecated
- type ActivityDescriptiondeprecated
- type Alternativedeprecated
- type AlternativesListdeprecated
- type Dependencydeprecated
- type Ecosystemdeprecated
- type HistoricalProvenancedeprecated
- type MaliciousDatadeprecated
- type PackageDatadeprecated
- type Provenancedeprecated
- type ProvenanceDescriptiondeprecated
- type Replydeprecated
- type ScoreSummarydeprecated
- type SigstoreProvenancedeprecated
- type Typosquattingdeprecated
- type TyposquattingDescriptiondeprecated
Constants ¶
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 ¶
var ConvertDepsToMap = v1.ConvertDepsToMap
ConvertDepsToMap converts a slice of Dependency structs to a map for easier comparison
Deprecated: moved to pkg/v1/types
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
var Ecosystems = v1.Ecosystems
Ecosystems enumerates the supported ecosystems
Deprecated: moved to pkg/v1/types
Functions ¶
This section is empty.
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 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 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