cryptographyv2

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Overview

Package cryptographyv2 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	Cryptography_Echo_FullMethodName                 = "/scanoss.api.cryptography.v2.Cryptography/Echo"
	Cryptography_GetAlgorithms_FullMethodName        = "/scanoss.api.cryptography.v2.Cryptography/GetAlgorithms"
	Cryptography_GetAlgorithmsInRange_FullMethodName = "/scanoss.api.cryptography.v2.Cryptography/GetAlgorithmsInRange"
	Cryptography_GetVersionsInRange_FullMethodName   = "/scanoss.api.cryptography.v2.Cryptography/GetVersionsInRange"
	Cryptography_GetHintsInRange_FullMethodName      = "/scanoss.api.cryptography.v2.Cryptography/GetHintsInRange"
	Cryptography_GetEncryptionHints_FullMethodName   = "/scanoss.api.cryptography.v2.Cryptography/GetEncryptionHints"
)

Variables

View Source
var Cryptography_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "scanoss.api.cryptography.v2.Cryptography",
	HandlerType: (*CryptographyServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Echo",
			Handler:    _Cryptography_Echo_Handler,
		},
		{
			MethodName: "GetAlgorithms",
			Handler:    _Cryptography_GetAlgorithms_Handler,
		},
		{
			MethodName: "GetAlgorithmsInRange",
			Handler:    _Cryptography_GetAlgorithmsInRange_Handler,
		},
		{
			MethodName: "GetVersionsInRange",
			Handler:    _Cryptography_GetVersionsInRange_Handler,
		},
		{
			MethodName: "GetHintsInRange",
			Handler:    _Cryptography_GetHintsInRange_Handler,
		},
		{
			MethodName: "GetEncryptionHints",
			Handler:    _Cryptography_GetEncryptionHints_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "scanoss/api/cryptography/v2/scanoss-cryptography.proto",
}

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

View Source
var File_scanoss_api_cryptography_v2_scanoss_cryptography_proto protoreflect.FileDescriptor

Functions

func RegisterCryptographyHandler added in v0.1.0

func RegisterCryptographyHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterCryptographyHandler registers the http handlers for service Cryptography to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterCryptographyHandlerClient added in v0.1.0

func RegisterCryptographyHandlerClient(ctx context.Context, mux *runtime.ServeMux, client CryptographyClient) error

RegisterCryptographyHandlerClient registers the http handlers for service Cryptography to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "CryptographyClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "CryptographyClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "CryptographyClient" to call the correct interceptors.

func RegisterCryptographyHandlerFromEndpoint added in v0.1.0

func RegisterCryptographyHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterCryptographyHandlerFromEndpoint is same as RegisterCryptographyHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterCryptographyHandlerServer added in v0.1.0

func RegisterCryptographyHandlerServer(ctx context.Context, mux *runtime.ServeMux, server CryptographyServer) error

RegisterCryptographyHandlerServer registers the http handlers for service Cryptography to "mux". UnaryRPC :call CryptographyServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterCryptographyHandlerFromEndpoint instead.

func RegisterCryptographyServer

func RegisterCryptographyServer(s grpc.ServiceRegistrar, srv CryptographyServer)

Types

type Algorithm added in v0.5.0

type Algorithm struct {

	// Name of the detected algorithm
	Algorithm string `protobuf:"bytes,1,opt,name=algorithm,proto3" json:"algorithm,omitempty"`
	// Algorithm strength
	Strength string `protobuf:"bytes,2,opt,name=strength,proto3" json:"strength,omitempty"`
	// contains filtered or unexported fields
}

Cryptographic algorithm details

func (*Algorithm) Descriptor deprecated added in v0.5.0

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

Deprecated: Use Algorithm.ProtoReflect.Descriptor instead.

func (*Algorithm) GetAlgorithm added in v0.5.0

func (x *Algorithm) GetAlgorithm() string

func (*Algorithm) GetStrength added in v0.5.0

func (x *Algorithm) GetStrength() string

func (*Algorithm) ProtoMessage added in v0.5.0

