2017-06-05 14:37:29 +00:00
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
2018-04-04 20:17:49 +00:00
|
|
|
// source: api/v3/clairpb/clair.proto
|
2017-06-05 14:37:29 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
Package clairpb is a generated protocol buffer package.
|
|
|
|
|
|
|
|
It is generated from these files:
|
2018-04-04 20:17:49 +00:00
|
|
|
api/v3/clairpb/clair.proto
|
2017-06-05 14:37:29 +00:00
|
|
|
|
|
|
|
It has these top-level messages:
|
|
|
|
Vulnerability
|
2018-09-12 20:41:45 +00:00
|
|
|
Detector
|
|
|
|
Namespace
|
2017-06-05 14:37:29 +00:00
|
|
|
Feature
|
|
|
|
Layer
|
2018-04-05 21:02:13 +00:00
|
|
|
ClairStatus
|
2017-06-05 14:37:29 +00:00
|
|
|
GetAncestryRequest
|
|
|
|
GetAncestryResponse
|
2018-04-05 21:02:13 +00:00
|
|
|
PostAncestryRequest
|
|
|
|
PostAncestryResponse
|
2017-06-05 14:37:29 +00:00
|
|
|
GetNotificationRequest
|
|
|
|
GetNotificationResponse
|
2018-04-05 21:02:13 +00:00
|
|
|
PagedVulnerableAncestries
|
2017-07-12 21:04:05 +00:00
|
|
|
MarkNotificationAsReadRequest
|
2018-04-23 19:36:52 +00:00
|
|
|
MarkNotificationAsReadResponse
|
2018-08-30 19:09:24 +00:00
|
|
|
GetStatusRequest
|
|
|
|
GetStatusResponse
|
2017-06-05 14:37:29 +00:00
|
|
|
*/
|
|
|
|
package clairpb
|
|
|
|
|
|
|
|
import proto "github.com/golang/protobuf/proto"
|
|
|
|
import fmt "fmt"
|
|
|
|
import math "math"
|
2018-04-23 19:36:52 +00:00
|
|
|
import google_protobuf "github.com/golang/protobuf/ptypes/timestamp"
|
2017-06-05 14:37:29 +00:00
|
|
|
import _ "google.golang.org/genproto/googleapis/api/annotations"
|
|
|
|
|
|
|
|
import (
|
|
|
|
context "golang.org/x/net/context"
|
|
|
|
grpc "google.golang.org/grpc"
|
|
|
|
)
|
|
|
|
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
|
|
var _ = proto.Marshal
|
|
|
|
var _ = fmt.Errorf
|
|
|
|
var _ = math.Inf
|
|
|
|
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
|
|
// is compatible with the proto package it is being compiled against.
|
|
|
|
// A compilation error at this line likely means your copy of the
|
|
|
|
// proto package needs to be updated.
|
|
|
|
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
|
|
|
|
|
2018-10-08 18:12:00 +00:00
|
|
|
type Detector_DType int32
|
2018-09-12 20:41:45 +00:00
|
|
|
|
|
|
|
const (
|
2018-10-08 18:12:00 +00:00
|
|
|
Detector_DETECTOR_D_TYPE_INVALID Detector_DType = 0
|
|
|
|
Detector_DETECTOR_D_TYPE_NAMESPACE Detector_DType = 1
|
|
|
|
Detector_DETECTOR_D_TYPE_FEATURE Detector_DType = 2
|
2018-09-12 20:41:45 +00:00
|
|
|
)
|
|
|
|
|
2018-10-08 18:12:00 +00:00
|
|
|
var Detector_DType_name = map[int32]string{
|
|
|
|
0: "DETECTOR_D_TYPE_INVALID",
|
|
|
|
1: "DETECTOR_D_TYPE_NAMESPACE",
|
|
|
|
2: "DETECTOR_D_TYPE_FEATURE",
|
2018-09-12 20:41:45 +00:00
|
|
|
}
|
2018-10-08 18:12:00 +00:00
|
|
|
var Detector_DType_value = map[string]int32{
|
|
|
|
"DETECTOR_D_TYPE_INVALID": 0,
|
|
|
|
"DETECTOR_D_TYPE_NAMESPACE": 1,
|
|
|
|
"DETECTOR_D_TYPE_FEATURE": 2,
|
2018-09-12 20:41:45 +00:00
|
|
|
}
|
|
|
|
|
2018-10-08 18:12:00 +00:00
|
|
|
func (x Detector_DType) String() string {
|
|
|
|
return proto.EnumName(Detector_DType_name, int32(x))
|
2018-09-12 20:41:45 +00:00
|
|
|
}
|
2018-10-08 18:12:00 +00:00
|
|
|
func (Detector_DType) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{1, 0} }
|
2018-09-12 20:41:45 +00:00
|
|
|
|
2017-06-05 14:37:29 +00:00
|
|
|
type Vulnerability struct {
|
2018-04-05 21:02:13 +00:00
|
|
|
// The name of the vulnerability.
|
|
|
|
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
|
|
|
|
// The name of the namespace in which the vulnerability was detected.
|
2017-07-12 21:04:05 +00:00
|
|
|
NamespaceName string `protobuf:"bytes,2,opt,name=namespace_name,json=namespaceName" json:"namespace_name,omitempty"`
|
2018-04-05 21:02:13 +00:00
|
|
|
// A description of the vulnerability according to the source for the namespace.
|
|
|
|
Description string `protobuf:"bytes,3,opt,name=description" json:"description,omitempty"`
|
|
|
|
// A link to the vulnerability according to the source for the namespace.
|
|
|
|
Link string `protobuf:"bytes,4,opt,name=link" json:"link,omitempty"`
|
|
|
|
// How dangerous the vulnerability is.
|
|
|
|
Severity string `protobuf:"bytes,5,opt,name=severity" json:"severity,omitempty"`
|
|
|
|
// Namespace agnostic metadata about the vulnerability.
|
|
|
|
Metadata string `protobuf:"bytes,6,opt,name=metadata" json:"metadata,omitempty"`
|
|
|
|
// The feature that fixes this vulnerability.
|
|
|
|
// This field only exists when a vulnerability is a part of a Feature.
|
2017-07-12 21:04:05 +00:00
|
|
|
FixedBy string `protobuf:"bytes,7,opt,name=fixed_by,json=fixedBy" json:"fixed_by,omitempty"`
|
2018-04-05 21:02:13 +00:00
|
|
|
// The Features that are affected by the vulnerability.
|
|
|
|
// This field only exists when a vulnerability is a part of a Notification.
|
2017-07-12 21:04:05 +00:00
|
|
|
AffectedVersions []*Feature `protobuf:"bytes,8,rep,name=affected_versions,json=affectedVersions" json:"affected_versions,omitempty"`
|
2017-06-05 14:37:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Vulnerability) Reset() { *m = Vulnerability{} }
|
|
|
|
func (m *Vulnerability) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*Vulnerability) ProtoMessage() {}
|
|
|
|
func (*Vulnerability) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
|
|
|
|
|
|
|
|
func (m *Vulnerability) GetName() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Name
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Vulnerability) GetNamespaceName() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.NamespaceName
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Vulnerability) GetDescription() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Description
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Vulnerability) GetLink() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Link
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Vulnerability) GetSeverity() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Severity
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Vulnerability) GetMetadata() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Metadata
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Vulnerability) GetFixedBy() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.FixedBy
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2017-07-12 21:04:05 +00:00
|
|
|
func (m *Vulnerability) GetAffectedVersions() []*Feature {
|
2017-06-05 14:37:29 +00:00
|
|
|
if m != nil {
|
2017-07-12 21:04:05 +00:00
|
|
|
return m.AffectedVersions
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2018-09-12 20:41:45 +00:00
|
|
|
type Detector struct {
|
|
|
|
// The name of the detector.
|
|
|
|
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
|
|
|
|
// The version of the detector.
|
|
|
|
Version string `protobuf:"bytes,2,opt,name=version" json:"version,omitempty"`
|
|
|
|
// The type of the detector.
|
2018-10-08 18:12:00 +00:00
|
|
|
Dtype Detector_DType `protobuf:"varint,3,opt,name=dtype,enum=coreos.clair.Detector_DType" json:"dtype,omitempty"`
|
2018-09-12 20:41:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Detector) Reset() { *m = Detector{} }
|
|
|
|
func (m *Detector) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*Detector) ProtoMessage() {}
|
|
|
|
func (*Detector) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
|
|
|
|
|
|
|
|
func (m *Detector) GetName() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Name
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Detector) GetVersion() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Version
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2018-10-08 18:12:00 +00:00
|
|
|
func (m *Detector) GetDtype() Detector_DType {
|
2018-09-12 20:41:45 +00:00
|
|
|
if m != nil {
|
2018-10-08 18:12:00 +00:00
|
|
|
return m.Dtype
|
2018-09-12 20:41:45 +00:00
|
|
|
}
|
2018-10-08 18:12:00 +00:00
|
|
|
return Detector_DETECTOR_D_TYPE_INVALID
|
2018-09-12 20:41:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type Namespace struct {
|
|
|
|
// The name of the namespace.
|
|
|
|
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
|
|
|
|
// The detector used to detect the namespace. This only exists when present in
|
|
|
|
// an Ancestry Feature.
|
|
|
|
Detector *Detector `protobuf:"bytes,2,opt,name=detector" json:"detector,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Namespace) Reset() { *m = Namespace{} }
|
|
|
|
func (m *Namespace) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*Namespace) ProtoMessage() {}
|
|
|
|
func (*Namespace) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
|
|
|
|
|
|
|
|
func (m *Namespace) GetName() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Name
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Namespace) GetDetector() *Detector {
|
|
|
|
if m != nil {
|
|
|
|
return m.Detector
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2017-06-05 14:37:29 +00:00
|
|
|
type Feature struct {
|
2018-04-05 21:02:13 +00:00
|
|
|
// The name of the feature.
|
|
|
|
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
|
2018-09-12 20:41:45 +00:00
|
|
|
// The namespace in which the feature is detected.
|
|
|
|
Namespace *Namespace `protobuf:"bytes,2,opt,name=namespace" json:"namespace,omitempty"`
|
2018-04-05 21:02:13 +00:00
|
|
|
// The specific version of this feature.
|
|
|
|
Version string `protobuf:"bytes,3,opt,name=version" json:"version,omitempty"`
|
|
|
|
// The format used to parse version numbers for the feature.
|
|
|
|
VersionFormat string `protobuf:"bytes,4,opt,name=version_format,json=versionFormat" json:"version_format,omitempty"`
|
2018-09-12 20:41:45 +00:00
|
|
|
// The detector used to detect this feature. This only exists when present in
|
|
|
|
// an Ancestry.
|
|
|
|
Detector *Detector `protobuf:"bytes,5,opt,name=detector" json:"detector,omitempty"`
|
2018-04-05 21:02:13 +00:00
|
|
|
// The list of vulnerabilities that affect the feature.
|
2018-09-12 20:41:45 +00:00
|
|
|
Vulnerabilities []*Vulnerability `protobuf:"bytes,6,rep,name=vulnerabilities" json:"vulnerabilities,omitempty"`
|
2017-06-05 14:37:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Feature) Reset() { *m = Feature{} }
|
|
|
|
func (m *Feature) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*Feature) ProtoMessage() {}
|
2018-09-12 20:41:45 +00:00
|
|
|
func (*Feature) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
|
2017-06-05 14:37:29 +00:00
|
|
|
|
|
|
|
func (m *Feature) GetName() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Name
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2018-09-12 20:41:45 +00:00
|
|
|
func (m *Feature) GetNamespace() *Namespace {
|
2017-06-05 14:37:29 +00:00
|
|
|
if m != nil {
|
2018-09-12 20:41:45 +00:00
|
|
|
return m.Namespace
|
2017-06-05 14:37:29 +00:00
|
|
|
}
|
2018-09-12 20:41:45 +00:00
|
|
|
return nil
|
2017-06-05 14:37:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Feature) GetVersion() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Version
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Feature) GetVersionFormat() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.VersionFormat
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2018-09-12 20:41:45 +00:00
|
|
|
func (m *Feature) GetDetector() *Detector {
|
|
|
|
if m != nil {
|
|
|
|
return m.Detector
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2017-06-05 14:37:29 +00:00
|
|
|
func (m *Feature) GetVulnerabilities() []*Vulnerability {
|
|
|
|
if m != nil {
|
|
|
|
return m.Vulnerabilities
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2018-04-05 21:02:13 +00:00
|
|
|
type Layer struct {
|
|
|
|
// The sha256 tarsum for the layer.
|
|
|
|
Hash string `protobuf:"bytes,1,opt,name=hash" json:"hash,omitempty"`
|
2017-06-05 14:37:29 +00:00
|
|
|
}
|
|
|
|
|
2018-04-05 21:02:13 +00:00
|
|
|
func (m *Layer) Reset() { *m = Layer{} }
|
|
|
|
func (m *Layer) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*Layer) ProtoMessage() {}
|
2018-09-12 20:41:45 +00:00
|
|
|
func (*Layer) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
|
2017-06-05 14:37:29 +00:00
|
|
|
|
2018-04-05 21:02:13 +00:00
|
|
|
func (m *Layer) GetHash() string {
|
2017-06-05 14:37:29 +00:00
|
|
|
if m != nil {
|
2018-04-05 21:02:13 +00:00
|
|
|
return m.Hash
|
2017-06-05 14:37:29 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2018-04-05 21:02:13 +00:00
|
|
|
type ClairStatus struct {
|
2018-09-12 20:41:45 +00:00
|
|
|
// The implemented detectors in this Clair instance
|
|
|
|
Detectors []*Detector `protobuf:"bytes,1,rep,name=detectors" json:"detectors,omitempty"`
|
2018-04-05 21:02:13 +00:00
|
|
|
// The time at which the updater last ran.
|
2018-09-12 20:41:45 +00:00
|
|
|
LastUpdateTime *google_protobuf.Timestamp `protobuf:"bytes,2,opt,name=last_update_time,json=lastUpdateTime" json:"last_update_time,omitempty"`
|
2017-06-05 14:37:29 +00:00
|
|
|
}
|
|
|
|
|
2018-04-05 21:02:13 +00:00
|
|
|
func (m *ClairStatus) Reset() { *m = ClairStatus{} }
|
|
|
|
func (m *ClairStatus) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*ClairStatus) ProtoMessage() {}
|
2018-09-12 20:41:45 +00:00
|
|
|
func (*ClairStatus) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }
|
2018-04-05 21:02:13 +00:00
|
|
|
|
2018-09-12 20:41:45 +00:00
|
|
|
func (m *ClairStatus) GetDetectors() []*Detector {
|
2017-06-05 14:37:29 +00:00
|
|
|
if m != nil {
|
2018-04-05 21:02:13 +00:00
|
|
|
return m.Detectors
|
2017-06-05 14:37:29 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2018-04-23 19:36:52 +00:00
|
|
|
func (m *ClairStatus) GetLastUpdateTime() *google_protobuf.Timestamp {
|
2017-06-05 14:37:29 +00:00
|
|
|
if m != nil {
|
2018-04-05 21:02:13 +00:00
|
|
|
return m.LastUpdateTime
|
2017-06-05 14:37:29 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2018-04-05 21:02:13 +00:00
|
|
|
type GetAncestryRequest struct {
|
|
|
|
// The name of the desired ancestry.
|
|
|
|
AncestryName string `protobuf:"bytes,1,opt,name=ancestry_name,json=ancestryName" json:"ancestry_name,omitempty"`
|
2017-06-05 14:37:29 +00:00
|
|
|
}
|
|
|
|
|
2018-04-05 21:02:13 +00:00
|
|
|
func (m *GetAncestryRequest) Reset() { *m = GetAncestryRequest{} }
|
|
|
|
func (m *GetAncestryRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*GetAncestryRequest) ProtoMessage() {}
|
2018-09-12 20:41:45 +00:00
|
|
|
func (*GetAncestryRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} }
|
2017-06-05 14:37:29 +00:00
|
|
|
|
2018-04-05 21:02:13 +00:00
|
|
|
func (m *GetAncestryRequest) GetAncestryName() string {
|
2017-06-05 14:37:29 +00:00
|
|
|
if m != nil {
|
2018-04-05 21:02:13 +00:00
|
|
|
return m.AncestryName
|
2017-06-05 14:37:29 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2018-04-05 21:02:13 +00:00
|
|
|
type GetAncestryResponse struct {
|
|
|
|
// The ancestry requested.
|
|
|
|
Ancestry *GetAncestryResponse_Ancestry `protobuf:"bytes,1,opt,name=ancestry" json:"ancestry,omitempty"`
|
|
|
|
// The status of Clair at the time of the request.
|
|
|
|
Status *ClairStatus `protobuf:"bytes,2,opt,name=status" json:"status,omitempty"`
|
2017-06-05 14:37:29 +00:00
|
|
|
}
|
|
|
|
|
2018-04-05 21:02:13 +00:00
|
|
|
func (m *GetAncestryResponse) Reset() { *m = GetAncestryResponse{} }
|
|
|
|
func (m *GetAncestryResponse) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*GetAncestryResponse) ProtoMessage() {}
|
2018-09-12 20:41:45 +00:00
|
|
|
func (*GetAncestryResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} }
|
2017-06-05 14:37:29 +00:00
|
|
|
|
2018-04-05 21:02:13 +00:00
|
|
|
func (m *GetAncestryResponse) GetAncestry() *GetAncestryResponse_Ancestry {
|
2017-06-05 14:37:29 +00:00
|
|
|
if m != nil {
|
2018-04-05 21:02:13 +00:00
|
|
|
return m.Ancestry
|
2017-06-05 14:37:29 +00:00
|
|
|
}
|
2017-07-12 21:04:05 +00:00
|
|
|
return nil
|
2017-06-05 14:37:29 +00:00
|
|
|
}
|
|
|
|
|
2018-04-05 21:02:13 +00:00
|
|
|
func (m *GetAncestryResponse) GetStatus() *ClairStatus {
|
2017-06-05 14:37:29 +00:00
|
|
|
if m != nil {
|
2018-04-05 21:02:13 +00:00
|
|
|
return m.Status
|
2017-06-05 14:37:29 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2018-09-05 15:32:14 +00:00
|
|
|
type GetAncestryResponse_AncestryLayer struct {
|
2018-09-05 15:34:49 +00:00
|
|
|
// The layer's information.
|
|
|
|
Layer *Layer `protobuf:"bytes,1,opt,name=layer" json:"layer,omitempty"`
|
|
|
|
// The features detected in this layer.
|
|
|
|
DetectedFeatures []*Feature `protobuf:"bytes,2,rep,name=detected_features,json=detectedFeatures" json:"detected_features,omitempty"`
|
2018-09-05 15:32:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *GetAncestryResponse_AncestryLayer) Reset() { *m = GetAncestryResponse_AncestryLayer{} }
|
|
|
|
func (m *GetAncestryResponse_AncestryLayer) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*GetAncestryResponse_AncestryLayer) ProtoMessage() {}
|
|
|
|
func (*GetAncestryResponse_AncestryLayer) Descriptor() ([]byte, []int) {
|
2018-09-12 20:41:45 +00:00
|
|
|
return fileDescriptor0, []int{7, 0}
|
2018-09-05 15:32:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *GetAncestryResponse_AncestryLayer) GetLayer() *Layer {
|
|
|
|
if m != nil {
|
|
|
|
return m.Layer
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *GetAncestryResponse_AncestryLayer) GetDetectedFeatures() []*Feature {
|
|
|
|
if m != nil {
|
|
|
|
return m.DetectedFeatures
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2018-04-05 21:02:13 +00:00
|
|
|
type GetAncestryResponse_Ancestry struct {
|
|
|
|
// The name of the desired ancestry.
|
|
|
|
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
|
2018-09-12 20:41:45 +00:00
|
|
|
// The detectors used to scan this Ancestry. It may not be the current set
|
|
|
|
// of detectors in clair status.
|
|
|
|
Detectors []*Detector `protobuf:"bytes,2,rep,name=detectors" json:"detectors,omitempty"`
|
2018-09-05 15:32:14 +00:00
|
|
|
// The list of layers along with detected features in each.
|
2018-09-12 20:41:45 +00:00
|
|
|
Layers []*GetAncestryResponse_AncestryLayer `protobuf:"bytes,3,rep,name=layers" json:"layers,omitempty"`
|
2017-06-05 14:37:29 +00:00
|
|
|
}
|
|
|
|
|
2018-04-05 21:02:13 +00:00
|
|
|
func (m *GetAncestryResponse_Ancestry) Reset() { *m = GetAncestryResponse_Ancestry{} }
|
|
|
|
func (m *GetAncestryResponse_Ancestry) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*GetAncestryResponse_Ancestry) ProtoMessage() {}
|
2018-09-12 20:41:45 +00:00
|
|
|
func (*GetAncestryResponse_Ancestry) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7, 1} }
|
2017-06-05 14:37:29 +00:00
|
|
|
|
2018-04-05 21:02:13 +00:00
|
|
|
func (m *GetAncestryResponse_Ancestry) GetName() string {
|
2017-07-12 21:04:05 +00:00
|
|
|
if m != nil {
|
|
|
|
return m.Name
|
2017-06-05 14:37:29 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2018-09-12 20:41:45 +00:00
|
|
|
func (m *GetAncestryResponse_Ancestry) GetDetectors() []*Detector {
|
2017-07-12 21:04:05 +00:00
|
|
|
if m != nil {
|
2018-09-12 20:41:45 +00:00
|
|
|
return m.Detectors
|
2017-06-05 14:37:29 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2018-09-05 15:32:14 +00:00
|
|
|
func (m *GetAncestryResponse_Ancestry) GetLayers() []*GetAncestryResponse_AncestryLayer {
|
2017-06-05 14:37:29 +00:00
|
|
|
if m != nil {
|
2018-09-05 15:32:14 +00:00
|
|
|
return m.Layers
|
2017-06-05 14:37:29 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
type PostAncestryRequest struct {
|
2018-04-05 21:02:13 +00:00
|
|
|
// The name of the ancestry being scanned.
|
|
|
|
// If scanning OCI images, this should be the hash of the manifest.
|
|
|
|
AncestryName string `protobuf:"bytes,1,opt,name=ancestry_name,json=ancestryName" json:"ancestry_name,omitempty"`
|
|
|
|
// The format of the image being uploaded.
|
|
|
|
Format string `protobuf:"bytes,2,opt,name=format" json:"format,omitempty"`
|
2018-09-05 15:32:14 +00:00
|
|
|
// The layers to be scanned for this Ancestry, ordered in the way that i th
|
2018-09-05 15:34:49 +00:00
|
|
|
// layer is the parent of i + 1 th layer.
|
2018-04-05 21:02:13 +00:00
|
|
|
Layers []*PostAncestryRequest_PostLayer `protobuf:"bytes,3,rep,name=layers" json:"layers,omitempty"`
|
2017-06-05 14:37:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PostAncestryRequest) Reset() { *m = PostAncestryRequest{} }
|
|
|
|
func (m *PostAncestryRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*PostAncestryRequest) ProtoMessage() {}
|
2018-09-12 20:41:45 +00:00
|
|
|
func (*PostAncestryRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} }
|
2017-06-05 14:37:29 +00:00
|
|
|
|
|
|
|
func (m *PostAncestryRequest) GetAncestryName() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.AncestryName
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PostAncestryRequest) GetFormat() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Format
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PostAncestryRequest) GetLayers() []*PostAncestryRequest_PostLayer {
|
|
|
|
if m != nil {
|
|
|
|
return m.Layers
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
type PostAncestryRequest_PostLayer struct {
|
2018-04-05 21:02:13 +00:00
|
|
|
// The hash of the layer.
|
|
|
|
Hash string `protobuf:"bytes,1,opt,name=hash" json:"hash,omitempty"`
|
|
|
|
// The location of the layer (URL or filepath).
|
|
|
|
Path string `protobuf:"bytes,2,opt,name=path" json:"path,omitempty"`
|
|
|
|
// Any HTTP Headers that need to be used if requesting a layer over HTTP(S).
|
2017-06-05 14:37:29 +00:00
|
|
|
Headers map[string]string `protobuf:"bytes,3,rep,name=headers" json:"headers,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PostAncestryRequest_PostLayer) Reset() { *m = PostAncestryRequest_PostLayer{} }
|
|
|
|
func (m *PostAncestryRequest_PostLayer) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*PostAncestryRequest_PostLayer) ProtoMessage() {}
|
|
|
|
func (*PostAncestryRequest_PostLayer) Descriptor() ([]byte, []int) {
|
2018-09-12 20:41:45 +00:00
|
|
|
return fileDescriptor0, []int{8, 0}
|
2017-06-05 14:37:29 +00:00
|
|
|
}
|
|
|
|
|
2017-07-12 21:04:05 +00:00
|
|
|
func (m *PostAncestryRequest_PostLayer) GetHash() string {
|
2017-06-05 14:37:29 +00:00
|
|
|
if m != nil {
|
2017-07-12 21:04:05 +00:00
|
|
|
return m.Hash
|
2017-06-05 14:37:29 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PostAncestryRequest_PostLayer) GetPath() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Path
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PostAncestryRequest_PostLayer) GetHeaders() map[string]string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Headers
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
type PostAncestryResponse struct {
|
2018-04-05 21:02:13 +00:00
|
|
|
// The status of Clair at the time of the request.
|
2017-07-12 21:04:05 +00:00
|
|
|
Status *ClairStatus `protobuf:"bytes,1,opt,name=status" json:"status,omitempty"`
|
2017-06-05 14:37:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PostAncestryResponse) Reset() { *m = PostAncestryResponse{} }
|
|
|
|
func (m *PostAncestryResponse) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*PostAncestryResponse) ProtoMessage() {}
|
2018-09-12 20:41:45 +00:00
|
|
|
func (*PostAncestryResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{9} }
|
2017-06-05 14:37:29 +00:00
|
|
|
|
2017-07-12 21:04:05 +00:00
|
|
|
func (m *PostAncestryResponse) GetStatus() *ClairStatus {
|
2017-06-05 14:37:29 +00:00
|
|
|
if m != nil {
|
2017-07-12 21:04:05 +00:00
|
|
|
return m.Status
|
2017-06-05 14:37:29 +00:00
|
|
|
}
|
2017-07-12 21:04:05 +00:00
|
|
|
return nil
|
2017-06-05 14:37:29 +00:00
|
|
|
}
|
|
|
|
|
2018-04-05 21:02:13 +00:00
|
|
|
type GetNotificationRequest struct {
|
|
|
|
// The current page of previous vulnerabilities for the ancestry.
|
|
|
|
// This will be empty when it is the first page.
|
|
|
|
OldVulnerabilityPage string `protobuf:"bytes,1,opt,name=old_vulnerability_page,json=oldVulnerabilityPage" json:"old_vulnerability_page,omitempty"`
|
|
|
|
// The current page of vulnerabilities for the ancestry.
|
|
|
|
// This will be empty when it is the first page.
|
|
|
|
NewVulnerabilityPage string `protobuf:"bytes,2,opt,name=new_vulnerability_page,json=newVulnerabilityPage" json:"new_vulnerability_page,omitempty"`
|
|
|
|
// The requested maximum number of results per page.
|
|
|
|
Limit int32 `protobuf:"varint,3,opt,name=limit" json:"limit,omitempty"`
|
|
|
|
// The name of the notification being requested.
|
|
|
|
Name string `protobuf:"bytes,4,opt,name=name" json:"name,omitempty"`
|
2017-06-05 14:37:29 +00:00
|
|
|
}
|
|
|
|
|
2018-04-05 21:02:13 +00:00
|
|
|
func (m *GetNotificationRequest) Reset() { *m = GetNotificationRequest{} }
|
|
|
|
func (m *GetNotificationRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*GetNotificationRequest) ProtoMessage() {}
|
2018-09-12 20:41:45 +00:00
|
|
|
func (*GetNotificationRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{10} }
|
2017-06-05 14:37:29 +00:00
|
|
|
|
2018-04-05 21:02:13 +00:00
|
|
|
func (m *GetNotificationRequest) GetOldVulnerabilityPage() string {
|
2017-06-05 14:37:29 +00:00
|
|
|
if m != nil {
|
2018-04-05 21:02:13 +00:00
|
|
|
return m.OldVulnerabilityPage
|
2017-06-05 14:37:29 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2018-04-05 21:02:13 +00:00
|
|
|
func (m *GetNotificationRequest) GetNewVulnerabilityPage() string {
|
2017-06-05 14:37:29 +00:00
|
|
|
if m != nil {
|
2018-04-05 21:02:13 +00:00
|
|
|
return m.NewVulnerabilityPage
|
2017-06-05 14:37:29 +00:00
|
|
|
}
|
2018-04-05 21:02:13 +00:00
|
|
|
return ""
|
2017-06-05 14:37:29 +00:00
|
|
|
}
|
|
|
|
|
2018-04-05 21:02:13 +00:00
|
|
|
func (m *GetNotificationRequest) GetLimit() int32 {
|
2017-06-05 14:37:29 +00:00
|
|
|
if m != nil {
|
2018-04-05 21:02:13 +00:00
|
|
|
return m.Limit
|
2017-06-05 14:37:29 +00:00
|
|
|
}
|
2018-04-05 21:02:13 +00:00
|
|
|
return 0
|
2017-06-05 14:37:29 +00:00
|
|
|
}
|
|
|
|
|
2018-04-05 21:02:13 +00:00
|
|
|
func (m *GetNotificationRequest) GetName() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Name
|
|
|
|
}
|
|
|
|
return ""
|
2017-06-05 14:37:29 +00:00
|
|
|
}
|
|
|
|
|
2018-04-05 21:02:13 +00:00
|
|
|
type GetNotificationResponse struct {
|
|
|
|
// The notification as requested.
|
|
|
|
Notification *GetNotificationResponse_Notification `protobuf:"bytes,1,opt,name=notification" json:"notification,omitempty"`
|
|
|
|
}
|
2017-06-05 14:37:29 +00:00
|
|
|
|
2018-04-05 21:02:13 +00:00
|
|
|
func (m *GetNotificationResponse) Reset() { *m = GetNotificationResponse{} }
|
|
|
|
func (m *GetNotificationResponse) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*GetNotificationResponse) ProtoMessage() {}
|
2018-09-12 20:41:45 +00:00
|
|
|
func (*GetNotificationResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{11} }
|
2018-04-05 21:02:13 +00:00
|
|
|
|
|
|
|
func (m *GetNotificationResponse) GetNotification() *GetNotificationResponse_Notification {
|
2017-06-05 14:37:29 +00:00
|
|
|
if m != nil {
|
2018-04-05 21:02:13 +00:00
|
|
|
return m.Notification
|
2017-06-05 14:37:29 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2018-04-05 21:02:13 +00:00
|
|
|
type GetNotificationResponse_Notification struct {
|
|
|
|
// The name of the requested notification.
|
|
|
|
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
|
|
|
|
// The time at which the notification was created.
|
|
|
|
Created string `protobuf:"bytes,2,opt,name=created" json:"created,omitempty"`
|
|
|
|
// The time at which the notification was last sent out.
|
|
|
|
Notified string `protobuf:"bytes,3,opt,name=notified" json:"notified,omitempty"`
|
|
|
|
// The time at which a notification has been deleted.
|
|
|
|
Deleted string `protobuf:"bytes,4,opt,name=deleted" json:"deleted,omitempty"`
|
|
|
|
// The previous vulnerability and a paginated view of the ancestries it affects.
|
|
|
|
Old *PagedVulnerableAncestries `protobuf:"bytes,5,opt,name=old" json:"old,omitempty"`
|
|
|
|
// The newly updated vulnerability and a paginated view of the ancestries it affects.
|
|
|
|
New *PagedVulnerableAncestries `protobuf:"bytes,6,opt,name=new" json:"new,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *GetNotificationResponse_Notification) Reset() { *m = GetNotificationResponse_Notification{} }
|
|
|
|
func (m *GetNotificationResponse_Notification) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*GetNotificationResponse_Notification) ProtoMessage() {}
|
|
|
|
func (*GetNotificationResponse_Notification) Descriptor() ([]byte, []int) {
|
2018-09-12 20:41:45 +00:00
|
|
|
return fileDescriptor0, []int{11, 0}
|
2018-04-05 21:02:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *GetNotificationResponse_Notification) GetName() string {
|
2017-06-05 14:37:29 +00:00
|
|
|
if m != nil {
|
2018-04-05 21:02:13 +00:00
|
|
|
return m.Name
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *GetNotificationResponse_Notification) GetCreated() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Created
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *GetNotificationResponse_Notification) GetNotified() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Notified
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *GetNotificationResponse_Notification) GetDeleted() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Deleted
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *GetNotificationResponse_Notification) GetOld() *PagedVulnerableAncestries {
|
|
|
|
if m != nil {
|
|
|
|
return m.Old
|
2017-06-05 14:37:29 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2018-04-05 21:02:13 +00:00
|
|
|
func (m *GetNotificationResponse_Notification) GetNew() *PagedVulnerableAncestries {
|
|
|
|
if m != nil {
|
|
|
|
return m.New
|
|
|
|
}
|
|
|
|
return nil
|
2017-06-05 14:37:29 +00:00
|
|
|
}
|
|
|
|
|
2018-04-05 21:02:13 +00:00
|
|
|
type PagedVulnerableAncestries struct {
|
|
|
|
// The identifier for the current page.
|
|
|
|
CurrentPage string `protobuf:"bytes,1,opt,name=current_page,json=currentPage" json:"current_page,omitempty"`
|
|
|
|
// The token used to request the next page.
|
|
|
|
// This will be empty when there are no more pages.
|
|
|
|
NextPage string `protobuf:"bytes,2,opt,name=next_page,json=nextPage" json:"next_page,omitempty"`
|
|
|
|
// The requested maximum number of results per page.
|
|
|
|
Limit int32 `protobuf:"varint,3,opt,name=limit" json:"limit,omitempty"`
|
|
|
|
// The vulnerability that affects a given set of ancestries.
|
|
|
|
Vulnerability *Vulnerability `protobuf:"bytes,4,opt,name=vulnerability" json:"vulnerability,omitempty"`
|
|
|
|
// The ancestries affected by a vulnerability.
|
|
|
|
Ancestries []*PagedVulnerableAncestries_IndexedAncestryName `protobuf:"bytes,5,rep,name=ancestries" json:"ancestries,omitempty"`
|
|
|
|
}
|
2017-06-05 14:37:29 +00:00
|
|
|
|
2018-04-05 21:02:13 +00:00
|
|
|
func (m *PagedVulnerableAncestries) Reset() { *m = PagedVulnerableAncestries{} }
|
|
|
|
func (m *PagedVulnerableAncestries) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*PagedVulnerableAncestries) ProtoMessage() {}
|
2018-09-12 20:41:45 +00:00
|
|
|
func (*PagedVulnerableAncestries) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{12} }
|
2018-04-05 21:02:13 +00:00
|
|
|
|
|
|
|
func (m *PagedVulnerableAncestries) GetCurrentPage() string {
|
2017-07-12 21:04:05 +00:00
|
|
|
if m != nil {
|
2018-04-05 21:02:13 +00:00
|
|
|
return m.CurrentPage
|
2017-07-12 21:04:05 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2018-04-05 21:02:13 +00:00
|
|
|
func (m *PagedVulnerableAncestries) GetNextPage() string {
|
2017-06-05 14:37:29 +00:00
|
|
|
if m != nil {
|
2018-04-05 21:02:13 +00:00
|
|
|
return m.NextPage
|
2017-06-05 14:37:29 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2018-04-05 21:02:13 +00:00
|
|
|
func (m *PagedVulnerableAncestries) GetLimit() int32 {
|
2017-06-05 14:37:29 +00:00
|
|
|
if m != nil {
|
|
|
|
return m.Limit
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2018-04-05 21:02:13 +00:00
|
|
|
func (m *PagedVulnerableAncestries) GetVulnerability() *Vulnerability {
|
2017-06-05 14:37:29 +00:00
|
|
|
if m != nil {
|
2018-04-05 21:02:13 +00:00
|
|
|
return m.Vulnerability
|
2017-06-05 14:37:29 +00:00
|
|
|
}
|
2018-04-05 21:02:13 +00:00
|
|
|
return nil
|
2017-06-05 14:37:29 +00:00
|
|
|
}
|
|
|
|
|
2018-04-05 21:02:13 +00:00
|
|
|
func (m *PagedVulnerableAncestries) GetAncestries() []*PagedVulnerableAncestries_IndexedAncestryName {
|
|
|
|
if m != nil {
|
|
|
|
return m.Ancestries
|
|
|
|
}
|
|
|
|
return nil
|
2017-06-05 14:37:29 +00:00
|
|
|
}
|
|
|
|
|
2018-04-05 21:02:13 +00:00
|
|
|
type PagedVulnerableAncestries_IndexedAncestryName struct {
|
|
|
|
// The index is an ever increasing number associated with the particular ancestry.
|
|
|
|
// This is useful if you're processing notifications, and need to keep track of the progress of paginating the results.
|
|
|
|
Index int32 `protobuf:"varint,1,opt,name=index" json:"index,omitempty"`
|
|
|
|
// The name of the ancestry.
|
|
|
|
Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PagedVulnerableAncestries_IndexedAncestryName) Reset() {
|
|
|
|
*m = PagedVulnerableAncestries_IndexedAncestryName{}
|
|
|
|
}
|
|
|
|
func (m *PagedVulnerableAncestries_IndexedAncestryName) String() string {
|
|
|
|
return proto.CompactTextString(m)
|
|
|
|
}
|
|
|
|
func (*PagedVulnerableAncestries_IndexedAncestryName) ProtoMessage() {}
|
|
|
|
func (*PagedVulnerableAncestries_IndexedAncestryName) Descriptor() ([]byte, []int) {
|
2018-09-12 20:41:45 +00:00
|
|
|
return fileDescriptor0, []int{12, 0}
|
2018-04-05 21:02:13 +00:00
|
|
|
}
|
2017-06-05 14:37:29 +00:00
|
|
|
|
2018-04-05 21:02:13 +00:00
|
|
|
func (m *PagedVulnerableAncestries_IndexedAncestryName) GetIndex() int32 {
|
2017-06-05 14:37:29 +00:00
|
|
|
if m != nil {
|
2018-04-05 21:02:13 +00:00
|
|
|
return m.Index
|
2017-06-05 14:37:29 +00:00
|
|
|
}
|
2018-04-05 21:02:13 +00:00
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *PagedVulnerableAncestries_IndexedAncestryName) GetName() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Name
|
|
|
|
}
|
|
|
|
return ""
|
2017-06-05 14:37:29 +00:00
|
|
|
}
|
|
|
|
|
2017-07-12 21:04:05 +00:00
|
|
|
type MarkNotificationAsReadRequest struct {
|
2018-04-05 21:02:13 +00:00
|
|
|
// The name of the Notification that has been processed.
|
2017-06-05 14:37:29 +00:00
|
|
|
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
|
|
|
|
}
|
|
|
|
|
2017-07-12 21:04:05 +00:00
|
|
|
func (m *MarkNotificationAsReadRequest) Reset() { *m = MarkNotificationAsReadRequest{} }
|
|
|
|
func (m *MarkNotificationAsReadRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*MarkNotificationAsReadRequest) ProtoMessage() {}
|
2018-09-12 20:41:45 +00:00
|
|
|
func (*MarkNotificationAsReadRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{13} }
|
2017-06-05 14:37:29 +00:00
|
|
|
|
2017-07-12 21:04:05 +00:00
|
|
|
func (m *MarkNotificationAsReadRequest) GetName() string {
|
2017-06-05 14:37:29 +00:00
|
|
|
if m != nil {
|
|
|
|
return m.Name
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2018-04-23 19:36:52 +00:00
|
|
|
type MarkNotificationAsReadResponse struct {
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *MarkNotificationAsReadResponse) Reset() { *m = MarkNotificationAsReadResponse{} }
|
|
|
|
func (m *MarkNotificationAsReadResponse) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*MarkNotificationAsReadResponse) ProtoMessage() {}
|
2018-09-12 20:41:45 +00:00
|
|
|
func (*MarkNotificationAsReadResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{14} }
|
2018-04-23 19:36:52 +00:00
|
|
|
|
2018-08-30 19:09:24 +00:00
|
|
|
type GetStatusRequest struct {
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *GetStatusRequest) Reset() { *m = GetStatusRequest{} }
|
|
|
|
func (m *GetStatusRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*GetStatusRequest) ProtoMessage() {}
|
2018-09-12 20:41:45 +00:00
|
|
|
func (*GetStatusRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{15} }
|
2018-08-30 19:09:24 +00:00
|
|
|
|
|
|
|
type GetStatusResponse struct {
|
|
|
|
// The status of the current Clair instance.
|
|
|
|
Status *ClairStatus `protobuf:"bytes,1,opt,name=status" json:"status,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *GetStatusResponse) Reset() { *m = GetStatusResponse{} }
|
|
|
|
func (m *GetStatusResponse) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*GetStatusResponse) ProtoMessage() {}
|
2018-09-12 20:41:45 +00:00
|
|
|
func (*GetStatusResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{16} }
|
2018-08-30 19:09:24 +00:00
|
|
|
|
|
|
|
func (m *GetStatusResponse) GetStatus() *ClairStatus {
|
|
|
|
if m != nil {
|
|
|
|
return m.Status
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2017-06-05 14:37:29 +00:00
|
|
|
func init() {
|
2018-04-22 19:11:41 +00:00
|
|
|
proto.RegisterType((*Vulnerability)(nil), "coreos.clair.Vulnerability")
|
2018-09-12 20:41:45 +00:00
|
|
|
proto.RegisterType((*Detector)(nil), "coreos.clair.Detector")
|
|
|
|
proto.RegisterType((*Namespace)(nil), "coreos.clair.Namespace")
|
2018-04-22 19:11:41 +00:00
|
|
|
proto.RegisterType((*Feature)(nil), "coreos.clair.Feature")
|
|
|
|
proto.RegisterType((*Layer)(nil), "coreos.clair.Layer")
|
|
|
|
proto.RegisterType((*ClairStatus)(nil), "coreos.clair.ClairStatus")
|
|
|
|
proto.RegisterType((*GetAncestryRequest)(nil), "coreos.clair.GetAncestryRequest")
|
|
|
|
proto.RegisterType((*GetAncestryResponse)(nil), "coreos.clair.GetAncestryResponse")
|
2018-09-05 15:32:14 +00:00
|
|
|
proto.RegisterType((*GetAncestryResponse_AncestryLayer)(nil), "coreos.clair.GetAncestryResponse.AncestryLayer")
|
2018-04-22 19:11:41 +00:00
|
|
|
proto.RegisterType((*GetAncestryResponse_Ancestry)(nil), "coreos.clair.GetAncestryResponse.Ancestry")
|
|
|
|
proto.RegisterType((*PostAncestryRequest)(nil), "coreos.clair.PostAncestryRequest")
|
|
|
|
proto.RegisterType((*PostAncestryRequest_PostLayer)(nil), "coreos.clair.PostAncestryRequest.PostLayer")
|
|
|
|
proto.RegisterType((*PostAncestryResponse)(nil), "coreos.clair.PostAncestryResponse")
|
|
|
|
proto.RegisterType((*GetNotificationRequest)(nil), "coreos.clair.GetNotificationRequest")
|
|
|
|
proto.RegisterType((*GetNotificationResponse)(nil), "coreos.clair.GetNotificationResponse")
|
|
|
|
proto.RegisterType((*GetNotificationResponse_Notification)(nil), "coreos.clair.GetNotificationResponse.Notification")
|
|
|
|
proto.RegisterType((*PagedVulnerableAncestries)(nil), "coreos.clair.PagedVulnerableAncestries")
|
|
|
|
proto.RegisterType((*PagedVulnerableAncestries_IndexedAncestryName)(nil), "coreos.clair.PagedVulnerableAncestries.IndexedAncestryName")
|
|
|
|
proto.RegisterType((*MarkNotificationAsReadRequest)(nil), "coreos.clair.MarkNotificationAsReadRequest")
|
2018-04-23 19:36:52 +00:00
|
|
|
proto.RegisterType((*MarkNotificationAsReadResponse)(nil), "coreos.clair.MarkNotificationAsReadResponse")
|
2018-08-30 19:09:24 +00:00
|
|
|
proto.RegisterType((*GetStatusRequest)(nil), "coreos.clair.GetStatusRequest")
|
|
|
|
proto.RegisterType((*GetStatusResponse)(nil), "coreos.clair.GetStatusResponse")
|
2018-10-08 18:12:00 +00:00
|
|
|
proto.RegisterEnum("coreos.clair.Detector_DType", Detector_DType_name, Detector_DType_value)
|
2017-06-05 14:37:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
|
|
var _ context.Context
|
|
|
|
var _ grpc.ClientConn
|
|
|
|
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
|
|
// is compatible with the grpc package it is being compiled against.
|
|
|
|
const _ = grpc.SupportPackageIsVersion4
|
|
|
|
|
|
|
|
// Client API for AncestryService service
|
|
|
|
|
|
|
|
type AncestryServiceClient interface {
|
2018-04-05 21:02:13 +00:00
|
|
|
// The RPC used to read the results of scanning for a particular ancestry.
|
2017-06-05 14:37:29 +00:00
|
|
|
GetAncestry(ctx context.Context, in *GetAncestryRequest, opts ...grpc.CallOption) (*GetAncestryResponse, error)
|
2018-04-05 21:02:13 +00:00
|
|
|
// The RPC used to create a new scan of an ancestry.
|
|
|
|
PostAncestry(ctx context.Context, in *PostAncestryRequest, opts ...grpc.CallOption) (*PostAncestryResponse, error)
|
2017-06-05 14:37:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type ancestryServiceClient struct {
|
|
|
|
cc *grpc.ClientConn
|
|
|
|
}
|
|
|
|
|
|
|
|
func NewAncestryServiceClient(cc *grpc.ClientConn) AncestryServiceClient {
|
|
|
|
return &ancestryServiceClient{cc}
|
|
|
|
}
|
|
|
|
|
2018-04-05 21:02:13 +00:00
|
|
|
func (c *ancestryServiceClient) GetAncestry(ctx context.Context, in *GetAncestryRequest, opts ...grpc.CallOption) (*GetAncestryResponse, error) {
|
|
|
|
out := new(GetAncestryResponse)
|
2018-04-22 19:11:41 +00:00
|
|
|
err := grpc.Invoke(ctx, "/coreos.clair.AncestryService/GetAncestry", in, out, c.cc, opts...)
|
2017-06-05 14:37:29 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2018-04-05 21:02:13 +00:00
|
|
|
func (c *ancestryServiceClient) PostAncestry(ctx context.Context, in *PostAncestryRequest, opts ...grpc.CallOption) (*PostAncestryResponse, error) {
|
|
|
|
out := new(PostAncestryResponse)
|
2018-04-22 19:11:41 +00:00
|
|
|
err := grpc.Invoke(ctx, "/coreos.clair.AncestryService/PostAncestry", in, out, c.cc, opts...)
|
2017-06-05 14:37:29 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
// Server API for AncestryService service
|
|
|
|
|
|
|
|
type AncestryServiceServer interface {
|
2018-04-05 21:02:13 +00:00
|
|
|
// The RPC used to read the results of scanning for a particular ancestry.
|
2017-06-05 14:37:29 +00:00
|
|
|
GetAncestry(context.Context, *GetAncestryRequest) (*GetAncestryResponse, error)
|
2018-04-05 21:02:13 +00:00
|
|
|
// The RPC used to create a new scan of an ancestry.
|
|
|
|
PostAncestry(context.Context, *PostAncestryRequest) (*PostAncestryResponse, error)
|
2017-06-05 14:37:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func RegisterAncestryServiceServer(s *grpc.Server, srv AncestryServiceServer) {
|
|
|
|
s.RegisterService(&_AncestryService_serviceDesc, srv)
|
|
|
|
}
|
|
|
|
|
2018-04-05 21:02:13 +00:00
|
|
|
func _AncestryService_GetAncestry_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(GetAncestryRequest)
|
2017-06-05 14:37:29 +00:00
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
2018-04-05 21:02:13 +00:00
|
|
|
return srv.(AncestryServiceServer).GetAncestry(ctx, in)
|
2017-06-05 14:37:29 +00:00
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
2018-04-22 19:11:41 +00:00
|
|
|
FullMethod: "/coreos.clair.AncestryService/GetAncestry",
|
2017-06-05 14:37:29 +00:00
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
2018-04-05 21:02:13 +00:00
|
|
|
return srv.(AncestryServiceServer).GetAncestry(ctx, req.(*GetAncestryRequest))
|
2017-06-05 14:37:29 +00:00
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
2018-04-05 21:02:13 +00:00
|
|
|
func _AncestryService_PostAncestry_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(PostAncestryRequest)
|
2017-06-05 14:37:29 +00:00
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
2018-04-05 21:02:13 +00:00
|
|
|
return srv.(AncestryServiceServer).PostAncestry(ctx, in)
|
2017-06-05 14:37:29 +00:00
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
2018-04-22 19:11:41 +00:00
|
|
|
FullMethod: "/coreos.clair.AncestryService/PostAncestry",
|
2017-06-05 14:37:29 +00:00
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
2018-04-05 21:02:13 +00:00
|
|
|
return srv.(AncestryServiceServer).PostAncestry(ctx, req.(*PostAncestryRequest))
|
2017-06-05 14:37:29 +00:00
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
|
|
|
var _AncestryService_serviceDesc = grpc.ServiceDesc{
|
2018-04-22 19:11:41 +00:00
|
|
|
ServiceName: "coreos.clair.AncestryService",
|
2017-06-05 14:37:29 +00:00
|
|
|
HandlerType: (*AncestryServiceServer)(nil),
|
|
|
|
Methods: []grpc.MethodDesc{
|
|
|
|
{
|
|
|
|
MethodName: "GetAncestry",
|
|
|
|
Handler: _AncestryService_GetAncestry_Handler,
|
|
|
|
},
|
2018-04-05 21:02:13 +00:00
|
|
|
{
|
|
|
|
MethodName: "PostAncestry",
|
|
|
|
Handler: _AncestryService_PostAncestry_Handler,
|
|
|
|
},
|
2017-06-05 14:37:29 +00:00
|
|
|
},
|
|
|
|
Streams: []grpc.StreamDesc{},
|
2018-04-04 20:17:49 +00:00
|
|
|
Metadata: "api/v3/clairpb/clair.proto",
|
2017-06-05 14:37:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Client API for NotificationService service
|
|
|
|
|
|
|
|
type NotificationServiceClient interface {
|
2018-04-05 21:02:13 +00:00
|
|
|
// The RPC used to get a particularly Notification.
|
2017-06-05 14:37:29 +00:00
|
|
|
GetNotification(ctx context.Context, in *GetNotificationRequest, opts ...grpc.CallOption) (*GetNotificationResponse, error)
|
2018-04-05 21:02:13 +00:00
|
|
|
// The RPC used to mark a Notification as read after it has been processed.
|
2018-04-23 19:36:52 +00:00
|
|
|
MarkNotificationAsRead(ctx context.Context, in *MarkNotificationAsReadRequest, opts ...grpc.CallOption) (*MarkNotificationAsReadResponse, error)
|
2017-06-05 14:37:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type notificationServiceClient struct {
|
|
|
|
cc *grpc.ClientConn
|
|
|
|
}
|
|
|
|
|
|
|
|
func NewNotificationServiceClient(cc *grpc.ClientConn) NotificationServiceClient {
|
|
|
|
return ¬ificationServiceClient{cc}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *notificationServiceClient) GetNotification(ctx context.Context, in *GetNotificationRequest, opts ...grpc.CallOption) (*GetNotificationResponse, error) {
|
|
|
|
out := new(GetNotificationResponse)
|
2018-04-22 19:11:41 +00:00
|
|
|
err := grpc.Invoke(ctx, "/coreos.clair.NotificationService/GetNotification", in, out, c.cc, opts...)
|
2017-06-05 14:37:29 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2018-04-23 19:36:52 +00:00
|
|
|
func (c *notificationServiceClient) MarkNotificationAsRead(ctx context.Context, in *MarkNotificationAsReadRequest, opts ...grpc.CallOption) (*MarkNotificationAsReadResponse, error) {
|
|
|
|
out := new(MarkNotificationAsReadResponse)
|
2018-04-22 19:11:41 +00:00
|
|
|
err := grpc.Invoke(ctx, "/coreos.clair.NotificationService/MarkNotificationAsRead", in, out, c.cc, opts...)
|
2017-06-05 14:37:29 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
// Server API for NotificationService service
|
|
|
|
|
|
|
|
type NotificationServiceServer interface {
|
2018-04-05 21:02:13 +00:00
|
|
|
// The RPC used to get a particularly Notification.
|
2017-06-05 14:37:29 +00:00
|
|
|
GetNotification(context.Context, *GetNotificationRequest) (*GetNotificationResponse, error)
|
2018-04-05 21:02:13 +00:00
|
|
|
// The RPC used to mark a Notification as read after it has been processed.
|
2018-04-23 19:36:52 +00:00
|
|
|
MarkNotificationAsRead(context.Context, *MarkNotificationAsReadRequest) (*MarkNotificationAsReadResponse, error)
|
2017-06-05 14:37:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func RegisterNotificationServiceServer(s *grpc.Server, srv NotificationServiceServer) {
|
|
|
|
s.RegisterService(&_NotificationService_serviceDesc, srv)
|
|
|
|
}
|
|
|
|
|
|
|
|
func _NotificationService_GetNotification_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(GetNotificationRequest)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(NotificationServiceServer).GetNotification(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
2018-04-22 19:11:41 +00:00
|
|
|
FullMethod: "/coreos.clair.NotificationService/GetNotification",
|
2017-06-05 14:37:29 +00:00
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(NotificationServiceServer).GetNotification(ctx, req.(*GetNotificationRequest))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
2017-07-12 21:04:05 +00:00
|
|
|
func _NotificationService_MarkNotificationAsRead_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(MarkNotificationAsReadRequest)
|
2017-06-05 14:37:29 +00:00
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
2017-07-12 21:04:05 +00:00
|
|
|
return srv.(NotificationServiceServer).MarkNotificationAsRead(ctx, in)
|
2017-06-05 14:37:29 +00:00
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
2018-04-22 19:11:41 +00:00
|
|
|
FullMethod: "/coreos.clair.NotificationService/MarkNotificationAsRead",
|
2017-06-05 14:37:29 +00:00
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
2017-07-12 21:04:05 +00:00
|
|
|
return srv.(NotificationServiceServer).MarkNotificationAsRead(ctx, req.(*MarkNotificationAsReadRequest))
|
2017-06-05 14:37:29 +00:00
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
|
|
|
var _NotificationService_serviceDesc = grpc.ServiceDesc{
|
2018-04-22 19:11:41 +00:00
|
|
|
ServiceName: "coreos.clair.NotificationService",
|
2017-06-05 14:37:29 +00:00
|
|
|
HandlerType: (*NotificationServiceServer)(nil),
|
|
|
|
Methods: []grpc.MethodDesc{
|
|
|
|
{
|
|
|
|
MethodName: "GetNotification",
|
|
|
|
Handler: _NotificationService_GetNotification_Handler,
|
|
|
|
},
|
|
|
|
{
|
2017-07-12 21:04:05 +00:00
|
|
|
MethodName: "MarkNotificationAsRead",
|
|
|
|
Handler: _NotificationService_MarkNotificationAsRead_Handler,
|
2017-06-05 14:37:29 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
Streams: []grpc.StreamDesc{},
|
2018-04-04 20:17:49 +00:00
|
|
|
Metadata: "api/v3/clairpb/clair.proto",
|
2017-06-05 14:37:29 +00:00
|
|
|
}
|
|
|
|
|
2018-08-30 19:09:24 +00:00
|
|
|
// Client API for StatusService service
|
|
|
|
|
|
|
|
type StatusServiceClient interface {
|
|
|
|
// The RPC used to show the internal state of current Clair instance.
|
|
|
|
GetStatus(ctx context.Context, in *GetStatusRequest, opts ...grpc.CallOption) (*GetStatusResponse, error)
|
|
|
|
}
|
|
|
|
|
|
|
|
type statusServiceClient struct {
|
|
|
|
cc *grpc.ClientConn
|
|
|
|
}
|
|
|
|
|
|
|
|
func NewStatusServiceClient(cc *grpc.ClientConn) StatusServiceClient {
|
|
|
|
return &statusServiceClient{cc}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *statusServiceClient) GetStatus(ctx context.Context, in *GetStatusRequest, opts ...grpc.CallOption) (*GetStatusResponse, error) {
|
|
|
|
out := new(GetStatusResponse)
|
|
|
|
err := grpc.Invoke(ctx, "/coreos.clair.StatusService/GetStatus", in, out, c.cc, opts...)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
// Server API for StatusService service
|
|
|
|
|
|
|
|
type StatusServiceServer interface {
|
|
|
|
// The RPC used to show the internal state of current Clair instance.
|
|
|
|
GetStatus(context.Context, *GetStatusRequest) (*GetStatusResponse, error)
|
|
|
|
}
|
|
|
|
|
|
|
|
func RegisterStatusServiceServer(s *grpc.Server, srv StatusServiceServer) {
|
|
|
|
s.RegisterService(&_StatusService_serviceDesc, srv)
|
|
|
|
}
|
|
|
|
|
|
|
|
func _StatusService_GetStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(GetStatusRequest)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(StatusServiceServer).GetStatus(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
|
|
|
FullMethod: "/coreos.clair.StatusService/GetStatus",
|
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(StatusServiceServer).GetStatus(ctx, req.(*GetStatusRequest))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
|
|
|
var _StatusService_serviceDesc = grpc.ServiceDesc{
|
|
|
|
ServiceName: "coreos.clair.StatusService",
|
|
|
|
HandlerType: (*StatusServiceServer)(nil),
|
|
|
|
Methods: []grpc.MethodDesc{
|
|
|
|
{
|
|
|
|
MethodName: "GetStatus",
|
|
|
|
Handler: _StatusService_GetStatus_Handler,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
Streams: []grpc.StreamDesc{},
|
|
|
|
Metadata: "api/v3/clairpb/clair.proto",
|
|
|
|
}
|
|
|
|
|
2018-04-04 20:17:49 +00:00
|
|
|
func init() { proto.RegisterFile("api/v3/clairpb/clair.proto", fileDescriptor0) }
|
2017-06-05 14:37:29 +00:00
|
|
|
|
|
|
|
var fileDescriptor0 = []byte{
|
2018-10-08 18:12:00 +00:00
|
|
|
// 1336 bytes of a gzipped FileDescriptorProto
|
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x57, 0x4b, 0x6f, 0x1b, 0x55,
|
|
|
|
0x14, 0x66, 0x9c, 0x3a, 0xb6, 0x8f, 0xed, 0xc4, 0xbd, 0x49, 0x13, 0x67, 0xd2, 0x47, 0x32, 0x50,
|
|
|
|
0x51, 0x0a, 0xb2, 0x85, 0x5b, 0xa4, 0xb6, 0x2c, 0x90, 0x9b, 0x38, 0x21, 0x52, 0x1b, 0xa2, 0x49,
|
|
|
|
0x1a, 0x09, 0x10, 0x32, 0x37, 0x9e, 0xe3, 0x64, 0x94, 0xf1, 0xcc, 0x30, 0x73, 0x9d, 0xd4, 0xaa,
|
|
|
|
0xca, 0x82, 0x1d, 0x3b, 0x04, 0x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