v3alpha

package module
v0.0.0-...-69d9307 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

View Source
const (
	Insights_GetPackage_FullMethodName                = "/deps_dev.v3alpha.Insights/GetPackage"
	Insights_GetVersion_FullMethodName                = "/deps_dev.v3alpha.Insights/GetVersion"
	Insights_GetVersionBatch_FullMethodName           = "/deps_dev.v3alpha.Insights/GetVersionBatch"
	Insights_GetRequirements_FullMethodName           = "/deps_dev.v3alpha.Insights/GetRequirements"
	Insights_GetDependencies_FullMethodName           = "/deps_dev.v3alpha.Insights/GetDependencies"
	Insights_GetProject_FullMethodName                = "/deps_dev.v3alpha.Insights/GetProject"
	Insights_GetProjectBatch_FullMethodName           = "/deps_dev.v3alpha.Insights/GetProjectBatch"
	Insights_GetProjectPackageVersions_FullMethodName = "/deps_dev.v3alpha.Insights/GetProjectPackageVersions"
	Insights_GetAdvisory_FullMethodName               = "/deps_dev.v3alpha.Insights/GetAdvisory"
	Insights_GetSimilarlyNamedPackages_FullMethodName = "/deps_dev.v3alpha.Insights/GetSimilarlyNamedPackages"
	Insights_Query_FullMethodName                     = "/deps_dev.v3alpha.Insights/Query"
	Insights_PurlLookup_FullMethodName                = "/deps_dev.v3alpha.Insights/PurlLookup"
	Insights_PurlLookupBatch_FullMethodName           = "/deps_dev.v3alpha.Insights/PurlLookupBatch"
)

Variables

View Source
var (
	System_name = map[int32]string{
		0: "SYSTEM_UNSPECIFIED",
		1: "GO",
		3: "NPM",
		4: "CARGO",
		6: "MAVEN",
		7: "PYPI",
		8: "NUGET",
	}
	System_value = map[string]int32{
		"SYSTEM_UNSPECIFIED": 0,
		"GO":                 1,
		"NPM":                3,
		"CARGO":              4,
		"MAVEN":              6,
		"PYPI":               7,
		"NUGET":              8,
	}
)

Enum value maps for System.

View Source
var (
	HashType_name = map[int32]string{
		0: "HASH_TYPE_UNSPECIFIED",
		1: "MD5",
		2: "SHA1",
		3: "SHA256",
		4: "SHA512",
	}
	HashType_value = map[string]int32{
		"HASH_TYPE_UNSPECIFIED": 0,
		"MD5":                   1,
		"SHA1":                  2,
		"SHA256":                3,
		"SHA512":                4,
	}
)

Enum value maps for HashType.

View Source
var (
	DependencyRelation_name = map[int32]string{
		0: "DEPENDENCY_RELATION_UNSPECIFIED",
		1: "SELF",
		2: "DIRECT",
		3: "INDIRECT",
	}
	DependencyRelation_value = map[string]int32{
		"DEPENDENCY_RELATION_UNSPECIFIED": 0,
		"SELF":                            1,
		"DIRECT":                          2,
		"INDIRECT":                        3,
	}
)

Enum value maps for DependencyRelation.

View Source
var (
	ProjectRelationType_name = map[int32]string{
		0: "UNKNOWN_PROJECT_RELATION_TYPE",
		1: "SOURCE_REPO",
		2: "ISSUE_TRACKER",
	}
	ProjectRelationType_value = map[string]int32{
		"UNKNOWN_PROJECT_RELATION_TYPE": 0,
		"SOURCE_REPO":                   1,
		"ISSUE_TRACKER":                 2,
	}
)

Enum value maps for ProjectRelationType.

View Source
var (
	ProjectRelationProvenance_name = map[int32]string{
		0:  "UNKNOWN_PROJECT_RELATION_PROVENANCE",
		1:  "SLSA_ATTESTATION",
		2:  "GO_ORIGIN",
		10: "UNVERIFIED_METADATA",
	}
	ProjectRelationProvenance_value = map[string]int32{
		"UNKNOWN_PROJECT_RELATION_PROVENANCE": 0,
		"SLSA_ATTESTATION":                    1,
		"GO_ORIGIN":                           2,
		"UNVERIFIED_METADATA":                 10,
	}
)

Enum value maps for ProjectRelationProvenance.

View Source
var Insights_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "deps_dev.v3alpha.Insights",
	HandlerType: (*InsightsServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetPackage",
			Handler:    _Insights_GetPackage_Handler,
		},
		{
			MethodName: "GetVersion",
			Handler:    _Insights_GetVersion_Handler,
		},
		{
			MethodName: "GetVersionBatch",
			Handler:    _Insights_GetVersionBatch_Handler,
		},
		{
			MethodName: "GetRequirements",
			Handler:    _Insights_GetRequirements_Handler,
		},
		{
			MethodName: "GetDependencies",
			Handler:    _Insights_GetDependencies_Handler,
		},
		{
			MethodName: "GetProject",
			Handler:    _Insights_GetProject_Handler,
		},
		{
			MethodName: "GetProjectBatch",
			Handler:    _Insights_GetProjectBatch_Handler,
		},
		{
			MethodName: "GetProjectPackageVersions",
			Handler:    _Insights_GetProjectPackageVersions_Handler,
		},
		{
			MethodName: "GetAdvisory",
			Handler:    _Insights_GetAdvisory_Handler,
		},
		{
			MethodName: "GetSimilarlyNamedPackages",
			Handler:    _Insights_GetSimilarlyNamedPackages_Handler,
		},
		{
			MethodName: "Query",
			Handler:    _Insights_Query_Handler,
		},
		{
			MethodName: "PurlLookup",
			Handler:    _Insights_PurlLookup_Handler,
		},
		{
			MethodName: "PurlLookupBatch",
			Handler:    _Insights_PurlLookupBatch_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api.proto",
}

Insights_ServiceDesc is the grpc.ServiceDesc for Insights service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterInsightsServer

func RegisterInsightsServer(s grpc.ServiceRegistrar, srv InsightsServer)

Types

type Advisory

type Advisory struct {

	// The identifier for the security advisory. Note that this may differ from
	// the identifier in the request, due to canonicalization.
	AdvisoryKey *AdvisoryKey `protobuf:"bytes,1,opt,name=advisory_key,json=advisoryKey,proto3" json:"advisory_key,omitempty"`
	// The URL of the security advisory.
	Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
	// A brief human-readable description.
	Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"`
	// Other identifiers used for the advisory, including CVEs.
	Aliases []string `protobuf:"bytes,4,rep,name=aliases,proto3" json:"aliases,omitempty"`
	// The severity of the advisory as a CVSS v3 score in the range [0,10].
	// A higher score represents greater severity.
	Cvss3Score float32 `protobuf:"fixed32,5,opt,name=cvss3_score,json=cvss3Score,proto3" json:"cvss3_score,omitempty"`
	// The severity of the advisory as a CVSS v3 vector string.
	Cvss3Vector string `protobuf:"bytes,6,opt,name=cvss3_vector,json=cvss3Vector,proto3" json:"cvss3_vector,omitempty"`
	// contains filtered or unexported fields
}

Advisory holds information about a security advisory hosted by OSV.

func (*Advisory) Descriptor deprecated

func (*Advisory) Descriptor() ([]byte, []int)

Deprecated: Use Advisory.ProtoReflect.Descriptor instead.

func (*Advisory) GetAdvisoryKey

func (x *Advisory) GetAdvisoryKey() *AdvisoryKey

func (*Advisory) GetAliases

func (x *Advisory) GetAliases() []string

func (*Advisory) GetCvss3Score

func (x *Advisory) GetCvss3Score() float32

func (*Advisory) GetCvss3Vector

func (x *Advisory) GetCvss3Vector() string

func (*Advisory) GetTitle

func (x *Advisory) GetTitle() string

func (*Advisory) GetUrl

func (x *Advisory) GetUrl() string

func (*Advisory) ProtoMessage

func (*Advisory) ProtoMessage()

func (*Advisory) ProtoReflect

func (x *Advisory) ProtoReflect() protoreflect.Message

func (*Advisory) Reset

func (x *Advisory) Reset()

func (*Advisory) String

func (x *Advisory) String() string

type AdvisoryKey