func (*Algorithm) ProtoMessage()

func (*Algorithm) ProtoReflect added in v0.5.0

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

func (*Algorithm) Reset added in v0.5.0

func (x *Algorithm) Reset()

func (*Algorithm) String added in v0.5.0

func (x *Algorithm) String() string

type AlgorithmResponse added in v0.1.0

type AlgorithmResponse struct {

	// Cryptography details
	Purls []*AlgorithmResponse_Purls `protobuf:"bytes,1,rep,name=purls,proto3" json:"purls,omitempty"`
	// Response status
	Status *commonv2.StatusResponse `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"`
	// contains filtered or unexported fields
}

Cryptographic Algorithm response data

func (*AlgorithmResponse) Descriptor deprecated added in v0.1.0

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

Deprecated: Use AlgorithmResponse.ProtoReflect.Descriptor instead.

func (*AlgorithmResponse) GetPurls added in v0.1.0

func (x *AlgorithmResponse) GetPurls() []*AlgorithmResponse_Purls

func (*AlgorithmResponse) GetStatus added in v0.1.0

func (x *AlgorithmResponse) GetStatus() *commonv2.StatusResponse

func (*AlgorithmResponse) ProtoMessage added in v0.1.0

func (*AlgorithmResponse) ProtoMessage()

func (*AlgorithmResponse) ProtoReflect added in v0.1.0

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

func (*AlgorithmResponse) Reset added in v0.1.0

func (x *AlgorithmResponse) Reset()

func (*AlgorithmResponse) String added in v0.1.0

func (x *AlgorithmResponse) String() string

type AlgorithmResponse_Purls added in v0.1.0

type AlgorithmResponse_Purls struct {

	// The requested purl.
	Purl string `protobuf:"bytes,1,opt,name=purl,proto3" json:"purl,omitempty"`
	// PURL version
	Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
	// Algorithms list detected for that version
	Algorithms []*Algorithm `protobuf:"bytes,3,rep,name=algorithms,proto3" json:"algorithms,omitempty"`
	// contains filtered or unexported fields
}

Information for a given purl

func (*AlgorithmResponse_Purls) Descriptor deprecated added in v0.1.0

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

Deprecated: Use AlgorithmResponse_Purls.ProtoReflect.Descriptor instead.

func (*AlgorithmResponse_Purls) GetAlgorithms added in v0.1.0

func (x *AlgorithmResponse_Purls) GetAlgorithms() []*Algorithm

func (*AlgorithmResponse_Purls) GetPurl added in v0.1.0

func (x *AlgorithmResponse_Purls) GetPurl() string

func (*AlgorithmResponse_Purls) GetVersion added in v0.1.0

func (x *AlgorithmResponse_Purls) GetVersion() string

func (*AlgorithmResponse_Purls) ProtoMessage added in v0.1.0

func (*AlgorithmResponse_Purls) ProtoMessage()

func (*AlgorithmResponse_Purls) ProtoReflect added in v0.1.0

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

func (*AlgorithmResponse_Purls) Reset added in v0.1.0

func (x *AlgorithmResponse_Purls) Reset()

func (*AlgorithmResponse_Purls) String added in v0.1.0

func (x *AlgorithmResponse_Purls) String() string

type AlgorithmsInRangeResponse added in v0.3.0

type AlgorithmsInRangeResponse struct {

	// Cryptography details
	Purls []*AlgorithmsInRangeResponse_Purl `protobuf:"bytes,1,rep,name=purls,proto3" json:"purls,omitempty"`
	// Response status
	Status *commonv2.StatusResponse `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"`
	// contains filtered or unexported fields
}

Cryptographic Algorithm response data for a given range or criteria

func (*AlgorithmsInRangeResponse) Descriptor deprecated added in v0.3.0

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

Deprecated: Use AlgorithmsInRangeResponse.ProtoReflect.Descriptor instead.

func (*AlgorithmsInRangeResponse) GetPurls added in v0.3.0

func (*AlgorithmsInRangeResponse) GetStatus added in v0.3.0