type AdvisoryKey struct {

	// The OSV identifier for the security advisory.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

AdvisoryKey identifies a security advisory.

func (*AdvisoryKey) Descriptor deprecated

func (*AdvisoryKey) Descriptor() ([]byte, []int)

Deprecated: Use AdvisoryKey.ProtoReflect.Descriptor instead.

func (*AdvisoryKey) GetId

func (x *AdvisoryKey) GetId() string

func (*AdvisoryKey) ProtoMessage

func (*AdvisoryKey) ProtoMessage()

func (*AdvisoryKey) ProtoReflect

func (x *AdvisoryKey) ProtoReflect() protoreflect.Message

func (*AdvisoryKey) Reset

func (x *AdvisoryKey) Reset()

func (*AdvisoryKey) String

func (x *AdvisoryKey) String() string

type Dependencies

type Dependencies struct {

	// The nodes of the dependency graph. The first node is the root of the graph.
	Nodes []*Dependencies_Node `protobuf:"bytes,1,rep,name=nodes,proto3" json:"nodes,omitempty"`
	// The edges of the dependency graph.
	Edges []*Dependencies_Edge `protobuf:"bytes,2,rep,name=edges,proto3" json:"edges,omitempty"`
	// Any error associated with the dependency graph that is not specific to a
	// node. An error here may imply the graph as a whole is incorrect.
	// This error message has no defined format and is intended for human
	// consumption.
	Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

Dependencies holds a resolved dependency graph for a package version.

The dependency graph should be similar to one produced by installing the package version on a generic 64-bit Linux system, with no other dependencies present. The precise meaning of this varies from system to system.

func (*Dependencies) Descriptor deprecated

func (*Dependencies) Descriptor() ([]byte, []int)

Deprecated: Use Dependencies.ProtoReflect.Descriptor instead.

func (*Dependencies) GetEdges

func (x *Dependencies) GetEdges() []*Dependencies_Edge

func (*Dependencies) GetError

func (x *Dependencies) GetError() string

func (*Dependencies) GetNodes

func (x *Dependencies) GetNodes() []*Dependencies_Node

func (*Dependencies) ProtoMessage

func (*Dependencies) ProtoMessage()

func (*Dependencies) ProtoReflect

func (x *Dependencies) ProtoReflect() protoreflect.Message

func (*Dependencies) Reset

func (x *Dependencies) Reset()

func (*Dependencies) String

func (x *Dependencies) String() string

type Dependencies_Edge

type Dependencies_Edge struct {

	// The node declaring the dependency, specified as an index into the list of
	// nodes.
	FromNode uint32 `protobuf:"varint,1,opt,name=from_node,json=fromNode,proto3" json:"from_node,omitempty"`
	// The node resolving the dependency, specified as an index into the list of
	// nodes.
	ToNode uint32 `protobuf:"varint,2,opt,name=to_node,json=toNode,proto3" json:"to_node,omitempty"`
	// The requirement resolved by this edge, as declared by the "from" node.
	// The meaning of this field is system-specific. As an example, in npm, the
	// requirement "^1.0.0" may be resolved by the version "1.2.3".
	Requirement string `protobuf:"bytes,3,opt,name=requirement,proto3" json:"requirement,omitempty"`
	// contains filtered or unexported fields
}

Edge represents a directed edge in a resolved dependency graph: a dependency relation between two nodes.

func (*Dependencies_Edge) Descriptor deprecated

func (*Dependencies_Edge) Descriptor() ([]byte, []int)

Deprecated: Use Dependencies_Edge.ProtoReflect.Descriptor instead.

func (*Dependencies_Edge) GetFromNode

func (x *Dependencies_Edge) GetFromNode() uint32

func (*Dependencies_Edge) GetRequirement

func (x *Dependencies_Edge) GetRequirement() string

func (*Dependencies_Edge) GetToNode

func (x *Dependencies_Edge) GetToNode() uint32

func (*Dependencies_Edge) ProtoMessage

func (*Dependencies_Edge) ProtoMessage()

func (*Dependencies_Edge) ProtoReflect

func (x *Dependencies_Edge) ProtoReflect() protoreflect.Message

func (*Dependencies_Edge) Reset

func (x *Dependencies_Edge) Reset()

func (*Dependencies_Edge) String

func (x *Dependencies_Edge) String() string

type Dependencies_Node

type Dependencies_Node struct {

	// The package version represented by this node. Note that the package and
	// version name may differ from the names in the request, if provided, due
	// to canonicalization.
	//
	// In some systems, a graph may contain multiple nodes for the same package
	// version.
	VersionKey *VersionKey `protobuf:"bytes,1,opt,name=version_key,json=versionKey,proto3" json:"version_key,omitempty"`
	// If true, this is a bundled dependency.
	//
	// For bundled dependencies, the package name in the version key encodes
	// how the dependency is bundled. As an example, a bundled dependency with
	// a name like "a>1.2.3>b>c" is part of the dependency graph of package "a"
	// at version "1.2.3", and has the local name "c". It may or may not be the
	// same as a package with the global name "c".
	Bundled bool `protobuf:"varint,2,opt,name=bundled,proto3" json:"bundled,omitempty"`
	// Whether this node represents a direct or indirect dependency within this
	// dependency graph. Note that it's possible for a dependency to be both
	// direct and indirect; if so, it is marked as direct.
	Relation DependencyRelation `protobuf:"varint,4,opt,name=relation,proto3,enum=deps_dev.v3alpha.DependencyRelation" json:"relation,omitempty"`
	// Errors associated with this node of the graph, such as an unresolved
	// dependency requirement. An error on a node may imply the graph as a
	// whole is incorrect. These error messages have no defined format and are
	// intended for human consumption.
	Errors []string `protobuf:"bytes,3,rep,name=errors,proto3" json:"errors,omitempty"`
	// contains filtered or unexported fields
}

Node represents a node in a resolved dependency graph.

func (*Dependencies_Node) Descriptor deprecated

func (*Dependencies_Node) Descriptor() ([]byte, []int)

Deprecated: Use Dependencies_Node.ProtoReflect.Descriptor instead.

func (*Dependencies_Node) GetBundled

func (x *Dependencies_Node) GetBundled() bool

func (*Dependencies_Node) GetErrors

func (x *Dependencies_Node) GetErrors() []string

func (*Dependencies_Node) GetRelation

func (x *Dependencies_Node) GetRelation() DependencyRelation

func (*Dependencies_Node) GetVersionKey

func (x *Dependencies_Node) GetVersionKey() *VersionKey

func (*Dependencies_Node) ProtoMessage

func (*Dependencies_Node) ProtoMessage()

func (*Dependencies_Node) ProtoReflect

func (x *Dependencies_Node) ProtoReflect() protoreflect.Message

func (*Dependencies_Node) Reset

func (x *Dependencies_Node) Reset()

func (*Dependencies_Node) String

func (x *Dependencies_Node) String() string

type DependencyRelation

type DependencyRelation int32

DependencyRelation describes the relation of a node within a dependency graph.

const (
	DependencyRelation_DEPENDENCY_RELATION_UNSPECIFIED DependencyRelation = 0
	DependencyRelation_SELF                            DependencyRelation = 1
	DependencyRelation_DIRECT                          DependencyRelation = 2
	DependencyRelation_INDIRECT                        DependencyRelation = 3
)

func (DependencyRelation) Descriptor

func (DependencyRelation) Enum

func (DependencyRelation) EnumDescriptor deprecated

func (DependencyRelation) EnumDescriptor() ([]byte, []int)

Deprecated: Use DependencyRelation.Descriptor instead.

func (DependencyRelation) Number

func (DependencyRelation) String

func (x DependencyRelation) String() string

func (DependencyRelation) Type

type GetAdvisoryRequest

type GetAdvisoryRequest struct {
	AdvisoryKey *AdvisoryKey `protobuf:"bytes,1,opt,name=advisory_key,json=advisoryKey,proto3" json:"advisory_key,omitempty"`
	// contains filtered or unexported fields
}

GetAdvisoryRequest identifies a security advisory for which to return information.

func (*GetAdvisoryRequest) Descriptor deprecated

func (*GetAdvisoryRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetAdvisoryRequest.ProtoReflect.Descriptor instead.

func (*GetAdvisoryRequest) GetAdvisoryKey

func (x *GetAdvisoryRequest) GetAdvisoryKey() *AdvisoryKey

func (*GetAdvisoryRequest) ProtoMessage

func (*GetAdvisoryRequest) ProtoMessage()

func (*GetAdvisoryRequest) ProtoReflect

func (x *GetAdvisoryRequest) ProtoReflect() protoreflect.Message

func (*GetAdvisoryRequest) Reset

func (x *GetAdvisoryRequest) Reset()

func (*GetAdvisoryRequest) String

func (x *GetAdvisoryRequest) String() string

type GetDependenciesRequest

type GetDependenciesRequest struct {
	VersionKey *VersionKey `protobuf:"bytes,1,opt,name=version_key,json=versionKey,proto3" json:"version_key,omitempty"`
	// contains filtered or unexported fields
}

GetDependenciesRequest identifies a package version for which to return dependencies.

func (*GetDependenciesRequest) Descriptor deprecated

func (*GetDependenciesRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetDependenciesRequest.ProtoReflect.Descriptor instead.

func (*GetDependenciesRequest) GetVersionKey

func (x *GetDependenciesRequest) GetVersionKey() *VersionKey

func (*GetDependenciesRequest) ProtoMessage

func (*GetDependenciesRequest) ProtoMessage()

func (*GetDependenciesRequest) ProtoReflect

func (x *GetDependenciesRequest) ProtoReflect() protoreflect.Message

func (*GetDependenciesRequest) Reset

func (x *GetDependenciesRequest) Reset()

func (*GetDependenciesRequest) String

func (x *GetDependenciesRequest) String() string

type GetPackageRequest

type GetPackageRequest struct {
	PackageKey *PackageKey `protobuf:"bytes,1,opt,name=package_key,json=packageKey,proto3" json:"package_key,omitempty"`
	// contains filtered or unexported fields
}

GetPackageRequest identifies a package for which to return information.

func (*GetPackageRequest) Descriptor deprecated

func (*GetPackageRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetPackageRequest.ProtoReflect.Descriptor instead.

func (*GetPackageRequest) GetPackageKey

func (x *GetPackageRequest) GetPackageKey() *PackageKey

func (*GetPackageRequest) ProtoMessage

func (*GetPackageRequest) ProtoMessage()

func (*GetPackageRequest) ProtoReflect

func (x *GetPackageRequest) ProtoReflect() protoreflect.Message

func (*GetPackageRequest) Reset

func (x *GetPackageRequest) Reset()

func (*GetPackageRequest) String

func (x *GetPackageRequest) String() string

type GetProjectBatchRequest

type GetProjectBatchRequest struct {

	// The batch list of projects to return Project information for.
	Requests []*GetProjectRequest `protobuf:"bytes,1,rep,name=requests,proto3" json:"requests,omitempty"`
	// If set, request the next page of the result set. It must be set to the
	// page token provided by the previous project batch response. All other
	// request fields must be the same as in the initial request.
	PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// contains filtered or unexported fields
}

GetProjectBatchRequest identifies a batch of projects for which to return Project information.

func (*GetProjectBatchRequest) Descriptor deprecated

func (*GetProjectBatchRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetProjectBatchRequest.ProtoReflect.Descriptor instead.

func (*GetProjectBatchRequest) GetPageToken

func (x *GetProjectBatchRequest) GetPageToken() string

func (*GetProjectBatchRequest) GetRequests

func (x *GetProjectBatchRequest) GetRequests() []*GetProjectRequest

func (*GetProjectBatchRequest) ProtoMessage

func (*GetProjectBatchRequest) ProtoMessage()

func (*GetProjectBatchRequest) ProtoReflect

func (x *GetProjectBatchRequest) ProtoReflect() protoreflect.Message

func (*GetProjectBatchRequest) Reset

func (x *GetProjectBatchRequest) Reset()

func (*GetProjectBatchRequest) String

func (x *GetProjectBatchRequest) String() string

type GetProjectPackageVersionsRequest

type GetProjectPackageVersionsRequest struct {
	ProjectKey *ProjectKey `protobuf:"bytes,1,opt,name=project_key,json=projectKey,proto3" json:"project_key,omitempty"`
	// contains filtered or unexported fields
}

func (*GetProjectPackageVersionsRequest) Descriptor deprecated

func (*GetProjectPackageVersionsRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetProjectPackageVersionsRequest.ProtoReflect.Descriptor instead.

func (*GetProjectPackageVersionsRequest) GetProjectKey

func (x *GetProjectPackageVersionsRequest) GetProjectKey() *ProjectKey

func (*GetProjectPackageVersionsRequest) ProtoMessage

func (*GetProjectPackageVersionsRequest) ProtoMessage()

func (*GetProjectPackageVersionsRequest) ProtoReflect

func (*GetProjectPackageVersionsRequest) Reset

func (*GetProjectPackageVersionsRequest) String

type GetProjectRequest

type GetProjectRequest struct {
	ProjectKey *ProjectKey `protobuf:"bytes,1,opt,name=project_key,json=projectKey,proto3" json:"project_key,omitempty"`
	// contains filtered or unexported fields
}

GetProjectRequest identifies a project for which to return information.

func (*GetProjectRequest) Descriptor deprecated

func (*GetProjectRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetProjectRequest.ProtoReflect.Descriptor instead.

func (*GetProjectRequest) GetProjectKey

func (x *GetProjectRequest) GetProjectKey() *ProjectKey

func (*GetProjectRequest) ProtoMessage

func (*GetProjectRequest) ProtoMessage()

func (*GetProjectRequest) ProtoReflect

func (x *GetProjectRequest) ProtoReflect() protoreflect.Message

func (*GetProjectRequest) Reset

func (x *GetProjectRequest) Reset()

func (*GetProjectRequest) String

func (x *GetProjectRequest) String() string

type GetRequirementsRequest

type GetRequirementsRequest struct {
	VersionKey *VersionKey `protobuf:"bytes,1,opt,name=version_key,json=versionKey,proto3" json:"version_key,omitempty"`
	// contains filtered or unexported fields
}

GetRequirementsRequest identifies a version for which to return requirements.

func (*GetRequirementsRequest) Descriptor deprecated

func (*GetRequirementsRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetRequirementsRequest.ProtoReflect.Descriptor instead.

func (*GetRequirementsRequest) GetVersionKey

func (x *GetRequirementsRequest) GetVersionKey() *VersionKey

func (*GetRequirementsRequest) ProtoMessage

func (*GetRequirementsRequest) ProtoMessage()

func (*GetRequirementsRequest) ProtoReflect

func (x *GetRequirementsRequest) ProtoReflect() protoreflect.Message

func (*GetRequirementsRequest) Reset

func (x *GetRequirementsRequest) Reset()

func (*GetRequirementsRequest) String

func (x *GetRequirementsRequest) String() string

type GetSimilarlyNamedPackagesRequest

type GetSimilarlyNamedPackagesRequest struct {
	PackageKey *PackageKey `protobuf:"bytes,1,opt,name=package_key,json=packageKey,proto3" json:"package_key,omitempty"`
	// contains filtered or unexported fields
}

GetSimilarlyNamedPackagesRequest identifies a package for which to return similarly-named packages.

func (*GetSimilarlyNamedPackagesRequest) Descriptor deprecated

func (*GetSimilarlyNamedPackagesRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetSimilarlyNamedPackagesRequest.ProtoReflect.Descriptor instead.

func (*GetSimilarlyNamedPackagesRequest) GetPackageKey

func (x *GetSimilarlyNamedPackagesRequest) GetPackageKey() *PackageKey

func (*GetSimilarlyNamedPackagesRequest) ProtoMessage

func (*GetSimilarlyNamedPackagesRequest) ProtoMessage()

func (*GetSimilarlyNamedPackagesRequest) ProtoReflect

func (*GetSimilarlyNamedPackagesRequest) Reset

func (*GetSimilarlyNamedPackagesRequest) String

type GetVersionBatchRequest

type GetVersionBatchRequest struct {

	// The batch list of versions to return Version information for.
	Requests []*GetVersionRequest `protobuf:"bytes,1,rep,name=requests,proto3" json:"requests,omitempty"`
	// If set, request the next page of the result set. It must be set to the
	// page token provided by the previous version batch response. All other
	// request fields must be the same as in the initial request.
	PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// contains filtered or unexported fields
}

GetVersionBatchRequest identifies a batch of versions for which to return Version information.

func (*GetVersionBatchRequest) Descriptor deprecated

func (*GetVersionBatchRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetVersionBatchRequest.ProtoReflect.Descriptor instead.

func (*GetVersionBatchRequest) GetPageToken

func (x *GetVersionBatchRequest) GetPageToken() string

func (*GetVersionBatchRequest) GetRequests

func (x *GetVersionBatchRequest) GetRequests() []*GetVersionRequest

func (*GetVersionBatchRequest) ProtoMessage

func (*GetVersionBatchRequest) ProtoMessage()

func (*GetVersionBatchRequest) ProtoReflect

func (x *GetVersionBatchRequest) ProtoReflect() protoreflect.Message

func (*GetVersionBatchRequest) Reset

func (x *GetVersionBatchRequest) Reset()

func (*GetVersionBatchRequest) String

func (x *GetVersionBatchRequest) String() string

type GetVersionRequest

type GetVersionRequest struct {
	VersionKey *VersionKey `protobuf:"bytes,1,opt,name=version_key,json=versionKey,proto3" json:"version_key,omitempty"`
	// contains filtered or unexported fields
}

GetVersionRequest identifies a package version for which to return information.

func (*GetVersionRequest) Descriptor deprecated

func (*GetVersionRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetVersionRequest.ProtoReflect.Descriptor instead.

func (*GetVersionRequest) GetVersionKey

func (x *GetVersionRequest) GetVersionKey() *VersionKey

func (*GetVersionRequest) ProtoMessage

func (*GetVersionRequest) ProtoMessage()

func (*GetVersionRequest) ProtoReflect

func (x *GetVersionRequest) ProtoReflect() protoreflect.Message

func (*GetVersionRequest) Reset

func (x *GetVersionRequest) Reset()

func (*GetVersionRequest) String

func (x *GetVersionRequest) String() string

type Hash

type Hash struct {

	// The function used to produce this hash.
	Type HashType `protobuf:"varint,1,opt,name=type,proto3,enum=deps_dev.v3alpha.HashType" json:"type,omitempty"`
	// A hash value.
	Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

Hash represents the output of a hash function. These messages are used to identify package version artifacts by content hash.

func (*Hash) Descriptor deprecated

func (*Hash) Descriptor() ([]byte, []int)

Deprecated: Use Hash.ProtoReflect.Descriptor instead.

func (*Hash) GetType

func (x *Hash) GetType() HashType

func (*Hash) GetValue

func (x *Hash) GetValue() []byte

func (*Hash) ProtoMessage

func (*Hash) ProtoMessage()

func (*Hash) ProtoReflect

func (x *Hash) ProtoReflect() protoreflect.Message

func (*Hash) Reset

func (x *Hash) Reset()

func (*Hash) String

func (x *Hash) String() string

type HashType

type HashType int32

HashType identifies a function used to produce a hash.

const (
	HashType_HASH_TYPE_UNSPECIFIED HashType = 0
	HashType_MD5                   HashType = 1
	HashType_SHA1                  HashType = 2
	HashType_SHA256                HashType = 3
	HashType_SHA512                HashType = 4
)

func (HashType) Descriptor

func (HashType) Descriptor() protoreflect.EnumDescriptor

func (HashType) Enum

func (x HashType) Enum() *HashType

func (HashType) EnumDescriptor deprecated

func (HashType) EnumDescriptor() ([]byte, []int)

Deprecated: Use HashType.Descriptor instead.

func (HashType) Number

func (x HashType) Number() protoreflect.EnumNumber

func (HashType) String

func (x HashType) String() string

func (HashType) Type

type InsightsClient

type InsightsClient interface {
	// GetPackage returns information about a package, including a list of its
	// available versions, with the default version marked if known.
	GetPackage(ctx context.Context, in *GetPackageRequest, opts ...grpc.CallOption) (*Package, error)
	// GetVersion returns information about a specific package version, including
	// its licenses and any security advisories known to affect it.
	GetVersion(ctx context.Context, in *GetVersionRequest, opts ...grpc.CallOption) (*Version, error)
	// GetVersionBatch performs GetVersion requests for a batch of versions.
	// Large result sets may be paginated.
	GetVersionBatch(ctx context.Context, in *GetVersionBatchRequest, opts ...grpc.CallOption) (*VersionBatch, error)
	// GetRequirements returns the requirements for a given version in a
	// system-specific format. Requirements are currently available for
	// Maven, npm and NuGet.
	//
	// Requirements are the dependency constraints specified by the version.
	GetRequirements(ctx context.Context, in *GetRequirementsRequest, opts ...grpc.CallOption) (*Requirements, error)
	// GetDependencies returns a resolved dependency graph for the given package
	// version. Dependencies are currently available for Go, npm, Cargo, Maven
	// and PyPI.
	//
	// Dependencies are the resolution of the requirements (dependency
	// constraints) specified by a version.
	//
	// The dependency graph should be similar to one produced by installing the
	// package version on a generic 64-bit Linux system, with no other
	// dependencies present. The precise meaning of this varies from system to
	// system.
	GetDependencies(ctx context.Context, in *GetDependenciesRequest, opts ...grpc.CallOption) (*Dependencies, error)
	// GetProject returns information about projects hosted by GitHub, GitLab, or
	// BitBucket, when known to us.
	GetProject(ctx context.Context, in *GetProjectRequest, opts ...grpc.CallOption) (*Project, error)
	// GetProjectBatch performs GetProjectBatch requests for a batch of projects.
	// Large result sets may be paginated.
	GetProjectBatch(ctx context.Context, in *GetProjectBatchRequest, opts ...grpc.CallOption) (*ProjectBatch, error)
	// GetProjectPackageVersions returns known mappings between the requested
	// project and package versions.
	// At most 1500 package versions are returned. Mappings which were derived from
	// a [SLSA provenance attestation](https://slsa.dev/spec/v1.0/provenance)
	// are served first.
	GetProjectPackageVersions(ctx context.Context, in *GetProjectPackageVersionsRequest, opts ...grpc.CallOption) (*ProjectPackageVersions, error)
	// GetAdvisory returns information about security advisories hosted by OSV.
	GetAdvisory(ctx context.Context, in *GetAdvisoryRequest, opts ...grpc.CallOption) (*Advisory, error)
	// GetSimilarlyNamedPackages returns packages with names that are similar to
	// the requested package. This similarity relation is computed by deps.dev.
	GetSimilarlyNamedPackages(ctx context.Context, in *GetSimilarlyNamedPackagesRequest, opts ...grpc.CallOption) (*SimilarlyNamedPackages, error)
	// Query returns information about multiple package versions, which can be
	// specified by name, content hash, or both.
	//
	// Querying by content hash is currently supported for npm, Cargo, Maven, and
	// NuGet. It is typical for hash queries to return many results; hashes are
	// matched against multiple release artifacts (such as JAR files) that
	// comprise package versions, and any given artifact may appear in many
	// package versions.
	Query(ctx context.Context, in *QueryRequest, opts ...grpc.CallOption) (*QueryResult, error)
	// PurlLookup searches for a package or package version specified via
	// [purl](https://github.com/package-url/purl-spec),
	// and returns the corresponding result from GetPackage or GetVersion as appropriate.
	//
	// For a package lookup, the purl should be in the form
	//
	//	`pkg:type/namespace/name`   for a namespaced package name, or
	//	`pkg:type/name`             for a non-namespaced package name.
	//
	// For a package version lookup, the purl should be in the form
	//
	//	`pkg:type/namespace/name@version`, or
	//	`pkg:type/name@version`.
	//
	// Extra fields in the purl must be empty, otherwise the request will fail.
	// In particular, there must be no subpath or qualifiers.
	//
	// Supported values for `type` are `cargo`, `golang`, `maven`, `npm`, `nuget`
	// and `pypi`. Further details on types, and how to form purls of each type,
	// can be found in the
	// [purl spec](https://github.com/package-url/purl-spec/blob/master/PURL-TYPES.rst).
	//
	// Special characters in purls must be percent-encoded. This is described in
	// detail by the
	// [purl spec](https://github.com/package-url/purl-spec/blob/master/PURL-SPECIFICATION.rst).
	PurlLookup(ctx context.Context, in *PurlLookupRequest, opts ...grpc.CallOption) (*PurlLookupResult, error)
	// PurlLookupBatch performs PurlLookup requests for a batch of purls.
	// This endpoint only supports version lookups. Purls in requests
	// must include a version field.
	//
	// Supported purl forms are
	//
	//	`pkg:type/namespace/name@version` for a namespaced package name, or
	//	`pkg:type/name@version`           for a non-namespaced package name.
	//
	// Extra fields in the purl must be empty, otherwise the request will fail.
	// In particular, there must be no subpath or qualifiers.
	//
	// Large result sets may be paginated.
	PurlLookupBatch(ctx context.Context, in *PurlLookupBatchRequest, opts ...grpc.CallOption) (*PurlLookupBatchResult, error)
}

InsightsClient is the client API for Insights service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewInsightsClient

func NewInsightsClient(cc grpc.ClientConnInterface) InsightsClient

type InsightsServer

type InsightsServer interface {
	// GetPackage returns information about a package, including a list of its
	// available versions, with the default version marked if known.
	GetPackage(context.Context, *GetPackageRequest) (*Package, error)
	// GetVersion returns information about a specific package version, including
	// its licenses and any security advisories known to affect it.
	GetVersion(context.Context, *GetVersionRequest) (*Version, error)
	// GetVersionBatch performs GetVersion requests for a batch of versions.
	// Large result sets may be paginated.
	GetVersionBatch(context.Context, *GetVersionBatchRequest) (*VersionBatch, error)
	// GetRequirements returns the requirements for a given version in a
	// system-specific format. Requirements are currently available for
	// Maven, npm and NuGet.
	//
	// Requirements are the dependency constraints specified by the version.
	GetRequirements(context.Context, *GetRequirementsRequest) (*Requirements, error)
	// GetDependencies returns a resolved dependency graph for the given package
	// version. Dependencies are currently available for Go, npm, Cargo, Maven
	// and PyPI.
	//
	// Dependencies are the resolution of the requirements (dependency
	// constraints) specified by a version.
	//
	// The dependency graph should be similar to one produced by installing the
	// package version on a generic 64-bit Linux system, with no other
	// dependencies present. The precise meaning of this varies from system to
	// system.
	GetDependencies(context.Context, *GetDependenciesRequest) (*Dependencies, error)
	// GetProject returns information about projects hosted by GitHub, GitLab, or
	// BitBucket, when known to us.
	GetProject(context.Context, *GetProjectRequest) (*Project, error)
	// GetProjectBatch performs GetProjectBatch requests for a batch of projects.
	// Large result sets may be paginated.
	GetProjectBatch(context.Context, *GetProjectBatchRequest) (*ProjectBatch, error)
	// GetProjectPackageVersions returns known mappings between the requested
	// project and package versions.
	// At most 1500 package versions are returned. Mappings which were derived from
	// a [SLSA provenance attestation](https://slsa.dev/spec/v1.0/provenance)
	// are served first.
	GetProjectPackageVersions(context.Context, *GetProjectPackageVersionsRequest) (*ProjectPackageVersions, error)
	// GetAdvisory returns information about security advisories hosted by OSV.
	GetAdvisory(context.Context, *GetAdvisoryRequest) (*Advisory, error)
	// GetSimilarlyNamedPackages returns packages with names that are similar to
	// the requested package. This similarity relation is computed by deps.dev.
	GetSimilarlyNamedPackages(context.Context, *GetSimilarlyNamedPackagesRequest) (*SimilarlyNamedPackages, error)
	// Query returns information about multiple package versions, which can be
	// specified by name, content hash, or both.
	//
	// Querying by content hash is currently supported for npm, Cargo, Maven, and
	// NuGet. It is typical for hash queries to return many results; hashes are
	// matched against multiple release artifacts (such as JAR files) that
	// comprise package versions, and any given artifact may appear in many
	// package versions.
	Query(context.Context, *QueryRequest) (*QueryResult, error)
	// PurlLookup searches for a package or package version specified via
	// [purl](https://github.com/package-url/purl-spec),
	// and returns the corresponding result from GetPackage or GetVersion as appropriate.
	//
	// For a package lookup, the purl should be in the form
	//
	//	`pkg:type/namespace/name`   for a namespaced package name, or
	//	`pkg:type/name`             for a non-namespaced package name.
	//
	// For a package version lookup, the purl should be in the form
	//
	//	`pkg:type/namespace/name@version`, or
	//	`pkg:type/name@version`.
	//
	// Extra fields in the purl must be empty, otherwise the request will fail.
	// In particular, there must be no subpath or qualifiers.
	//
	// Supported values for `type` are `cargo`, `golang`, `maven`, `npm`, `nuget`
	// and `pypi`. Further details on types, and how to form purls of each type,
	// can be found in the
	// [purl spec](https://github.com/package-url/purl-spec/blob/master/PURL-TYPES.rst).
	//
	// Special characters in purls must be percent-encoded. This is described in
	// detail by the
	// [purl spec](https://github.com/package-url/purl-spec/blob/master/PURL-SPECIFICATION.rst).
	PurlLookup(context.Context, *PurlLookupRequest) (*PurlLookupResult, error)
	// PurlLookupBatch performs PurlLookup requests for a batch of purls.
	// This endpoint only supports version lookups. Purls in requests
	// must include a version field.
	//
	// Supported purl forms are
	//
	//	`pkg:type/namespace/name@version` for a namespaced package name, or
	//	`pkg:type/name@version`           for a non-namespaced package name.
	//
	// Extra fields in the purl must be empty, otherwise the request will fail.
	// In particular, there must be no subpath or qualifiers.
	//
	// Large result sets may be paginated.
	PurlLookupBatch(context.Context, *PurlLookupBatchRequest) (*PurlLookupBatchResult, error)
	// contains filtered or unexported methods
}

InsightsServer is the server API for Insights service. All implementations must embed UnimplementedInsightsServer for forward compatibility

type Link struct {

	// A label describing the resource that the link points to.
	Label string `protobuf:"bytes,1,opt,name=label,proto3" json:"label,omitempty"`
	// The URL of the link.
	Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
	// contains filtered or unexported fields
}

Link represents a link declared by or derived from package version metadata, to an external web resource such as a homepage or source code repository.

func (*Link) Descriptor deprecated

func (*Link) Descriptor() ([]byte, []int)

Deprecated: Use Link.ProtoReflect.Descriptor instead.

func (*Link) GetLabel

func (x *Link) GetLabel() string

func (*Link) GetUrl

func (x *Link) GetUrl() string

func (*Link) ProtoMessage

func (*Link) ProtoMessage()

func (*Link) ProtoReflect

func (x *Link) ProtoReflect() protoreflect.Message

func (*Link) Reset

func (x *Link) Reset()

func (*Link) String

func (x *Link) String() string

type Package

type Package struct {

	// The name of the package. Note that it may differ from the name in the
	// request, due to canonicalization.
	PackageKey *PackageKey `protobuf:"bytes,1,opt,name=package_key,json=packageKey,proto3" json:"package_key,omitempty"`
	// The purl that identifies this package. Note that the package name
	// may differ from the name in the request, due to canonicalization.
	Purl string `protobuf:"bytes,3,opt,name=purl,proto3" json:"purl,omitempty"`
	// The available versions of the package.
	Versions []*Package_Version `protobuf:"bytes,2,rep,name=versions,proto3" json:"versions,omitempty"`
	// contains filtered or unexported fields
}

Package holds information about a package, including a list of its available versions, with the default version marked if known.

func (*Package) Descriptor deprecated

func (*Package) Descriptor() ([]byte, []int)

Deprecated: Use Package.ProtoReflect.Descriptor instead.

func (*Package) GetPackageKey

func (x *Package) GetPackageKey() *PackageKey

func (*Package) GetPurl

func (x *Package) GetPurl() string

func (*Package) GetVersions

func (x *Package) GetVersions() []*Package_Version

func (*Package) ProtoMessage

func (*Package) ProtoMessage()

func (*Package) ProtoReflect

func (x *Package) ProtoReflect() protoreflect.Message

func (*Package) Reset

func (x *Package) Reset()

func (*Package) String

func (x *Package) String() string

type PackageKey

type PackageKey struct {

	// The package management system containing the package.
	System System `protobuf:"varint,1,opt,name=system,proto3,enum=deps_dev.v3alpha.System" json:"system,omitempty"`
	// The name of the package.
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

PackageKey identifies a package by name.

func (*PackageKey) Descriptor deprecated

func (*PackageKey) Descriptor() ([]byte, []int)

Deprecated: Use PackageKey.ProtoReflect.Descriptor instead.

func (*PackageKey) GetName

func (x *PackageKey) GetName() string

func (*PackageKey) GetSystem

func (x *PackageKey) GetSystem() System

func (*PackageKey) ProtoMessage

func (*PackageKey) ProtoMessage()

func (*PackageKey) ProtoReflect

func (x *PackageKey) ProtoReflect() protoreflect.Message

func (*PackageKey) Reset

func (x *PackageKey) Reset()

func (*PackageKey) String

func (x *PackageKey) String() string

type Package_Version

type Package_Version struct {

	// The name of the version. Note that the package name may differ from the
	// name in the request, due to canonicalization.
	VersionKey *VersionKey `protobuf:"bytes,1,opt,name=version_key,json=versionKey,proto3" json:"version_key,omitempty"`
	// The purl that identifies this version of the package.
	// Note that the package and version name in the purl may differ from the
	// names in the request, due to canonicalization.
	Purl string `protobuf:"bytes,4,opt,name=purl,proto3" json:"purl,omitempty"`
	// The time when this package version was published, if available, as
	// reported by the package management authority.
	PublishedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=published_at,json=publishedAt,proto3" json:"published_at,omitempty"`
	// If true, this is the default version of the package: the version that is
	// installed when no version is specified. The precise meaning of this is
	// system-specific, but it is commonly the version with the greatest
	// version number, ignoring pre-release versions.
	IsDefault bool `protobuf:"varint,2,opt,name=is_default,json=isDefault,proto3" json:"is_default,omitempty"`
	// contains filtered or unexported fields
}

func (*Package_Version) Descriptor deprecated

func (*Package_Version) Descriptor() ([]byte, []int)

Deprecated: Use Package_Version.ProtoReflect.Descriptor instead.

func (*Package_Version) GetIsDefault

func (x *Package_Version) GetIsDefault() bool

func (*Package_Version) GetPublishedAt

func (x *Package_Version) GetPublishedAt() *timestamppb.Timestamp

func (*Package_Version) GetPurl

func (x *Package_Version) GetPurl() string

func (*Package_Version) GetVersionKey

func (x *Package_Version) GetVersionKey() *VersionKey

func (*Package_Version) ProtoMessage

func (*Package_Version) ProtoMessage()

func (*Package_Version) ProtoReflect

func (x *Package_Version) ProtoReflect() protoreflect.Message

func (*Package_Version) Reset

func (x *Package_Version) Reset()

func (*Package_Version) String

func (x *Package_Version) String() string

type Project

type Project struct {

	// The identifier for the project. Note that this may differ from the
	// identifier in the request, due to canonicalization.
	ProjectKey *ProjectKey `protobuf:"bytes,1,opt,name=project_key,json=projectKey,proto3" json:"project_key,omitempty"`
	// The number of open issues reported by the project host.
	// Only available for GitHub and GitLab.
	OpenIssuesCount int64 `protobuf:"varint,2,opt,name=open_issues_count,json=openIssuesCount,proto3" json:"open_issues_count,omitempty"`
	// The number of stars reported by the project host.
	// Only available for GitHub and GitLab.
	StarsCount int64 `protobuf:"varint,3,opt,name=stars_count,json=starsCount,proto3" json:"stars_count,omitempty"`
	// The number of forks reported by the project host.
	// Only available for GitHub and GitLab.
	ForksCount int64 `protobuf:"varint,4,opt,name=forks_count,json=forksCount,proto3" json:"forks_count,omitempty"`
	// The license reported by the project host.
	License string `protobuf:"bytes,5,opt,name=license,proto3" json:"license,omitempty"`
	// The description reported by the project host.
	Description string `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"`
	// The homepage reported by the project host.
	Homepage string `protobuf:"bytes,7,opt,name=homepage,proto3" json:"homepage,omitempty"`
	// An [OpenSSF Scorecard](https://github.com/ossf/scorecard) for the project,
	// if one is available.
	Scorecard *Project_Scorecard `protobuf:"bytes,8,opt,name=scorecard,proto3" json:"scorecard,omitempty"`
	// Details of this project's testing by the
	// [OSS-Fuzz service](https://google.github.io/oss-fuzz/).
	// Only set if the project is tested by OSS-Fuzz.
	OssFuzz *Project_OSSFuzzDetails `protobuf:"bytes,9,opt,name=oss_fuzz,json=ossFuzz,proto3" json:"oss_fuzz,omitempty"`
	// contains filtered or unexported fields
}

Project holds information about a project hosted by GitHub, GitLab, or Bitbucket.

func (*Project) Descriptor deprecated

func (*Project) Descriptor() ([]byte, []int)

Deprecated: Use Project.ProtoReflect.Descriptor instead.

func (*Project) GetDescription

func (x *Project) GetDescription() string

func (*Project) GetForksCount

func (x *Project) GetForksCount() int64

func (*Project) GetHomepage

func (x *Project) GetHomepage() string

func (*Project) GetLicense

func (x *Project) GetLicense() string

func (*Project) GetOpenIssuesCount

func (x *Project) GetOpenIssuesCount() int64

func (*Project) GetOssFuzz

func (x *Project) GetOssFuzz() *Project_OSSFuzzDetails

func (*Project) GetProjectKey

func (x *Project) GetProjectKey() *ProjectKey

func (*Project) GetScorecard

func (x *Project) GetScorecard() *Project_Scorecard

func (*Project) GetStarsCount

func (x *Project) GetStarsCount() int64

func (*Project) ProtoMessage

func (*Project) ProtoMessage()

func (*Project) ProtoReflect

func (x *Project) ProtoReflect() protoreflect.Message

func (*Project) Reset

func (x *Project) Reset()

func (*Project) String

func (x *Project) String() string

type ProjectBatch

type ProjectBatch struct {

	// The Project information for this page.
	Responses []*ProjectBatch_Response `protobuf:"bytes,1,rep,name=responses,proto3" json:"responses,omitempty"`
	// If set, this batch is not the full result set. This page token
	// may be used to fetch more results in a subsequent request.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

ProjectBatch contains a batch of project information. If there is more project information to be returned, a page token is included in the response.

func (*ProjectBatch) Descriptor deprecated

func (*ProjectBatch) Descriptor() ([]byte, []int)

Deprecated: Use ProjectBatch.ProtoReflect.Descriptor instead.

func (*ProjectBatch) GetNextPageToken

func (x *ProjectBatch) GetNextPageToken() string

func (*ProjectBatch) GetResponses

func (x *ProjectBatch) GetResponses() []*ProjectBatch_Response

func (*ProjectBatch) ProtoMessage

func (*ProjectBatch) ProtoMessage()

func (*ProjectBatch) ProtoReflect

func (x *ProjectBatch) ProtoReflect() protoreflect.Message

func (*ProjectBatch) Reset

func (x *ProjectBatch) Reset()

func (*ProjectBatch) String

func (x *ProjectBatch) String() string

type ProjectBatch_Response

type ProjectBatch_Response struct {

	// The uncanonicalized request.
	Request *GetProjectRequest `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"`
	// The project information for the request. If the project was not found,
	// this field is empty.
	Project *Project `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"`
	// contains filtered or unexported fields
}

func (*ProjectBatch_Response) Descriptor deprecated

func (*ProjectBatch_Response) Descriptor() ([]byte, []int)

Deprecated: Use ProjectBatch_Response.ProtoReflect.Descriptor instead.

func (*ProjectBatch_Response) GetProject

func (x *ProjectBatch_Response) GetProject() *Project

func (*ProjectBatch_Response) GetRequest

func (x *ProjectBatch_Response) GetRequest() *GetProjectRequest

func (*ProjectBatch_Response) ProtoMessage

func (*ProjectBatch_Response) ProtoMessage()

func (*ProjectBatch_Response) ProtoReflect

func (x *ProjectBatch_Response) ProtoReflect() protoreflect.Message

func (*ProjectBatch_Response) Reset

func (x *ProjectBatch_Response) Reset()

func (*ProjectBatch_Response) String

func (x *ProjectBatch_Response) String() string

type ProjectKey

type ProjectKey struct {

	// A project identifier of the form `github.com/user/repo`,
	// `gitlab.com/user/repo`, or `bitbucket.org/user/repo`.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

ProjectKey identifies a project.

func (*ProjectKey) Descriptor deprecated

func (*ProjectKey) Descriptor() ([]byte, []int)

Deprecated: Use ProjectKey.ProtoReflect.Descriptor instead.

func (*ProjectKey) GetId

func (x *ProjectKey) GetId() string

func (*ProjectKey) ProtoMessage

func (*ProjectKey) ProtoMessage()

func (*ProjectKey) ProtoReflect

func (x *ProjectKey) ProtoReflect() protoreflect.Message

func (*ProjectKey) Reset

func (x *ProjectKey) Reset()

func (*ProjectKey) String

func (x *ProjectKey) String() string

type ProjectPackageVersions

type ProjectPackageVersions struct {

	// The versions that were built from the source code contained in this
	// project.
	Versions []*ProjectPackageVersions_Version `protobuf:"bytes,1,rep,name=versions,proto3" json:"versions,omitempty"`
	// contains filtered or unexported fields
}

func (*ProjectPackageVersions) Descriptor deprecated

func (*ProjectPackageVersions) Descriptor() ([]byte, []int)

Deprecated: Use ProjectPackageVersions.ProtoReflect.Descriptor instead.

func (*ProjectPackageVersions) GetVersions

func (*ProjectPackageVersions) ProtoMessage

func (*ProjectPackageVersions) ProtoMessage()

func (*ProjectPackageVersions) ProtoReflect

func (x *ProjectPackageVersions) ProtoReflect() protoreflect.Message

func (*ProjectPackageVersions) Reset

func (x *ProjectPackageVersions) Reset()

func (*ProjectPackageVersions) String

func (x *ProjectPackageVersions) String() string

type ProjectPackageVersions_Version

type ProjectPackageVersions_Version struct {

	// The identifier for the version.
	VersionKey *VersionKey `protobuf:"bytes,1,opt,name=version_key,json=versionKey,proto3" json:"version_key,omitempty"`
	// The SLSA provenance statements that link the version to the project.
	SlsaProvenances []*SLSAProvenance `protobuf:"bytes,2,rep,name=slsa_provenances,json=slsaProvenances,proto3" json:"slsa_provenances,omitempty"`
	// What the relationship between the project and the package version is.
	RelationType ProjectRelationType `` /* 140-byte string literal not displayed */
	// How the mapping between project and package version was discovered.
	RelationProvenance ProjectRelationProvenance `` /* 164-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ProjectPackageVersions_Version) Descriptor deprecated

func (*ProjectPackageVersions_Version) Descriptor() ([]byte, []int)

Deprecated: Use ProjectPackageVersions_Version.ProtoReflect.Descriptor instead.

func (*ProjectPackageVersions_Version) GetRelationProvenance

func (x *ProjectPackageVersions_Version) GetRelationProvenance() ProjectRelationProvenance

func (*ProjectPackageVersions_Version) GetRelationType

func (*ProjectPackageVersions_Version) GetSlsaProvenances

func (x *ProjectPackageVersions_Version) GetSlsaProvenances() []*SLSAProvenance

func (*ProjectPackageVersions_Version) GetVersionKey

func (x *ProjectPackageVersions_Version) GetVersionKey() *VersionKey

func (*ProjectPackageVersions_Version) ProtoMessage

func (*ProjectPackageVersions_Version) ProtoMessage()

func (*ProjectPackageVersions_Version) ProtoReflect

func (*ProjectPackageVersions_Version) Reset

func (x *ProjectPackageVersions_Version) Reset()

func (*ProjectPackageVersions_Version) String

type ProjectRelationProvenance

type ProjectRelationProvenance int32

How the mapping between project and package version was discovered.

const (
	ProjectRelationProvenance_UNKNOWN_PROJECT_RELATION_PROVENANCE ProjectRelationProvenance = 0
	// There is a SLSA attestation that links this package version to this project.
	ProjectRelationProvenance_SLSA_ATTESTATION ProjectRelationProvenance = 1
	// This project contains the package version (Go specific).
	ProjectRelationProvenance_GO_ORIGIN ProjectRelationProvenance = 2
	// The package version's metadata contains an unverified link to this project.
	ProjectRelationProvenance_UNVERIFIED_METADATA ProjectRelationProvenance = 10
)

func (ProjectRelationProvenance) Descriptor

func (ProjectRelationProvenance) Enum

func (ProjectRelationProvenance) EnumDescriptor deprecated

func (ProjectRelationProvenance) EnumDescriptor() ([]byte, []int)

Deprecated: Use ProjectRelationProvenance.Descriptor instead.

func (ProjectRelationProvenance) Number

func (ProjectRelationProvenance) String

func (x ProjectRelationProvenance) String() string

func (ProjectRelationProvenance) Type

type ProjectRelationType

type ProjectRelationType int32

ProjectRelationType specifies a relationship between a project and a package version.

const (
	ProjectRelationType_UNKNOWN_PROJECT_RELATION_TYPE ProjectRelationType = 0
	// This project is this package version's source code repository.
	ProjectRelationType_SOURCE_REPO ProjectRelationType = 1
	// This project is the package version's issue tracker.
	ProjectRelationType_ISSUE_TRACKER ProjectRelationType = 2
)

func (ProjectRelationType) Descriptor

func (ProjectRelationType) Enum

func (ProjectRelationType) EnumDescriptor deprecated

func (ProjectRelationType) EnumDescriptor() ([]byte, []int)

Deprecated: Use ProjectRelationType.Descriptor instead.

func (ProjectRelationType) Number

func (ProjectRelationType) String

func (x ProjectRelationType) String() string

func (ProjectRelationType) Type

type Project_OSSFuzzDetails

type Project_OSSFuzzDetails struct {

	// The total number of lines of code in the project.
	LineCount int64 `protobuf:"varint,1,opt,name=line_count,json=lineCount,proto3" json:"line_count,omitempty"`
	// The number of lines of code covered by fuzzing.
	LineCoverCount int64 `protobuf:"varint,2,opt,name=line_cover_count,json=lineCoverCount,proto3" json:"line_cover_count,omitempty"`
	// The date the fuzz test that produced the coverage information was run
	// against this project.
	// The time portion of this field is midnight UTC.
	Date *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=date,proto3" json:"date,omitempty"`
	// The URL containing the configuration for the project in the
	// OSS-Fuzz repository.
	ConfigUrl string `protobuf:"bytes,4,opt,name=config_url,json=configUrl,proto3" json:"config_url,omitempty"`
	// contains filtered or unexported fields
}

func (*Project_OSSFuzzDetails) Descriptor deprecated

func (*Project_OSSFuzzDetails) Descriptor() ([]byte, []int)

Deprecated: Use Project_OSSFuzzDetails.ProtoReflect.Descriptor instead.

func (*Project_OSSFuzzDetails) GetConfigUrl

func (x *Project_OSSFuzzDetails) GetConfigUrl() string

func (*Project_OSSFuzzDetails) GetDate

func (*Project_OSSFuzzDetails) GetLineCount

func (x *Project_OSSFuzzDetails) GetLineCount() int64

func (*Project_OSSFuzzDetails) GetLineCoverCount

func (x *Project_OSSFuzzDetails) GetLineCoverCount() int64

func (*Project_OSSFuzzDetails) ProtoMessage

func (*Project_OSSFuzzDetails) ProtoMessage()

func (*Project_OSSFuzzDetails) ProtoReflect

func (x *Project_OSSFuzzDetails) ProtoReflect() protoreflect.Message

func (*Project_OSSFuzzDetails) Reset

func (x *Project_OSSFuzzDetails) Reset()

func (*Project_OSSFuzzDetails) String

func (x *Project_OSSFuzzDetails) String() string

type Project_Scorecard

type Project_Scorecard struct {

	// The date at which the scorecard was produced.
	// The time portion of this field is midnight UTC.
	Date *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=date,proto3" json:"date,omitempty"`
	// The source code repository and commit the scorecard was produced from.
	Repository *Project_Scorecard_Repository `protobuf:"bytes,2,opt,name=repository,proto3" json:"repository,omitempty"`
	// The version and commit of the Scorecard program used to produce the
	// scorecard.
	Scorecard *Project_Scorecard_ScorecardDetails `protobuf:"bytes,3,opt,name=scorecard,proto3" json:"scorecard,omitempty"`
	// The results of the
	// [Scorecard Checks](https://github.com/ossf/scorecard#scorecard-checks)
	// performed on the project.
	Checks []*Project_Scorecard_Check `protobuf:"bytes,4,rep,name=checks,proto3" json:"checks,omitempty"`
	// A weighted average score in the range [0,10]. A higher score is better.
	OverallScore float32 `protobuf:"fixed32,5,opt,name=overall_score,json=overallScore,proto3" json:"overall_score,omitempty"`
	// Additional metadata associated with the scorecard.
	Metadata []string `protobuf:"bytes,6,rep,name=metadata,proto3" json:"metadata,omitempty"`
	// contains filtered or unexported fields
}

func (*Project_Scorecard) Descriptor deprecated

func (*Project_Scorecard) Descriptor() ([]byte, []int)

Deprecated: Use Project_Scorecard.ProtoReflect.Descriptor instead.

func (*Project_Scorecard) GetChecks

func (x *Project_Scorecard) GetChecks() []*Project_Scorecard_Check

func (*Project_Scorecard) GetDate

func (x *Project_Scorecard) GetDate() *timestamppb.Timestamp

func (*Project_Scorecard) GetMetadata

func (x *Project_Scorecard) GetMetadata() []string

func (*Project_Scorecard) GetOverallScore

func (x *Project_Scorecard) GetOverallScore() float32

func (*Project_Scorecard) GetRepository

func (x *Project_Scorecard) GetRepository() *Project_Scorecard_Repository

func (*Project_Scorecard) GetScorecard

func (*Project_Scorecard) ProtoMessage

func (*Project_Scorecard) ProtoMessage()

func (*Project_Scorecard) ProtoReflect

func (x *Project_Scorecard) ProtoReflect() protoreflect.Message

func (*Project_Scorecard) Reset

func (x *Project_Scorecard) Reset()

func (*Project_Scorecard) String

func (x *Project_Scorecard) String() string

type Project_Scorecard_Check

type Project_Scorecard_Check struct {

	// The name of the check.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Human-readable documentation for the check.
	Documentation *Project_Scorecard_Check_Documentation `protobuf:"bytes,2,opt,name=documentation,proto3" json:"documentation,omitempty"`
	// A score in the range [0,10]. A higher score is better.
	// A negative score indicates that the check did not run successfully.
	Score int64 `protobuf:"varint,3,opt,name=score,proto3" json:"score,omitempty"`
	// The reason for the score.
	Reason string `protobuf:"bytes,4,opt,name=reason,proto3" json:"reason,omitempty"`
	// Further details regarding the check.
	Details []string `protobuf:"bytes,5,rep,name=details,proto3" json:"details,omitempty"`
	// contains filtered or unexported fields
}

func (*Project_Scorecard_Check) Descriptor deprecated

func (*Project_Scorecard_Check) Descriptor() ([]byte, []int)

Deprecated: Use Project_Scorecard_Check.ProtoReflect.Descriptor instead.

func (*Project_Scorecard_Check) GetDetails

func (x *Project_Scorecard_Check) GetDetails() []string

func (*Project_Scorecard_Check) GetDocumentation

func (*Project_Scorecard_Check) GetName

func (x *Project_Scorecard_Check) GetName() string

func (*Project_Scorecard_Check) GetReason

func (x *Project_Scorecard_Check) GetReason() string

func (*Project_Scorecard_Check) GetScore

func (x *Project_Scorecard_Check) GetScore() int64

func (*Project_Scorecard_Check) ProtoMessage

func (*Project_Scorecard_Check) ProtoMessage()

func (*Project_Scorecard_Check) ProtoReflect

func (x *Project_Scorecard_Check) ProtoReflect() protoreflect.Message

func (*Project_Scorecard_Check) Reset

func (x *Project_Scorecard_Check) Reset()

func (*Project_Scorecard_Check) String

func (x *Project_Scorecard_Check) String() string

type Project_Scorecard_Check_Documentation

type Project_Scorecard_Check_Documentation struct {

	// A short description of the check.
	ShortDescription string `protobuf:"bytes,1,opt,name=short_description,json=shortDescription,proto3" json:"short_description,omitempty"`
	// A link to more details about the check.
	Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
	// contains filtered or unexported fields
}

func (*Project_Scorecard_Check_Documentation) Descriptor deprecated

func (*Project_Scorecard_Check_Documentation) Descriptor() ([]byte, []int)

Deprecated: Use Project_Scorecard_Check_Documentation.ProtoReflect.Descriptor instead.

func (*Project_Scorecard_Check_Documentation) GetShortDescription

func (x *Project_Scorecard_Check_Documentation) GetShortDescription() string

func (*Project_Scorecard_Check_Documentation) GetUrl

func (*Project_Scorecard_Check_Documentation) ProtoMessage

func (*Project_Scorecard_Check_Documentation) ProtoMessage()

func (*Project_Scorecard_Check_Documentation) ProtoReflect

func (*Project_Scorecard_Check_Documentation) Reset

func (*Project_Scorecard_Check_Documentation) String

type Project_Scorecard_Repository

type Project_Scorecard_Repository struct {

	// The source code repository the scorecard was produced from.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The source code commit the scorecard was produced from.
	Commit string `protobuf:"bytes,2,opt,name=commit,proto3" json:"commit,omitempty"`
	// contains filtered or unexported fields
}

func (*Project_Scorecard_Repository) Descriptor deprecated

func (*Project_Scorecard_Repository) Descriptor() ([]byte, []int)

Deprecated: Use Project_Scorecard_Repository.ProtoReflect.Descriptor instead.

func (*Project_Scorecard_Repository) GetCommit

func (x *Project_Scorecard_Repository) GetCommit() string

func (*Project_Scorecard_Repository) GetName

func (x *Project_Scorecard_Repository) GetName() string

func (*Project_Scorecard_Repository) ProtoMessage

func (*Project_Scorecard_Repository) ProtoMessage()

func (*Project_Scorecard_Repository) ProtoReflect

func (*Project_Scorecard_Repository) Reset

func (x *Project_Scorecard_Repository) Reset()

func (*Project_Scorecard_Repository) String

type Project_Scorecard_ScorecardDetails

type Project_Scorecard_ScorecardDetails struct {

	// The version of the Scorecard program used to produce the scorecard.
	Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
	// The commit of the Scorecard program used to produce the scorecard.
	Commit string `protobuf:"bytes,2,opt,name=commit,proto3" json:"commit,omitempty"`
	// contains filtered or unexported fields
}

func (*Project_Scorecard_ScorecardDetails) Descriptor deprecated

func (*Project_Scorecard_ScorecardDetails) Descriptor() ([]byte, []int)

Deprecated: Use Project_Scorecard_ScorecardDetails.ProtoReflect.Descriptor instead.

func (*Project_Scorecard_ScorecardDetails) GetCommit

func (*Project_Scorecard_ScorecardDetails) GetVersion

func (*Project_Scorecard_ScorecardDetails) ProtoMessage

func (*Project_Scorecard_ScorecardDetails) ProtoMessage()

func (*Project_Scorecard_ScorecardDetails) ProtoReflect

func (*Project_Scorecard_ScorecardDetails) Reset

func (*Project_Scorecard_ScorecardDetails) String

type PurlLookupBatchRequest

type PurlLookupBatchRequest struct {

	// The batch list of purls to search for.
	Requests []*PurlLookupRequest `protobuf:"bytes,1,rep,name=requests,proto3" json:"requests,omitempty"`
	// If set, request the next page of the result set. It must be set to the
	// page token provided by the previous purl lookup batch response. All other
	// request fields must be the same as in the initial request.
	PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// contains filtered or unexported fields
}

PurlLookupBatchRequest identifies a batch of purls to search for.

func (*PurlLookupBatchRequest) Descriptor deprecated

func (*PurlLookupBatchRequest) Descriptor() ([]byte, []int)

Deprecated: Use PurlLookupBatchRequest.ProtoReflect.Descriptor instead.

func (*PurlLookupBatchRequest) GetPageToken

func (x *PurlLookupBatchRequest) GetPageToken() string

func (*PurlLookupBatchRequest) GetRequests

func (x *PurlLookupBatchRequest) GetRequests() []*PurlLookupRequest

func (*PurlLookupBatchRequest) ProtoMessage

func (*PurlLookupBatchRequest) ProtoMessage()

func (*PurlLookupBatchRequest) ProtoReflect

func (x *PurlLookupBatchRequest) ProtoReflect() protoreflect.Message

func (*PurlLookupBatchRequest) Reset

func (x *PurlLookupBatchRequest) Reset()

func (*PurlLookupBatchRequest) String

func (x *PurlLookupBatchRequest) String() string

type PurlLookupBatchResult

type PurlLookupBatchResult struct {

	// The purl lookup results for this page.
	Responses []*PurlLookupBatchResult_Response `protobuf:"bytes,1,rep,name=responses,proto3" json:"responses,omitempty"`
	// If set, this batch is not the full result set. This page token
	// may be used to fetch more results in a subsequent request.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

PurlLookupBatchResult contains a batch of PurlLookupResults. If there is more information to be returned, a page token is included in the response.

func (*PurlLookupBatchResult) Descriptor deprecated

func (*PurlLookupBatchResult) Descriptor() ([]byte, []int)

Deprecated: Use PurlLookupBatchResult.ProtoReflect.Descriptor instead.

func (*PurlLookupBatchResult) GetNextPageToken

func (x *PurlLookupBatchResult) GetNextPageToken() string

func (*PurlLookupBatchResult) GetResponses

func (*PurlLookupBatchResult) ProtoMessage

func (*PurlLookupBatchResult) ProtoMessage()

func (*PurlLookupBatchResult) ProtoReflect

func (x *PurlLookupBatchResult) ProtoReflect() protoreflect.Message

func (*PurlLookupBatchResult) Reset

func (x *PurlLookupBatchResult) Reset()

func (*PurlLookupBatchResult) String

func (x *PurlLookupBatchResult) String() string

type PurlLookupBatchResult_Response

type PurlLookupBatchResult_Response struct {

	// The uncanonicalized request.
	Request *PurlLookupRequest `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"`
	// The result corresponding to the request. If no result was found for the
	// request, this field is empty.
	Result *PurlLookupResult `protobuf:"bytes,2,opt,name=result,proto3" json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*PurlLookupBatchResult_Response) Descriptor deprecated

func (*PurlLookupBatchResult_Response) Descriptor() ([]byte, []int)

Deprecated: Use PurlLookupBatchResult_Response.ProtoReflect.Descriptor instead.

func (*PurlLookupBatchResult_Response) GetRequest

func (*PurlLookupBatchResult_Response) GetResult

func (*PurlLookupBatchResult_Response) ProtoMessage

func (*PurlLookupBatchResult_Response) ProtoMessage()

func (*PurlLookupBatchResult_Response) ProtoReflect

func (*PurlLookupBatchResult_Response) Reset

func (x *PurlLookupBatchResult_Response) Reset()

func (*PurlLookupBatchResult_Response) String

type PurlLookupRequest

type PurlLookupRequest struct {

	// The purl to search for.
	Purl string `protobuf:"bytes,1,opt,name=purl,proto3" json:"purl,omitempty"`
	// contains filtered or unexported fields
}

PurlLookupRequest identifies a purl to search for.

func (*PurlLookupRequest) Descriptor deprecated

func (*PurlLookupRequest) Descriptor() ([]byte, []int)

Deprecated: Use PurlLookupRequest.ProtoReflect.Descriptor instead.

func (*PurlLookupRequest) GetPurl

func (x *PurlLookupRequest) GetPurl() string

func (*PurlLookupRequest) ProtoMessage

func (*PurlLookupRequest) ProtoMessage()

func (*PurlLookupRequest) ProtoReflect

func (x *PurlLookupRequest) ProtoReflect() protoreflect.Message

func (*PurlLookupRequest) Reset

func (x *PurlLookupRequest) Reset()

func (*PurlLookupRequest) String

func (x *PurlLookupRequest) String() string

type PurlLookupResult

type PurlLookupResult struct {

	// Package result (as from GetPackage) for purls that do not include a version.
	Package *Package `protobuf:"bytes,1,opt,name=package,proto3" json:"package,omitempty"`
	// Version result (as from GetVersion), for purls that include a version.
	Version *Version `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
	// contains filtered or unexported fields
}

PurlLookupResult holds information corresponding to the queried purl, which may be either package, or package version. Only one field will be populated, which depends on the form of the queried purl.

func (*PurlLookupResult) Descriptor deprecated

func (*PurlLookupResult) Descriptor() ([]byte, []int)

Deprecated: Use PurlLookupResult.ProtoReflect.Descriptor instead.

func (*PurlLookupResult) GetPackage

func (x *PurlLookupResult) GetPackage() *Package

func (*PurlLookupResult) GetVersion

func (x *PurlLookupResult) GetVersion() *Version

func (*PurlLookupResult) ProtoMessage

func (*PurlLookupResult) ProtoMessage()

func (*PurlLookupResult) ProtoReflect

func (x *PurlLookupResult) ProtoReflect() protoreflect.Message

func (*PurlLookupResult) Reset

func (x *PurlLookupResult) Reset()

func (*PurlLookupResult) String

func (x *PurlLookupResult) String() string

type QueryRequest

type QueryRequest struct {

	// A content hash for an artifact associated with a package version, such as a
	// JAR file. Currently supported for npm, Cargo, Maven, and NuGet. Note that
	// hashes and package versions have a many-to-many relationship.
	Hash *Hash `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
	// The name of the package version.
	VersionKey *VersionKey `protobuf:"bytes,2,opt,name=version_key,json=versionKey,proto3" json:"version_key,omitempty"`
	// contains filtered or unexported fields
}

QueryRequest identifies package versions for which to return information. At least one of its fields must be set, and both fields may be set to narrow the results.

func (*QueryRequest) Descriptor deprecated

func (*QueryRequest) Descriptor() ([]byte, []int)

Deprecated: Use QueryRequest.ProtoReflect.Descriptor instead.

func (*QueryRequest) GetHash

func (x *QueryRequest) GetHash() *Hash

func (*QueryRequest) GetVersionKey

func (x *QueryRequest) GetVersionKey() *VersionKey

func (*QueryRequest) ProtoMessage

func (*QueryRequest) ProtoMessage()

func (*QueryRequest) ProtoReflect

func (x *QueryRequest) ProtoReflect() protoreflect.Message

func (*QueryRequest) Reset

func (x *QueryRequest) Reset()

func (*QueryRequest) String

func (x *QueryRequest) String() string

type QueryResult

type QueryResult struct {

	// Package versions matching the query. At most 1000 versions are returned.
	Versions []*Version `protobuf:"bytes,1,rep,name=versions,proto3" json:"versions,omitempty"`
	// contains filtered or unexported fields
}

QueryResult holds information about package versions matching the query.

func (*QueryResult) Descriptor deprecated

func (*QueryResult) Descriptor() ([]byte, []int)

Deprecated: Use QueryResult.ProtoReflect.Descriptor instead.

func (*QueryResult) GetVersions

func (x *QueryResult) GetVersions() []*Version

func (*QueryResult) ProtoMessage

func (*QueryResult) ProtoMessage()

func (*QueryResult) ProtoReflect

func (x *QueryResult) ProtoReflect() protoreflect.Message

func (*QueryResult) Reset

func (x *QueryResult) Reset()

func (*QueryResult) String

func (x *QueryResult) String() string

type Requirements

type Requirements struct {

	// The NuGet-specific representation of the version's requirements.
	//
	// Note that the term "dependency" is used here to mean "a single unresolved
	// requirement" to be consistent with how the term is used in the NuGet
	// ecosystem. This is different to how it is used elsewhere in the deps.dev
	// API.
	Nuget *Requirements_NuGet `protobuf:"bytes,1,opt,name=nuget,proto3" json:"nuget,omitempty"`
	// The npm-specific representation of the version's requirements.
	//
	// Note that the term "dependency" is used here to mean "a single unresolved
	// requirement" to be consistent with how the term is used in the npm
	// ecosystem. This is different to how it is used elsewhere in the deps.dev
	// API.
	Npm *Requirements_NPM `protobuf:"bytes,2,opt,name=npm,proto3" json:"npm,omitempty"`
	// The Maven-specific representation of the version's requirements.
	//
	// Note that the term "dependency" is used here to mean "a single unresolved
	// requirement" to be consistent with how the term is used in the Maven
	// ecosystem. This is different to how it is used elsewhere in the deps.dev
	// API.
	//
	// This data is as it is declared in a version POM file. The data in parent
	// POMs are not merged.
	// Any string field may contain references to properties, and the properties
	// are not interpolated.
	Maven *Requirements_Maven `protobuf:"bytes,3,opt,name=maven,proto3" json:"maven,omitempty"`
	// contains filtered or unexported fields
}

Requirements contains a system-specific representation of the requirements specified by a package version. Only one of its fields will be set.

func (*Requirements) Descriptor deprecated

func (*Requirements) Descriptor() ([]byte, []int)

Deprecated: Use Requirements.ProtoReflect.Descriptor instead.

func (*Requirements) GetMaven

func (x *Requirements) GetMaven() *Requirements_Maven

func (*Requirements) GetNpm

func (x *Requirements) GetNpm() *Requirements_NPM

func (*Requirements) GetNuget

func (x *Requirements) GetNuget() *Requirements_NuGet

func (*Requirements) ProtoMessage

func (*Requirements) ProtoMessage()

func (*Requirements) ProtoReflect

func (x *Requirements) ProtoReflect() protoreflect.Message

func (*Requirements) Reset

func (x *Requirements) Reset()

func (*Requirements) String

func (x *Requirements) String() string

type Requirements_Maven

type Requirements_Maven struct {

	// The direct parent of a package version.
	Parent *VersionKey `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// The list of dependencies.
	Dependencies []*Requirements_Maven_Dependency `protobuf:"bytes,2,rep,name=dependencies,proto3" json:"dependencies,omitempty"`
	// The list of dependency management.
	// The format is the same as dependencies.
	DependencyManagement []*Requirements_Maven_Dependency `protobuf:"bytes,3,rep,name=dependency_management,json=dependencyManagement,proto3" json:"dependency_management,omitempty"`
	// The list of properties, used to resolve placeholders.
	Properties []*Requirements_Maven_Property `protobuf:"bytes,4,rep,name=properties,proto3" json:"properties,omitempty"`
	// The list of repositories.
	Repositories []*Requirements_Maven_Repository `protobuf:"bytes,5,rep,name=repositories,proto3" json:"repositories,omitempty"`
	// The list of profiles.
	Profiles []*Requirements_Maven_Profile `protobuf:"bytes,6,rep,name=profiles,proto3" json:"profiles,omitempty"`
	// contains filtered or unexported fields
}

func (*Requirements_Maven) Descriptor deprecated

func (*Requirements_Maven) Descriptor() ([]byte, []int)

Deprecated: Use Requirements_Maven.ProtoReflect.Descriptor instead.

func (*Requirements_Maven) GetDependencies

func (x *Requirements_Maven) GetDependencies() []*Requirements_Maven_Dependency

func (*Requirements_Maven) GetDependencyManagement

func (x *Requirements_Maven) GetDependencyManagement() []*Requirements_Maven_Dependency

func (*Requirements_Maven) GetParent

func (x *Requirements_Maven) GetParent() *VersionKey

func (*Requirements_Maven) GetProfiles

func (x *Requirements_Maven) GetProfiles() []*Requirements_Maven_Profile

func (*Requirements_Maven) GetProperties

func (x *Requirements_Maven) GetProperties() []*Requirements_Maven_Property

func (*Requirements_Maven) GetRepositories

func (x *Requirements_Maven) GetRepositories() []*Requirements_Maven_Repository

func (*Requirements_Maven) ProtoMessage

func (*Requirements_Maven) ProtoMessage()

func (*Requirements_Maven) ProtoReflect

func (x *Requirements_Maven) ProtoReflect() protoreflect.Message

func (*Requirements_Maven) Reset

func (x *Requirements_Maven) Reset()

func (*Requirements_Maven) String

func (x *Requirements_Maven) String() string

type Requirements_Maven_Dependency

type Requirements_Maven_Dependency struct {

	// The name of the package.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The version requirement of the dependency.
	Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
	// The classifier of the dependency, which distinguishes artifacts that
	// differ in content.
	Classifier string `protobuf:"bytes,3,opt,name=classifier,proto3" json:"classifier,omitempty"`
	// The type of the dependency, defaults to jar.
	Type string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"`
	// The scope of the dependency, specifies how to limit the transitivity
	// of a dependency.
	Scope string `protobuf:"bytes,5,opt,name=scope,proto3" json:"scope,omitempty"`
	// Whether the dependency is optional or not.
	Optional string `protobuf:"bytes,6,opt,name=optional,proto3" json:"optional,omitempty"`
	// The dependencies to be excluded, in the form of a list of package
	// names.
	// Exclusions may contain wildcards in both groupID and artifactID.
	Exclusions []string `protobuf:"bytes,7,rep,name=exclusions,proto3" json:"exclusions,omitempty"`
	// contains filtered or unexported fields
}

func (*Requirements_Maven_Dependency) Descriptor deprecated

func (*Requirements_Maven_Dependency) Descriptor() ([]byte, []int)

Deprecated: Use Requirements_Maven_Dependency.ProtoReflect.Descriptor instead.

func (*Requirements_Maven_Dependency) GetClassifier

func (x *Requirements_Maven_Dependency) GetClassifier() string

func (*Requirements_Maven_Dependency) GetExclusions

func (x *Requirements_Maven_Dependency) GetExclusions() []string

func (*Requirements_Maven_Dependency) GetName

func (*Requirements_Maven_Dependency) GetOptional

func (x *Requirements_Maven_Dependency) GetOptional() string

func (*Requirements_Maven_Dependency) GetScope

func (x *Requirements_Maven_Dependency) GetScope() string

func (*Requirements_Maven_Dependency) GetType

func (*Requirements_Maven_Dependency) GetVersion

func (x *Requirements_Maven_Dependency) GetVersion() string

func (*Requirements_Maven_Dependency) ProtoMessage

func (*Requirements_Maven_Dependency) ProtoMessage()

func (*Requirements_Maven_Dependency) ProtoReflect

func (*Requirements_Maven_Dependency) Reset

func (x *Requirements_Maven_Dependency) Reset()

func (*Requirements_Maven_Dependency) String

type Requirements_Maven_Profile

type Requirements_Maven_Profile struct {

	// The ID of the profile.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// The activation requirement of the profile.
	Activation *Requirements_Maven_Profile_Activation `protobuf:"bytes,2,opt,name=activation,proto3" json:"activation,omitempty"`
	// The dependencies specified in the profile.
	Dependencies []*Requirements_Maven_Dependency `protobuf:"bytes,3,rep,name=dependencies,proto3" json:"dependencies,omitempty"`
	// The dependency management specified in the profile.
	DependencyManagement []*Requirements_Maven_Dependency `protobuf:"bytes,4,rep,name=dependency_management,json=dependencyManagement,proto3" json:"dependency_management,omitempty"`
	// The properties specified in the profile.
	Properties []*Requirements_Maven_Property `protobuf:"bytes,5,rep,name=properties,proto3" json:"properties,omitempty"`
	// The repositories specified in the profile.
	Repositories []*Requirements_Maven_Repository `protobuf:"bytes,6,rep,name=repositories,proto3" json:"repositories,omitempty"`
	// contains filtered or unexported fields
}

func (*Requirements_Maven_Profile) Descriptor deprecated

func (*Requirements_Maven_Profile) Descriptor() ([]byte, []int)

Deprecated: Use Requirements_Maven_Profile.ProtoReflect.Descriptor instead.

func (*Requirements_Maven_Profile) GetActivation

func (*Requirements_Maven_Profile) GetDependencies

func (*Requirements_Maven_Profile) GetDependencyManagement

func (x *Requirements_Maven_Profile) GetDependencyManagement() []*Requirements_Maven_Dependency

func (*Requirements_Maven_Profile) GetId

func (*Requirements_Maven_Profile) GetProperties

func (*Requirements_Maven_Profile) GetRepositories

func (*Requirements_Maven_Profile) ProtoMessage

func (*Requirements_Maven_Profile) ProtoMessage()

func (*Requirements_Maven_Profile) ProtoReflect

func (*Requirements_Maven_Profile) Reset

func (x *Requirements_Maven_Profile) Reset()

func (*Requirements_Maven_Profile) String

func (x *Requirements_Maven_Profile) String() string

type Requirements_Maven_Profile_Activation

type Requirements_Maven_Profile_Activation struct {

	// Whether the profile is active by default.
	ActiveByDefault string `protobuf:"bytes,1,opt,name=active_by_default,json=activeByDefault,proto3" json:"active_by_default,omitempty"`
	// The JDK requirement of the activation.
	Jdk *Requirements_Maven_Profile_Activation_JDK `protobuf:"bytes,2,opt,name=jdk,proto3" json:"jdk,omitempty"`
	// The operating system requirement of the activation.
	Os *Requirements_Maven_Profile_Activation_OS `protobuf:"bytes,3,opt,name=os,proto3" json:"os,omitempty"`
	// The property requirement of the activation.
	Property *Requirements_Maven_Profile_Activation_Property `protobuf:"bytes,4,opt,name=property,proto3" json:"property,omitempty"`
	// The file requirement of the activation.
	File *Requirements_Maven_Profile_Activation_File `protobuf:"bytes,5,opt,name=file,proto3" json:"file,omitempty"`
	// contains filtered or unexported fields
}

func (*Requirements_Maven_Profile_Activation) Descriptor deprecated

func (*Requirements_Maven_Profile_Activation) Descriptor() ([]byte, []int)

Deprecated: Use Requirements_Maven_Profile_Activation.ProtoReflect.Descriptor instead.

func (*Requirements_Maven_Profile_Activation) GetActiveByDefault

func (x *Requirements_Maven_Profile_Activation) GetActiveByDefault() string

func (*Requirements_Maven_Profile_Activation) GetFile

func (*Requirements_Maven_Profile_Activation) GetJdk

func (*Requirements_Maven_Profile_Activation) GetOs

func (*Requirements_Maven_Profile_Activation) GetProperty

func (*Requirements_Maven_Profile_Activation) ProtoMessage

func (*Requirements_Maven_Profile_Activation) ProtoMessage()

func (*Requirements_Maven_Profile_Activation) ProtoReflect

func (*Requirements_Maven_Profile_Activation) Reset

func (*Requirements_Maven_Profile_Activation) String

type Requirements_Maven_Profile_Activation_File

type Requirements_Maven_Profile_Activation_File struct {

	// The name of the file that its existence activates the profile.
	Exists string `protobuf:"bytes,1,opt,name=exists,proto3" json:"exists,omitempty"`
	// The name of the file, activate the profile if the file is missing.
	Missing string `protobuf:"bytes,2,opt,name=missing,proto3" json:"missing,omitempty"`
	// contains filtered or unexported fields
}

func (*Requirements_Maven_Profile_Activation_File) Descriptor deprecated

Deprecated: Use Requirements_Maven_Profile_Activation_File.ProtoReflect.Descriptor instead.

func (*Requirements_Maven_Profile_Activation_File) GetExists

func (*Requirements_Maven_Profile_Activation_File) GetMissing

func (*Requirements_Maven_Profile_Activation_File) ProtoMessage

func (*Requirements_Maven_Profile_Activation_File) ProtoReflect

func (*Requirements_Maven_Profile_Activation_File) Reset

func (*Requirements_Maven_Profile_Activation_File) String

type Requirements_Maven_Profile_Activation_JDK

type Requirements_Maven_Profile_Activation_JDK struct {

	// The JDK requirement to activate the profile.
	Jdk string `protobuf:"bytes,1,opt,name=jdk,proto3" json:"jdk,omitempty"`
	// contains filtered or unexported fields
}

func (*Requirements_Maven_Profile_Activation_JDK) Descriptor deprecated

func (*Requirements_Maven_Profile_Activation_JDK) Descriptor() ([]byte, []int)

Deprecated: Use Requirements_Maven_Profile_Activation_JDK.ProtoReflect.Descriptor instead.

func (*Requirements_Maven_Profile_Activation_JDK) GetJdk

func (*Requirements_Maven_Profile_Activation_JDK) ProtoMessage

func (*Requirements_Maven_Profile_Activation_JDK) ProtoReflect

func (*Requirements_Maven_Profile_Activation_JDK) Reset

func (*Requirements_Maven_Profile_Activation_JDK) String

type Requirements_Maven_Profile_Activation_OS

type Requirements_Maven_Profile_Activation_OS struct {

	// The name of the operating system.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The family of the operating system.
	Family string `protobuf:"bytes,2,opt,name=family,proto3" json:"family,omitempty"`
	// The CPU architecture of the operating system,
	Arch string `protobuf:"bytes,3,opt,name=arch,proto3" json:"arch,omitempty"`
	// The version of the operating system.
	Version string `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"`
	// contains filtered or unexported fields
}

func (*Requirements_Maven_Profile_Activation_OS) Descriptor deprecated

func (*Requirements_Maven_Profile_Activation_OS) Descriptor() ([]byte, []int)

Deprecated: Use Requirements_Maven_Profile_Activation_OS.ProtoReflect.Descriptor instead.

func (*Requirements_Maven_Profile_Activation_OS) GetArch

func (*Requirements_Maven_Profile_Activation_OS) GetFamily

func (*Requirements_Maven_Profile_Activation_OS) GetName

func (*Requirements_Maven_Profile_Activation_OS) GetVersion

func (*Requirements_Maven_Profile_Activation_OS) ProtoMessage

func (*Requirements_Maven_Profile_Activation_OS) ProtoReflect

func (*Requirements_Maven_Profile_Activation_OS) Reset

func (*Requirements_Maven_Profile_Activation_OS) String

type Requirements_Maven_Profile_Activation_Property

type Requirements_Maven_Profile_Activation_Property struct {

	// The property requirement to activate the profile.
	// This can be a system property or CLI user property.
	Property *Requirements_Maven_Property `protobuf:"bytes,1,opt,name=property,proto3" json:"property,omitempty"`
	// contains filtered or unexported fields
}

func (*Requirements_Maven_Profile_Activation_Property) Descriptor deprecated

Deprecated: Use Requirements_Maven_Profile_Activation_Property.ProtoReflect.Descriptor instead.

func (*Requirements_Maven_Profile_Activation_Property) GetProperty

func (*Requirements_Maven_Profile_Activation_Property) ProtoMessage

func (*Requirements_Maven_Profile_Activation_Property) ProtoReflect

func (*Requirements_Maven_Profile_Activation_Property) Reset

func (*Requirements_Maven_Profile_Activation_Property) String

type Requirements_Maven_Property

type Requirements_Maven_Property struct {

	// The name of the property.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The value of the property.
	Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*Requirements_Maven_Property) Descriptor deprecated

func (*Requirements_Maven_Property) Descriptor() ([]byte, []int)

Deprecated: Use Requirements_Maven_Property.ProtoReflect.Descriptor instead.

func (*Requirements_Maven_Property) GetName

func (x *Requirements_Maven_Property) GetName() string

func (*Requirements_Maven_Property) GetValue

func (x *Requirements_Maven_Property) GetValue() string

func (*Requirements_Maven_Property) ProtoMessage

func (*Requirements_Maven_Property) ProtoMessage()

func (*Requirements_Maven_Property) ProtoReflect

func (*Requirements_Maven_Property) Reset

func (x *Requirements_Maven_Property) Reset()

func (*Requirements_Maven_Property) String

func (x *Requirements_Maven_Property) String() string

type Requirements_Maven_Repository

type Requirements_Maven_Repository struct {

	// The ID of the repository.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// The URL of the repository.
	Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
	// Whether the description of the repository follows a common layout.
	Layout string `protobuf:"bytes,3,opt,name=layout,proto3" json:"layout,omitempty"`
	// Whether the repository is enabled for release downloads.
	ReleasesEnabled string `protobuf:"bytes,4,opt,name=releases_enabled,json=releasesEnabled,proto3" json:"releases_enabled,omitempty"`
	// Whether the repository is enabled for snapshot downloads.
	SnapshotsEnabled string `protobuf:"bytes,5,opt,name=snapshots_enabled,json=snapshotsEnabled,proto3" json:"snapshots_enabled,omitempty"`
	// contains filtered or unexported fields
}

func (*Requirements_Maven_Repository) Descriptor deprecated

func (*Requirements_Maven_Repository) Descriptor() ([]byte, []int)

Deprecated: Use Requirements_Maven_Repository.ProtoReflect.Descriptor instead.

func (*Requirements_Maven_Repository) GetId

func (*Requirements_Maven_Repository) GetLayout

func (x *Requirements_Maven_Repository) GetLayout() string

func (*Requirements_Maven_Repository) GetReleasesEnabled

func (x *Requirements_Maven_Repository) GetReleasesEnabled() string

func (*Requirements_Maven_Repository) GetSnapshotsEnabled

func (x *Requirements_Maven_Repository) GetSnapshotsEnabled() string

func (*Requirements_Maven_Repository) GetUrl

func (*Requirements_Maven_Repository) ProtoMessage

func (*Requirements_Maven_Repository) ProtoMessage()

func (*Requirements_Maven_Repository) ProtoReflect

func (*Requirements_Maven_Repository) Reset

func (x *Requirements_Maven_Repository) Reset()

func (*Requirements_Maven_Repository) String

type Requirements_NPM

type Requirements_NPM struct {

	// The dependency-related fields declared in the requested package version's
	// package.json.
	Dependencies *Requirements_NPM_Dependencies `protobuf:"bytes,1,opt,name=dependencies,proto3" json:"dependencies,omitempty"`
	// Contents of any additional package.json files found inside the
	// "node_modules" folder of the version's tarball, including nested
	// "node_modules".
	Bundled []*Requirements_NPM_Bundle `protobuf:"bytes,2,rep,name=bundled,proto3" json:"bundled,omitempty"`
	// contains filtered or unexported fields
}

func (*Requirements_NPM) Descriptor deprecated

func (*Requirements_NPM) Descriptor() ([]byte, []int)

Deprecated: Use Requirements_NPM.ProtoReflect.Descriptor instead.

func (*Requirements_NPM) GetBundled

func (x *Requirements_NPM) GetBundled() []*Requirements_NPM_Bundle

func (*Requirements_NPM) GetDependencies

func (x *Requirements_NPM) GetDependencies() *Requirements_NPM_Dependencies

func (*Requirements_NPM) ProtoMessage

func (*Requirements_NPM) ProtoMessage()

func (*Requirements_NPM) ProtoReflect

func (x *Requirements_NPM) ProtoReflect() protoreflect.Message

func (*Requirements_NPM) Reset

func (x *Requirements_NPM) Reset()

func (*Requirements_NPM) String

func (x *Requirements_NPM) String() string

type Requirements_NPM_Bundle

type Requirements_NPM_Bundle struct {

	// The path inside the tarball where this dependency was found.
	Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	// The name of the bundled package, as declared inside the bundled
	// package.json.
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// The version of this package, as declared inside the bundled
	// package.json.
	Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"`
	// The dependency-related fields from the bundled package.json.
	Dependencies *Requirements_NPM_Dependencies `protobuf:"bytes,4,opt,name=dependencies,proto3" json:"dependencies,omitempty"`
	// contains filtered or unexported fields
}

func (*Requirements_NPM_Bundle) Descriptor deprecated

func (*Requirements_NPM_Bundle) Descriptor() ([]byte, []int)

Deprecated: Use Requirements_NPM_Bundle.ProtoReflect.Descriptor instead.

func (*Requirements_NPM_Bundle) GetDependencies

func (*Requirements_NPM_Bundle) GetName

func (x *Requirements_NPM_Bundle) GetName() string

func (*Requirements_NPM_Bundle) GetPath

func (x *Requirements_NPM_Bundle) GetPath() string

func (*Requirements_NPM_Bundle) GetVersion

func (x *Requirements_NPM_Bundle) GetVersion() string

func (*Requirements_NPM_Bundle) ProtoMessage

func (*Requirements_NPM_Bundle) ProtoMessage()

func (*Requirements_NPM_Bundle) ProtoReflect

func (x *Requirements_NPM_Bundle) ProtoReflect() protoreflect.Message

func (*Requirements_NPM_Bundle) Reset

func (x *Requirements_NPM_Bundle) Reset()

func (*Requirements_NPM_Bundle) String

func (x *Requirements_NPM_Bundle) String() string

type Requirements_NPM_Dependencies

type Requirements_NPM_Dependencies struct {

	// The "dependencies" field of a package.json, represented as a list of
	// name, requirement pairs.
	Dependencies []*Requirements_NPM_Dependencies_Dependency `protobuf:"bytes,1,rep,name=dependencies,proto3" json:"dependencies,omitempty"`
	// The "devDependencies" field of a package.json. The format is the
	// same as "dependencies".
	DevDependencies []*Requirements_NPM_Dependencies_Dependency `protobuf:"bytes,2,rep,name=dev_dependencies,json=devDependencies,proto3" json:"dev_dependencies,omitempty"`
	// The "optionalDependencies" field of a package.json. The format is
	// the same as "dependencies".
	OptionalDependencies []*Requirements_NPM_Dependencies_Dependency `protobuf:"bytes,3,rep,name=optional_dependencies,json=optionalDependencies,proto3" json:"optional_dependencies,omitempty"`
	// The "peerDependencies" field of a package.json. The format is the
	// same as "dependencies".
	PeerDependencies []*Requirements_NPM_Dependencies_Dependency `protobuf:"bytes,4,rep,name=peer_dependencies,json=peerDependencies,proto3" json:"peer_dependencies,omitempty"`
	// The "bundleDependencies" field of a package.json: a list of package
	// names. In the package.json this may also just be the boolean value
	// "true", in which case this field will contain the names of all the
	// dependencies from the "dependencies" field.
	BundleDependencies []string `protobuf:"bytes,5,rep,name=bundle_dependencies,json=bundleDependencies,proto3" json:"bundle_dependencies,omitempty"`
	// contains filtered or unexported fields
}

func (*Requirements_NPM_Dependencies) Descriptor deprecated

func (*Requirements_NPM_Dependencies) Descriptor() ([]byte, []int)

Deprecated: Use Requirements_NPM_Dependencies.ProtoReflect.Descriptor instead.

func (*Requirements_NPM_Dependencies) GetBundleDependencies

func (x *Requirements_NPM_Dependencies) GetBundleDependencies() []string

func (*Requirements_NPM_Dependencies) GetDependencies

func (*Requirements_NPM_Dependencies) GetDevDependencies

func (*Requirements_NPM_Dependencies) GetOptionalDependencies

func (*Requirements_NPM_Dependencies) GetPeerDependencies

func (*Requirements_NPM_Dependencies) ProtoMessage

func (*Requirements_NPM_Dependencies) ProtoMessage()

func (*Requirements_NPM_Dependencies) ProtoReflect

func (*Requirements_NPM_Dependencies) Reset

func (x *Requirements_NPM_Dependencies) Reset()

func (*Requirements_NPM_Dependencies) String

type Requirements_NPM_Dependencies_Dependency

type Requirements_NPM_Dependencies_Dependency struct {

	// The name of the package, the key in the original object.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The requirement, the corresponding value from the original object.
	Requirement string `protobuf:"bytes,2,opt,name=requirement,proto3" json:"requirement,omitempty"`
	// contains filtered or unexported fields
}

func (*Requirements_NPM_Dependencies_Dependency) Descriptor deprecated

func (*Requirements_NPM_Dependencies_Dependency) Descriptor() ([]byte, []int)

Deprecated: Use Requirements_NPM_Dependencies_Dependency.ProtoReflect.Descriptor instead.

func (*Requirements_NPM_Dependencies_Dependency) GetName

func (*Requirements_NPM_Dependencies_Dependency) GetRequirement

func (*Requirements_NPM_Dependencies_Dependency) ProtoMessage

func (*Requirements_NPM_Dependencies_Dependency) ProtoReflect

func (*Requirements_NPM_Dependencies_Dependency) Reset

func (*Requirements_NPM_Dependencies_Dependency) String

type Requirements_NuGet

type Requirements_NuGet struct {

	// The requirements grouped by target framework.
	DependencyGroups []*Requirements_NuGet_DependencyGroup `protobuf:"bytes,1,rep,name=dependency_groups,json=dependencyGroups,proto3" json:"dependency_groups,omitempty"`
	// contains filtered or unexported fields
}

func (*Requirements_NuGet) Descriptor deprecated

func (*Requirements_NuGet) Descriptor() ([]byte, []int)

Deprecated: Use Requirements_NuGet.ProtoReflect.Descriptor instead.

func (*Requirements_NuGet) GetDependencyGroups

func (x *Requirements_NuGet) GetDependencyGroups() []*Requirements_NuGet_DependencyGroup

func (*Requirements_NuGet) ProtoMessage

func (*Requirements_NuGet) ProtoMessage()

func (*Requirements_NuGet) ProtoReflect

func (x *Requirements_NuGet) ProtoReflect() protoreflect.Message

func (*Requirements_NuGet) Reset

func (x *Requirements_NuGet) Reset()

func (*Requirements_NuGet) String

func (x *Requirements_NuGet) String() string

type Requirements_NuGet_DependencyGroup

type Requirements_NuGet_DependencyGroup struct {

	// The target framework that this dependency group is for.
	TargetFramework string `protobuf:"bytes,1,opt,name=target_framework,json=targetFramework,proto3" json:"target_framework,omitempty"`
	// The requirements belonging to this dependency group.
	Dependencies []*Requirements_NuGet_DependencyGroup_Dependency `protobuf:"bytes,2,rep,name=dependencies,proto3" json:"dependencies,omitempty"`
	// contains filtered or unexported fields
}

func (*Requirements_NuGet_DependencyGroup) Descriptor deprecated

func (*Requirements_NuGet_DependencyGroup) Descriptor() ([]byte, []int)

Deprecated: Use Requirements_NuGet_DependencyGroup.ProtoReflect.Descriptor instead.

func (*Requirements_NuGet_DependencyGroup) GetDependencies

func (*Requirements_NuGet_DependencyGroup) GetTargetFramework

func (x *Requirements_NuGet_DependencyGroup) GetTargetFramework() string

func (*Requirements_NuGet_DependencyGroup) ProtoMessage

func (*Requirements_NuGet_DependencyGroup) ProtoMessage()

func (*Requirements_NuGet_DependencyGroup) ProtoReflect

func (*Requirements_NuGet_DependencyGroup) Reset

func (*Requirements_NuGet_DependencyGroup) String

type Requirements_NuGet_DependencyGroup_Dependency

type Requirements_NuGet_DependencyGroup_Dependency struct {

	// The name of the package.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The requirement on the package.
	Requirement string `protobuf:"bytes,2,opt,name=requirement,proto3" json:"requirement,omitempty"`
	// contains filtered or unexported fields
}

func (*Requirements_NuGet_DependencyGroup_Dependency) Descriptor deprecated

Deprecated: Use Requirements_NuGet_DependencyGroup_Dependency.ProtoReflect.Descriptor instead.

func (*Requirements_NuGet_DependencyGroup_Dependency) GetName

func (*Requirements_NuGet_DependencyGroup_Dependency) GetRequirement

func (*Requirements_NuGet_DependencyGroup_Dependency) ProtoMessage

func (*Requirements_NuGet_DependencyGroup_Dependency) ProtoReflect

func (*Requirements_NuGet_DependencyGroup_Dependency) Reset

func (*Requirements_NuGet_DependencyGroup_Dependency) String

type SLSAProvenance

type SLSAProvenance struct {

	// The source code repository used to build the version.
	SourceRepository string `protobuf:"bytes,1,opt,name=source_repository,json=sourceRepository,proto3" json:"source_repository,omitempty"`
	// The commit of the source code repository the version was built from.
	Commit string `protobuf:"bytes,2,opt,name=commit,proto3" json:"commit,omitempty"`
	// The URL of the provenance statement if there is one.
	Url string `protobuf:"bytes,3,opt,name=url,proto3" json:"url,omitempty"`
	// The Sigstore bundle containing this attestation was verified using the
	// [sigstore-go](https://github.com/sigstore/sigstore-go) library.
	Verified bool `protobuf:"varint,4,opt,name=verified,proto3" json:"verified,omitempty"`
	// contains filtered or unexported fields
}

SLSAProvenance contains provenance information extracted from a SLSA provenance statement.

func (*SLSAProvenance) Descriptor deprecated

func (*SLSAProvenance) Descriptor() ([]byte, []int)

Deprecated: Use SLSAProvenance.ProtoReflect.Descriptor instead.

func (*SLSAProvenance) GetCommit

func (x *SLSAProvenance) GetCommit() string

func (*SLSAProvenance) GetSourceRepository

func (x *SLSAProvenance) GetSourceRepository() string

func (*SLSAProvenance) GetUrl

func (x *SLSAProvenance) GetUrl() string

func (*SLSAProvenance) GetVerified

func (x *SLSAProvenance) GetVerified() bool

func (*SLSAProvenance) ProtoMessage

func (*SLSAProvenance) ProtoMessage()

func (*SLSAProvenance) ProtoReflect

func (x *SLSAProvenance) ProtoReflect() protoreflect.Message

func (*SLSAProvenance) Reset

func (x *SLSAProvenance) Reset()

func (*SLSAProvenance) String

func (x *SLSAProvenance) String() string

type SimilarlyNamedPackages

type SimilarlyNamedPackages struct {

	// The name of the package. Note that the package name may differ from the
	// name in the request, due to canonicalization.
	PackageKey *PackageKey `protobuf:"bytes,1,opt,name=package_key,json=packageKey,proto3" json:"package_key,omitempty"`
	// Packages with names that deps.dev has calculated are similar to the name
	// of the requested package. Note that this is not necessarily a symmetric
	// relation, as we take into account popularity when calculating similar
	// names.
	Packages []*SimilarlyNamedPackages_Package `protobuf:"bytes,2,rep,name=packages,proto3" json:"packages,omitempty"`
	// contains filtered or unexported fields
}

SimilarlyNamedPackages contains packages with similar names.

func (*SimilarlyNamedPackages) Descriptor deprecated

func (*SimilarlyNamedPackages) Descriptor() ([]byte, []int)

Deprecated: Use SimilarlyNamedPackages.ProtoReflect.Descriptor instead.

func (*SimilarlyNamedPackages) GetPackageKey

func (x *SimilarlyNamedPackages) GetPackageKey() *PackageKey

func (*SimilarlyNamedPackages) GetPackages

func (*SimilarlyNamedPackages) ProtoMessage

func (*SimilarlyNamedPackages) ProtoMessage()

func (*SimilarlyNamedPackages) ProtoReflect

func (x *SimilarlyNamedPackages) ProtoReflect() protoreflect.Message

func (*SimilarlyNamedPackages) Reset

func (x *SimilarlyNamedPackages) Reset()

func (*SimilarlyNamedPackages) String

func (x *SimilarlyNamedPackages) String() string

type SimilarlyNamedPackages_Package

type SimilarlyNamedPackages_Package struct {

	// A package with a name similar to the requested package.
	PackageKey *PackageKey `protobuf:"bytes,1,opt,name=package_key,json=packageKey,proto3" json:"package_key,omitempty"`
	// contains filtered or unexported fields
}

func (*SimilarlyNamedPackages_Package) Descriptor deprecated

func (*SimilarlyNamedPackages_Package) Descriptor() ([]byte, []int)

Deprecated: Use SimilarlyNamedPackages_Package.ProtoReflect.Descriptor instead.

func (*SimilarlyNamedPackages_Package) GetPackageKey

func (x *SimilarlyNamedPackages_Package) GetPackageKey() *PackageKey

func (*SimilarlyNamedPackages_Package) ProtoMessage

func (*SimilarlyNamedPackages_Package) ProtoMessage()

func (*SimilarlyNamedPackages_Package) ProtoReflect

func (*SimilarlyNamedPackages_Package) Reset

func (x *SimilarlyNamedPackages_Package) Reset()

func (*SimilarlyNamedPackages_Package) String

type System

type System int32

System identifies a package management system.

const (
	System_SYSTEM_UNSPECIFIED System = 0
	System_GO                 System = 1
	System_NPM                System = 3
	System_CARGO              System = 4
	System_MAVEN              System = 6
	System_PYPI               System = 7
	System_NUGET              System = 8
)

func (System) Descriptor

func (System) Descriptor() protoreflect.EnumDescriptor

func (System) Enum

func (x System) Enum() *System

func (System) EnumDescriptor deprecated

func (System) EnumDescriptor() ([]byte, []int)

Deprecated: Use System.Descriptor instead.

func (System) Number

func (x System) Number() protoreflect.EnumNumber

func (System) String

func (x System) String() string

func (System) Type

func (System) Type() protoreflect.EnumType

type UnimplementedInsightsServer

type UnimplementedInsightsServer struct {
}

UnimplementedInsightsServer must be embedded to have forward compatible implementations.

func (UnimplementedInsightsServer) GetAdvisory

func (UnimplementedInsightsServer) GetDependencies

func (UnimplementedInsightsServer) GetPackage

func (UnimplementedInsightsServer) GetProject

func (UnimplementedInsightsServer) GetProjectBatch

func (UnimplementedInsightsServer) GetRequirements

func (UnimplementedInsightsServer) GetVersion

func (UnimplementedInsightsServer) GetVersionBatch

func (UnimplementedInsightsServer) PurlLookup

func (UnimplementedInsightsServer) PurlLookupBatch

func (UnimplementedInsightsServer) Query

type UnsafeInsightsServer

type UnsafeInsightsServer interface {
	// contains filtered or unexported methods
}

UnsafeInsightsServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to InsightsServer will result in compilation errors.

type Version

type Version struct {

	// The name of the package version. Note that the package and version name
	// may differ from names specified in requests, if applicable, due to
	// canonicalization.
	VersionKey *VersionKey `protobuf:"bytes,1,opt,name=version_key,json=versionKey,proto3" json:"version_key,omitempty"`
	// The purl that identifies this package version.
	// Note that the package and version name in the purl may differ from the
	// names specified in the request, if applicable, due to canonicalization.
	Purl string `protobuf:"bytes,9,opt,name=purl,proto3" json:"purl,omitempty"`
	// The time when this package version was published, if available, as
	// reported by the package management authority.
	PublishedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=published_at,json=publishedAt,proto3" json:"published_at,omitempty"`
	// If true, this is the default version of the package: the version that is
	// installed when no version is specified. The precise meaning of this is
	// system-specific, but it is commonly the version with the greatest version
	// number, ignoring pre-release versions.
	IsDefault bool `protobuf:"varint,2,opt,name=is_default,json=isDefault,proto3" json:"is_default,omitempty"`
	// The licenses governing the use of this package version.
	//
	// We identify licenses as
	// [SPDX 2.1](https://spdx.dev/spdx-specification-21-web-version/)
	// expressions. When there is no associated SPDX identifier, we identify a
	// license as "non-standard". When we are unable to obtain license
	// information, this field is empty. When more than one license is listed,
	// their relationship is unspecified.
	//
	// For Cargo, Maven, npm, and PyPI, license information is read from the
	// package metadata. For Go, license information is determined using the
	// [licensecheck](https://github.com/google/licensecheck) package.
	//
	// License information is not intended to be legal advice, and you should
	// independently verify the license or terms of any software for your own
	// needs.
	Licenses []string `protobuf:"bytes,3,rep,name=licenses,proto3" json:"licenses,omitempty"`
	// Security advisories known to affect this package version.
	// Further information can be requested using the Advisory method.
	AdvisoryKeys []*AdvisoryKey `protobuf:"bytes,4,rep,name=advisory_keys,json=advisoryKeys,proto3" json:"advisory_keys,omitempty"`
	// Links declared by or derived from package version metadata, to external
	// web resources such as a homepage or source code repository. Note that
	// these links are not verified for correctness.
	Links []*Link `protobuf:"bytes,5,rep,name=links,proto3" json:"links,omitempty"`
	// SLSA provenances for this version if they are available.
	SlsaProvenances []*SLSAProvenance `protobuf:"bytes,7,rep,name=slsa_provenances,json=slsaProvenances,proto3" json:"slsa_provenances,omitempty"`
	// URLs for the package management registries this package version is
	// available from.
	// Only set for systems that use a central repository for package
	// distribution: Cargo, Maven, npm, NuGet, and PyPI.
	Registries []string `protobuf:"bytes,8,rep,name=registries,proto3" json:"registries,omitempty"`
	// Projects that are related to this package version.
	RelatedProjects []*Version_Project `protobuf:"bytes,10,rep,name=related_projects,json=relatedProjects,proto3" json:"related_projects,omitempty"`
	// contains filtered or unexported fields
}

Version holds information about a package version.

func (*Version) Descriptor deprecated

func (*Version) Descriptor() ([]byte, []int)

Deprecated: Use Version.ProtoReflect.Descriptor instead.

func (*Version) GetAdvisoryKeys

func (x *Version) GetAdvisoryKeys() []*AdvisoryKey

func (*Version) GetIsDefault

func (x *Version) GetIsDefault() bool

func (*Version) GetLicenses

func (x *Version) GetLicenses() []string
func (x *Version) GetLinks() []*Link

func (*Version) GetPublishedAt

func (x *Version) GetPublishedAt() *timestamppb.Timestamp

func (*Version) GetPurl

func (x *Version) GetPurl() string

func (*Version) GetRegistries

func (x *Version) GetRegistries() []string

func (*Version) GetRelatedProjects

func (x *Version) GetRelatedProjects() []*Version_Project

func (*Version) GetSlsaProvenances

func (x *Version) GetSlsaProvenances() []*SLSAProvenance

func (*Version) GetVersionKey

func (x *Version) GetVersionKey() *VersionKey

func (*Version) ProtoMessage

func (*Version) ProtoMessage()

func (*Version) ProtoReflect

func (x *Version) ProtoReflect() protoreflect.Message

func (*Version) Reset

func (x *Version) Reset()

func (*Version) String

func (x *Version) String() string

type VersionBatch

type VersionBatch struct {

	// The Version information for this page.
	Responses []*VersionBatch_Response `protobuf:"bytes,1,rep,name=responses,proto3" json:"responses,omitempty"`
	// If set, this batch is not the full result set. This page token
	// may be used to fetch more results in a subsequent request.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

VersionBatch contains a batch of version information. If there is more version information to be returned, a page token is included in the response.

func (*VersionBatch) Descriptor deprecated

func (*VersionBatch) Descriptor() ([]byte, []int)

Deprecated: Use VersionBatch.ProtoReflect.Descriptor instead.

func (*VersionBatch) GetNextPageToken

func (x *VersionBatch) GetNextPageToken() string

func (*VersionBatch) GetResponses

func (x *VersionBatch) GetResponses() []*VersionBatch_Response

func (*VersionBatch) ProtoMessage

func (*VersionBatch) ProtoMessage()

func (*VersionBatch) ProtoReflect

func (x *VersionBatch) ProtoReflect() protoreflect.Message

func (*VersionBatch) Reset

func (x *VersionBatch) Reset()

func (*VersionBatch) String

func (x *VersionBatch) String() string

type VersionBatch_Response

type VersionBatch_Response struct {

	// The uncanonicalized request.
	Request *GetVersionRequest `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"`
	// The version information for the request. If the version was not found,
	// this field is empty.
	Version *Version `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
	// contains filtered or unexported fields
}

func (*VersionBatch_Response) Descriptor deprecated

func (*VersionBatch_Response) Descriptor() ([]byte, []int)

Deprecated: Use VersionBatch_Response.ProtoReflect.Descriptor instead.

func (*VersionBatch_Response) GetRequest

func (x *VersionBatch_Response) GetRequest() *GetVersionRequest

func (*VersionBatch_Response) GetVersion

func (x *VersionBatch_Response) GetVersion() *Version

func (*VersionBatch_Response) ProtoMessage

func (*VersionBatch_Response) ProtoMessage()

func (*VersionBatch_Response) ProtoReflect

func (x *VersionBatch_Response) ProtoReflect() protoreflect.Message

func (*VersionBatch_Response) Reset

func (x *VersionBatch_Response) Reset()

func (*VersionBatch_Response) String

func (x *VersionBatch_Response) String() string

type VersionKey

type VersionKey struct {

	// The package management system containing the package.
	System System `protobuf:"varint,1,opt,name=system,proto3,enum=deps_dev.v3alpha.System" json:"system,omitempty"`
	// The name of the package.
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// The version of the package.
	Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"`
	// contains filtered or unexported fields
}

VersionKey identifies a package version by name.

func (*VersionKey) Descriptor deprecated

func (*VersionKey) Descriptor() ([]byte, []int)

Deprecated: Use VersionKey.ProtoReflect.Descriptor instead.

func (*VersionKey) GetName

func (x *VersionKey) GetName() string

func (*VersionKey) GetSystem

func (x *VersionKey) GetSystem() System

func (*VersionKey) GetVersion

func (x *VersionKey) GetVersion() string

func (*VersionKey) ProtoMessage

func (*VersionKey) ProtoMessage()

func (*VersionKey) ProtoReflect

func (x *VersionKey) ProtoReflect() protoreflect.Message

func (*VersionKey) Reset

func (x *VersionKey) Reset()

func (*VersionKey) String

func (x *VersionKey) String() string

type Version_Project

type Version_Project struct {

	// The identifier for the project.
	ProjectKey *ProjectKey `protobuf:"bytes,1,opt,name=project_key,json=projectKey,proto3" json:"project_key,omitempty"`
	// How the mapping between project and package version was discovered.
	RelationProvenance ProjectRelationProvenance `` /* 164-byte string literal not displayed */
	// What the relationship between the project and the package version is.
	RelationType ProjectRelationType `` /* 140-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Version_Project) Descriptor deprecated

func (*Version_Project) Descriptor() ([]byte, []int)

Deprecated: Use Version_Project.ProtoReflect.Descriptor instead.

func (*Version_Project) GetProjectKey

func (x *Version_Project) GetProjectKey() *ProjectKey

func (*Version_Project) GetRelationProvenance

func (x *Version_Project) GetRelationProvenance() ProjectRelationProvenance

func (*Version_Project) GetRelationType

func (x *Version_Project) GetRelationType() ProjectRelationType

func (*Version_Project) ProtoMessage

func (*Version_Project) ProtoMessage()

func (*Version_Project) ProtoReflect

func (x *Version_Project) ProtoReflect() protoreflect.Message

func (*Version_Project) Reset

func (x *Version_Project) Reset()

func (*Version_Project) String

func (x *Version_Project) String() string

Jump to

Keyboard shortcuts

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