func (*AlgorithmsInRangeResponse) ProtoMessage added in v0.3.0

func (*AlgorithmsInRangeResponse) ProtoMessage()

func (*AlgorithmsInRangeResponse) ProtoReflect added in v0.3.0

func (*AlgorithmsInRangeResponse) Reset added in v0.3.0

func (x *AlgorithmsInRangeResponse) Reset()

func (*AlgorithmsInRangeResponse) String added in v0.3.0

func (x *AlgorithmsInRangeResponse) String() string

type AlgorithmsInRangeResponse_Purl added in v0.3.0

type AlgorithmsInRangeResponse_Purl struct {

	// The requested purl
	Purl string `protobuf:"bytes,1,opt,name=purl,proto3" json:"purl,omitempty"`
	// List of versions in that range that contains cryptography
	Versions []string `protobuf:"bytes,2,rep,name=versions,proto3" json:"versions,omitempty"`
	// Algorithms list detected in that range
	Algorithms []*Algorithm `protobuf:"bytes,3,rep,name=algorithms,proto3" json:"algorithms,omitempty"`
	// contains filtered or unexported fields
}

Information for a given PURL

func (*AlgorithmsInRangeResponse_Purl) Descriptor deprecated added in v0.3.0

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

Deprecated: Use AlgorithmsInRangeResponse_Purl.ProtoReflect.Descriptor instead.

func (*AlgorithmsInRangeResponse_Purl) GetAlgorithms added in v0.3.0

func (x *AlgorithmsInRangeResponse_Purl) GetAlgorithms() []*Algorithm

func (*AlgorithmsInRangeResponse_Purl) GetPurl added in v0.3.0

func (*AlgorithmsInRangeResponse_Purl) GetVersions added in v0.3.0

func (x *AlgorithmsInRangeResponse_Purl) GetVersions() []string

func (*AlgorithmsInRangeResponse_Purl) ProtoMessage added in v0.3.0

func (*AlgorithmsInRangeResponse_Purl) ProtoMessage()

func (*AlgorithmsInRangeResponse_Purl) ProtoReflect added in v0.3.0

func (*AlgorithmsInRangeResponse_Purl) Reset added in v0.3.0

func (x *AlgorithmsInRangeResponse_Purl) Reset()

func (*AlgorithmsInRangeResponse_Purl) String added in v0.3.0

type CryptographyClient

type CryptographyClient interface {
	// Standard echo
	Echo(ctx context.Context, in *commonv2.EchoRequest, opts ...grpc.CallOption) (*commonv2.EchoResponse, error)
	// Get Cryptographic algorithms associated with a list of PURLs and, optionally, a requirement
	GetAlgorithms(ctx context.Context, in *commonv2.PurlRequest, opts ...grpc.CallOption) (*AlgorithmResponse, error)
	// Given a list of PURLS and version ranges, get a list of cryptographic algorithms used
	GetAlgorithmsInRange(ctx context.Context, in *commonv2.PurlRequest, opts ...grpc.CallOption) (*AlgorithmsInRangeResponse, error)
	// Given a list of PURLS and version ranges, get a list of versions that do/do not contain cryptographic algorithms
	GetVersionsInRange(ctx context.Context, in *commonv2.PurlRequest, opts ...grpc.CallOption) (*VersionsInRangeResponse, error)
	// Given a list of PURLS and version ranges, get hints related to protocol/library/sdk/framework
	GetHintsInRange(ctx context.Context, in *commonv2.PurlRequest, opts ...grpc.CallOption) (*HintsInRangeResponse, error)
	// Given a list of PURLS, get hints related to protocol/library/sdk/framework
	GetEncryptionHints(ctx context.Context, in *commonv2.PurlRequest, opts ...grpc.CallOption) (*HintsResponse, error)
}

CryptographyClient is the client API for Cryptography 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.

type CryptographyServer

type CryptographyServer interface {
	// Standard echo
	Echo(context.Context, *commonv2.EchoRequest) (*commonv2.EchoResponse, error)
	// Get Cryptographic algorithms associated with a list of PURLs and, optionally, a requirement
	GetAlgorithms(context.Context, *commonv2.PurlRequest) (*AlgorithmResponse, error)
	// Given a list of PURLS and version ranges, get a list of cryptographic algorithms used
	GetAlgorithmsInRange(context.Context, *commonv2.PurlRequest) (*AlgorithmsInRangeResponse, error)
	// Given a list of PURLS and version ranges, get a list of versions that do/do not contain cryptographic algorithms
	GetVersionsInRange(context.Context, *commonv2.PurlRequest) (*VersionsInRangeResponse, error)
	// Given a list of PURLS and version ranges, get hints related to protocol/library/sdk/framework
	GetHintsInRange(context.Context, *commonv2.PurlRequest) (*HintsInRangeResponse, error)
	// Given a list of PURLS, get hints related to protocol/library/sdk/framework
	GetEncryptionHints(context.Context, *commonv2.PurlRequest) (*HintsResponse, error)
	// contains filtered or unexported methods
}

CryptographyServer is the server API for Cryptography service. All implementations must embed UnimplementedCryptographyServer for forward compatibility

type Hint added in v0.5.0

type Hint struct {

	// unique id
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Name of protocol/library/sdk/framework
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// A brief description about of the detected usage
	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	// Describe detection category (protocol/library/sdk/framework)
	Category string `protobuf:"bytes,4,opt,name=category,proto3" json:"category,omitempty"`
	// Link to project main page, repository or documentation
	Url *string `protobuf:"bytes,5,opt,name=url,proto3,oneof" json:"url,omitempty"`
	// The purl of the original library/sdk/framework
	Purl *string `protobuf:"bytes,6,opt,name=purl,proto3,oneof" json:"purl,omitempty"`
	// contains filtered or unexported fields
}

Structure to record hints of Encryption protocols, libraries, SDKs and frameworks

func (*Hint) Descriptor deprecated added in v0.5.0

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

Deprecated: Use Hint.ProtoReflect.Descriptor instead.

func (*Hint) GetCategory added in v0.5.0

func (x *Hint) GetCategory() string

func (*Hint) GetDescription added in v0.5.0

func (x *Hint) GetDescription() string

func (*Hint) GetId added in v0.5.0

func (x *Hint) GetId() string

func (*Hint) GetName added in v0.5.0

func (x *Hint) GetName() string

func (*Hint) GetPurl added in v0.5.0

func (x *Hint) GetPurl() string

func (*Hint) GetUrl added in v0.5.0

func (x *Hint) GetUrl() string

func (*Hint) ProtoMessage added in v0.5.0

func (*Hint) ProtoMessage()

func (*Hint) ProtoReflect added in v0.5.0

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

func (*Hint) Reset added in v0.5.0

func (x *Hint) Reset()

func (*Hint) String added in v0.5.0

func (x *Hint) String() string

type HintsInRangeResponse added in v0.5.0

type HintsInRangeResponse struct {

	// Purl encryption hints
	Purls []*HintsInRangeResponse_Purl `protobuf:"bytes,1,rep,name=purls,proto3" json:"purls,omitempty"`
	// Response status
	Status *commonv2.StatusResponse `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"`
	// contains filtered or unexported fields
}

* Hints of Encryption protocols, libraries, SDKs and frameworks for a purls in range

func (*HintsInRangeResponse) Descriptor deprecated added in v0.5.0

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

Deprecated: Use HintsInRangeResponse.ProtoReflect.Descriptor instead.

func (*HintsInRangeResponse) GetPurls added in v0.5.0

func (*HintsInRangeResponse) GetStatus added in v0.5.0

func (*HintsInRangeResponse) ProtoMessage added in v0.5.0

func (*HintsInRangeResponse) ProtoMessage()

func (*HintsInRangeResponse) ProtoReflect added in v0.5.0

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

func (*HintsInRangeResponse) Reset added in v0.5.0

func (x *HintsInRangeResponse) Reset()

func (*HintsInRangeResponse) String added in v0.5.0

func (x *HintsInRangeResponse) String() string

type HintsInRangeResponse_Purl added in v0.5.0

type HintsInRangeResponse_Purl struct {

	// The requested purl
	Purl string `protobuf:"bytes,1,opt,name=purl,proto3" json:"purl,omitempty"`
	// List of versions in range
	Versions []string `protobuf:"bytes,2,rep,name=versions,proto3" json:"versions,omitempty"`
	// Encryption hints
	Hints []*Hint `protobuf:"bytes,3,rep,name=hints,proto3" json:"hints,omitempty"`
	// contains filtered or unexported fields
}

Information about the requested purl

func (*HintsInRangeResponse_Purl) Descriptor deprecated added in v0.5.0

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

Deprecated: Use HintsInRangeResponse_Purl.ProtoReflect.Descriptor instead.

func (*HintsInRangeResponse_Purl) GetHints added in v0.5.0

func (x *HintsInRangeResponse_Purl) GetHints() []*Hint

func (*HintsInRangeResponse_Purl) GetPurl added in v0.5.0

func (x *HintsInRangeResponse_Purl) GetPurl() string

func (*HintsInRangeResponse_Purl) GetVersions added in v0.5.0

func (x *HintsInRangeResponse_Purl) GetVersions() []string

func (*HintsInRangeResponse_Purl) ProtoMessage added in v0.5.0

func (*HintsInRangeResponse_Purl) ProtoMessage()

func (*HintsInRangeResponse_Purl) ProtoReflect added in v0.5.0

func (*HintsInRangeResponse_Purl) Reset added in v0.5.0

func (x *HintsInRangeResponse_Purl) Reset()

func (*HintsInRangeResponse_Purl) String added in v0.5.0

func (x *HintsInRangeResponse_Purl) String() string

type HintsResponse added in v0.5.0

type HintsResponse struct {

	// Purl encryption Hint
	Purls []*HintsResponse_Purls `protobuf:"bytes,1,rep,name=purls,proto3" json:"purls,omitempty"`
	// Response status
	Status *commonv2.StatusResponse `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"`
	// contains filtered or unexported fields
}

Encryption Hints response data

func (*HintsResponse) Descriptor deprecated added in v0.5.0

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

Deprecated: Use HintsResponse.ProtoReflect.Descriptor instead.

func (*HintsResponse) GetPurls added in v0.5.0

func (x *HintsResponse) GetPurls() []*HintsResponse_Purls

func (*HintsResponse) GetStatus added in v0.5.0

func (x *HintsResponse) GetStatus() *commonv2.StatusResponse

func (*HintsResponse) ProtoMessage added in v0.5.0

func (*HintsResponse) ProtoMessage()

func (*HintsResponse) ProtoReflect added in v0.5.0

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

func (*HintsResponse) Reset added in v0.5.0

func (x *HintsResponse) Reset()

func (*HintsResponse) String added in v0.5.0

func (x *HintsResponse) String() string

type HintsResponse_Purls added in v0.5.0

type HintsResponse_Purls struct {

	// The requested purl.
	Purl string `protobuf:"bytes,1,opt,name=purl,proto3" json:"purl,omitempty"`
	// PURL version
	Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
	// Algorithms list detected for that version
	Hints []*Hint `protobuf:"bytes,3,rep,name=hints,proto3" json:"hints,omitempty"`
	// contains filtered or unexported fields
}

Information for a given purl

func (*HintsResponse_Purls) Descriptor deprecated added in v0.5.0

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

Deprecated: Use HintsResponse_Purls.ProtoReflect.Descriptor instead.

func (*HintsResponse_Purls) GetHints added in v0.5.0

func (x *HintsResponse_Purls) GetHints() []*Hint

func (*HintsResponse_Purls) GetPurl added in v0.5.0

func (x *HintsResponse_Purls) GetPurl() string

func (*HintsResponse_Purls) GetVersion added in v0.5.0

func (x *HintsResponse_Purls) GetVersion() string

func (*HintsResponse_Purls) ProtoMessage added in v0.5.0

func (*HintsResponse_Purls) ProtoMessage()

func (*HintsResponse_Purls) ProtoReflect added in v0.5.0

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

func (*HintsResponse_Purls) Reset added in v0.5.0

func (x *HintsResponse_Purls) Reset()

func (*HintsResponse_Purls) String added in v0.5.0

func (x *HintsResponse_Purls) String() string

type UnimplementedCryptographyServer

type UnimplementedCryptographyServer struct {
}

UnimplementedCryptographyServer must be embedded to have forward compatible implementations.

func (UnimplementedCryptographyServer) Echo

func (UnimplementedCryptographyServer) GetAlgorithms

func (UnimplementedCryptographyServer) GetAlgorithmsInRange added in v0.3.0

func (UnimplementedCryptographyServer) GetEncryptionHints added in v0.5.0

func (UnimplementedCryptographyServer) GetHintsInRange added in v0.5.0

func (UnimplementedCryptographyServer) GetVersionsInRange added in v0.4.0

type UnsafeCryptographyServer

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

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

type VersionsInRangeResponse added in v0.4.0

type VersionsInRangeResponse struct {

	// Cryptography details
	Purls []*VersionsInRangeResponse_Purl `protobuf:"bytes,1,rep,name=purls,proto3" json:"purls,omitempty"`
	// Response status
	Status *commonv2.StatusResponse `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"`
	// contains filtered or unexported fields
}

Versions with/without cryptographic algorithms detected for the given range or criteria

func (*VersionsInRangeResponse) Descriptor deprecated added in v0.4.0

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

Deprecated: Use VersionsInRangeResponse.ProtoReflect.Descriptor instead.

func (*VersionsInRangeResponse) GetPurls added in v0.4.0

func (*VersionsInRangeResponse) GetStatus added in v0.4.0

func (*VersionsInRangeResponse) ProtoMessage added in v0.4.0

func (*VersionsInRangeResponse) ProtoMessage()

func (*VersionsInRangeResponse) ProtoReflect added in v0.4.0

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

func (*VersionsInRangeResponse) Reset added in v0.4.0

func (x *VersionsInRangeResponse) Reset()

func (*VersionsInRangeResponse) String added in v0.4.0

func (x *VersionsInRangeResponse) String() string

type VersionsInRangeResponse_Purl added in v0.4.0

type VersionsInRangeResponse_Purl struct {

	// The requested purl
	Purl string `protobuf:"bytes,1,opt,name=purl,proto3" json:"purl,omitempty"`
	// List of versions that contains cryptography
	VersionsWith []string `protobuf:"bytes,2,rep,name=versions_with,json=versionsWith,proto3" json:"versions_with,omitempty"`
	// List of versions that do not contain cryptography
	VersionsWithout []string `protobuf:"bytes,3,rep,name=versions_without,json=versionsWithout,proto3" json:"versions_without,omitempty"`
	// contains filtered or unexported fields
}

Information for a given PURL

func (*VersionsInRangeResponse_Purl) Descriptor deprecated added in v0.4.0

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

Deprecated: Use VersionsInRangeResponse_Purl.ProtoReflect.Descriptor instead.

func (*VersionsInRangeResponse_Purl) GetPurl added in v0.4.0

func (x *VersionsInRangeResponse_Purl) GetPurl() string

func (*VersionsInRangeResponse_Purl) GetVersionsWith added in v0.4.0

func (x *VersionsInRangeResponse_Purl) GetVersionsWith() []string

func (*VersionsInRangeResponse_Purl) GetVersionsWithout added in v0.4.0

func (x *VersionsInRangeResponse_Purl) GetVersionsWithout() []string

func (*VersionsInRangeResponse_Purl) ProtoMessage added in v0.4.0

func (*VersionsInRangeResponse_Purl) ProtoMessage()

func (*VersionsInRangeResponse_Purl) ProtoReflect added in v0.4.0

func (*VersionsInRangeResponse_Purl) Reset added in v0.4.0

func (x *VersionsInRangeResponse_Purl) Reset()

func (*VersionsInRangeResponse_Purl) String added in v0.4.0

Jump to

Keyboard shortcuts

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