clair: github.com/coreos/clair/api/v3/clairpb Index | Files

package clairpb

import "github.com/coreos/clair/api/v3/clairpb"

Package clairpb is a generated protocol buffer package.

It is generated from these files:

api/v3/clairpb/clair.proto

It has these top-level messages:

Vulnerability
Detector
Namespace
Feature
Layer
ClairStatus
GetAncestryRequest
GetAncestryResponse
PostAncestryRequest
PostAncestryResponse
GetNotificationRequest
GetNotificationResponse
PagedVulnerableAncestries
MarkNotificationAsReadRequest
MarkNotificationAsReadResponse
GetStatusRequest
GetStatusResponse

Package clairpb is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Package Files

clair.pb.go clair.pb.gw.go convert.go

Variables

var DatabaseDetectorTypeMapping = map[database.DetectorType]Detector_DType{
    database.NamespaceDetectorType: Detector_DType(1),
    database.FeatureDetectorType:   Detector_DType(2),
}

DatabaseDetectorTypeMapping maps the database detector type to the integer enum proto.

var Detector_DType_name = map[int32]string{
    0:  "DETECTOR_D_TYPE_INVALID",
    1:  "DETECTOR_D_TYPE_NAMESPACE",
    2:  "DETECTOR_D_TYPE_FEATURE",
}
var Detector_DType_value = map[string]int32{
    "DETECTOR_D_TYPE_INVALID":   0,
    "DETECTOR_D_TYPE_NAMESPACE": 1,
    "DETECTOR_D_TYPE_FEATURE":   2,
}

func RegisterAncestryServiceHandler Uses

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

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

func RegisterAncestryServiceHandlerClient Uses

func RegisterAncestryServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AncestryServiceClient) error

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

func RegisterAncestryServiceHandlerFromEndpoint Uses

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

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

func RegisterAncestryServiceServer Uses

func RegisterAncestryServiceServer(s *grpc.Server, srv AncestryServiceServer)

func RegisterNotificationServiceHandler Uses

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

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

func RegisterNotificationServiceHandlerClient Uses

func RegisterNotificationServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client NotificationServiceClient) error

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

func RegisterNotificationServiceHandlerFromEndpoint Uses

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

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

func RegisterNotificationServiceServer Uses

func RegisterNotificationServiceServer(s *grpc.Server, srv NotificationServiceServer)

func RegisterStatusServiceHandler Uses

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

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

func RegisterStatusServiceHandlerClient Uses

func RegisterStatusServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client StatusServiceClient) error

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

func RegisterStatusServiceHandlerFromEndpoint Uses

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

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

func RegisterStatusServiceServer Uses

func RegisterStatusServiceServer(s *grpc.Server, srv StatusServiceServer)

type AncestryServiceClient Uses

type AncestryServiceClient interface {
    // The RPC used to read the results of scanning for a particular ancestry.
    GetAncestry(ctx context.Context, in *GetAncestryRequest, opts ...grpc.CallOption) (*GetAncestryResponse, error)
    // The RPC used to create a new scan of an ancestry.
    PostAncestry(ctx context.Context, in *PostAncestryRequest, opts ...grpc.CallOption) (*PostAncestryResponse, error)
}

func NewAncestryServiceClient Uses

func NewAncestryServiceClient(cc *grpc.ClientConn) AncestryServiceClient

type AncestryServiceServer Uses

type AncestryServiceServer interface {
    // The RPC used to read the results of scanning for a particular ancestry.
    GetAncestry(context.Context, *GetAncestryRequest) (*GetAncestryResponse, error)
    // The RPC used to create a new scan of an ancestry.
    PostAncestry(context.Context, *PostAncestryRequest) (*PostAncestryResponse, error)
}

type ClairStatus Uses

type ClairStatus struct {
    // The implemented detectors in this Clair instance
    Detectors []*Detector `protobuf:"bytes,1,rep,name=detectors" json:"detectors,omitempty"`
    // The time at which the updater last ran.
    LastUpdateTime *google_protobuf.Timestamp `protobuf:"bytes,2,opt,name=last_update_time,json=lastUpdateTime" json:"last_update_time,omitempty"`
}

func (*ClairStatus) Descriptor Uses

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

func (*ClairStatus) GetDetectors Uses

func (m *ClairStatus) GetDetectors() []*Detector

func (*ClairStatus) GetLastUpdateTime Uses

func (m *ClairStatus) GetLastUpdateTime() *google_protobuf.Timestamp

func (*ClairStatus) ProtoMessage Uses

func (*ClairStatus) ProtoMessage()

func (*ClairStatus) Reset Uses

func (m *ClairStatus) Reset()

func (*ClairStatus) String Uses

func (m *ClairStatus) String() string

type Detector Uses

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.
    Dtype Detector_DType `protobuf:"varint,3,opt,name=dtype,enum=coreos.clair.Detector_DType" json:"dtype,omitempty"`
}

func DetectorFromDatabaseModel Uses

func DetectorFromDatabaseModel(detector database.Detector) *Detector

DetectorFromDatabaseModel converts database detector to api detector.

func DetectorsFromDatabaseModel Uses

func DetectorsFromDatabaseModel(dbDetectors []database.Detector) []*Detector

DetectorsFromDatabaseModel converts database detectors to api detectors.

func (*Detector) Descriptor Uses

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

func (*Detector) GetDtype Uses

func (m *Detector) GetDtype() Detector_DType

func (*Detector) GetName Uses

func (m *Detector) GetName() string

func (*Detector) GetVersion Uses

func (m *Detector) GetVersion() string

func (*Detector) ProtoMessage Uses

func (*Detector) ProtoMessage()

func (*Detector) Reset Uses

func (m *Detector) Reset()

func (*Detector) String Uses

func (m *Detector) String() string

type Detector_DType Uses

type Detector_DType int32
const (
    Detector_DETECTOR_D_TYPE_INVALID   Detector_DType = 0
    Detector_DETECTOR_D_TYPE_NAMESPACE Detector_DType = 1
    Detector_DETECTOR_D_TYPE_FEATURE   Detector_DType = 2
)

func (Detector_DType) EnumDescriptor Uses

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

func (Detector_DType) String Uses

func (x Detector_DType) String() string

type Feature Uses

type Feature struct {
    // The name of the feature.
    Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
    // The namespace in which the feature is detected.
    Namespace *Namespace `protobuf:"bytes,2,opt,name=namespace" json:"namespace,omitempty"`
    // 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"`
    // 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"`
    // The list of vulnerabilities that affect the feature.
    Vulnerabilities []*Vulnerability `protobuf:"bytes,6,rep,name=vulnerabilities" json:"vulnerabilities,omitempty"`
    // The feature type indicates if the feature represents a source package or
    // binary package.
    FeatureType string `protobuf:"bytes,7,opt,name=feature_type,json=featureType" json:"feature_type,omitempty"`
}

func NamespacedFeatureFromDatabaseModel Uses

func NamespacedFeatureFromDatabaseModel(feature database.AncestryFeature) *Feature

NamespacedFeatureFromDatabaseModel converts database namespacedFeature to api Feature.

func (*Feature) Descriptor Uses

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

func (*Feature) GetDetector Uses

func (m *Feature) GetDetector() *Detector

func (*Feature) GetFeatureType Uses

func (m *Feature) GetFeatureType() string

func (*Feature) GetName Uses

func (m *Feature) GetName() string

func (*Feature) GetNamespace Uses

func (m *Feature) GetNamespace() *Namespace

func (*Feature) GetVersion Uses

func (m *Feature) GetVersion() string

func (*Feature) GetVersionFormat Uses

func (m *Feature) GetVersionFormat() string

func (*Feature) GetVulnerabilities Uses

func (m *Feature) GetVulnerabilities() []*Vulnerability

func (*Feature) ProtoMessage Uses

func (*Feature) ProtoMessage()

func (*Feature) Reset Uses

func (m *Feature) Reset()

func (*Feature) String Uses

func (m *Feature) String() string

type GetAncestryRequest Uses

type GetAncestryRequest struct {
    // The name of the desired ancestry.
    AncestryName string `protobuf:"bytes,1,opt,name=ancestry_name,json=ancestryName" json:"ancestry_name,omitempty"`
}

func (*GetAncestryRequest) Descriptor Uses

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

func (*GetAncestryRequest) GetAncestryName Uses

func (m *GetAncestryRequest) GetAncestryName() string

func (*GetAncestryRequest) ProtoMessage Uses

func (*GetAncestryRequest) ProtoMessage()

func (*GetAncestryRequest) Reset Uses

func (m *GetAncestryRequest) Reset()

func (*GetAncestryRequest) String Uses

func (m *GetAncestryRequest) String() string

type GetAncestryResponse Uses

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"`
}

func (*GetAncestryResponse) Descriptor Uses

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

func (*GetAncestryResponse) GetAncestry Uses

func (m *GetAncestryResponse) GetAncestry() *GetAncestryResponse_Ancestry

func (*GetAncestryResponse) GetStatus Uses

func (m *GetAncestryResponse) GetStatus() *ClairStatus

func (*GetAncestryResponse) ProtoMessage Uses

func (*GetAncestryResponse) ProtoMessage()

func (*GetAncestryResponse) Reset Uses

func (m *GetAncestryResponse) Reset()

func (*GetAncestryResponse) String Uses

func (m *GetAncestryResponse) String() string

type GetAncestryResponse_Ancestry Uses

type GetAncestryResponse_Ancestry struct {
    // The name of the desired ancestry.
    Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
    // 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"`
    // The list of layers along with detected features in each.
    Layers []*GetAncestryResponse_AncestryLayer `protobuf:"bytes,3,rep,name=layers" json:"layers,omitempty"`
}

func (*GetAncestryResponse_Ancestry) Descriptor Uses

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

func (*GetAncestryResponse_Ancestry) GetDetectors Uses

func (m *GetAncestryResponse_Ancestry) GetDetectors() []*Detector

func (*GetAncestryResponse_Ancestry) GetLayers Uses

func (m *GetAncestryResponse_Ancestry) GetLayers() []*GetAncestryResponse_AncestryLayer

func (*GetAncestryResponse_Ancestry) GetName Uses

func (m *GetAncestryResponse_Ancestry) GetName() string

func (*GetAncestryResponse_Ancestry) ProtoMessage Uses

func (*GetAncestryResponse_Ancestry) ProtoMessage()

func (*GetAncestryResponse_Ancestry) Reset Uses

func (m *GetAncestryResponse_Ancestry) Reset()

func (*GetAncestryResponse_Ancestry) String Uses

func (m *GetAncestryResponse_Ancestry) String() string

type GetAncestryResponse_AncestryLayer Uses

type GetAncestryResponse_AncestryLayer struct {
    // 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"`
}

func (*GetAncestryResponse_AncestryLayer) Descriptor Uses

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

func (*GetAncestryResponse_AncestryLayer) GetDetectedFeatures Uses

func (m *GetAncestryResponse_AncestryLayer) GetDetectedFeatures() []*Feature

func (*GetAncestryResponse_AncestryLayer) GetLayer Uses

func (m *GetAncestryResponse_AncestryLayer) GetLayer() *Layer

func (*GetAncestryResponse_AncestryLayer) ProtoMessage Uses

func (*GetAncestryResponse_AncestryLayer) ProtoMessage()

func (*GetAncestryResponse_AncestryLayer) Reset Uses

func (m *GetAncestryResponse_AncestryLayer) Reset()

func (*GetAncestryResponse_AncestryLayer) String Uses

func (m *GetAncestryResponse_AncestryLayer) String() string

type GetNotificationRequest Uses

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"`
}

func (*GetNotificationRequest) Descriptor Uses

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

func (*GetNotificationRequest) GetLimit Uses

func (m *GetNotificationRequest) GetLimit() int32

func (*GetNotificationRequest) GetName Uses

func (m *GetNotificationRequest) GetName() string

func (*GetNotificationRequest) GetNewVulnerabilityPage Uses

func (m *GetNotificationRequest) GetNewVulnerabilityPage() string

func (*GetNotificationRequest) GetOldVulnerabilityPage Uses

func (m *GetNotificationRequest) GetOldVulnerabilityPage() string

func (*GetNotificationRequest) ProtoMessage Uses

func (*GetNotificationRequest) ProtoMessage()

func (*GetNotificationRequest) Reset Uses

func (m *GetNotificationRequest) Reset()

func (*GetNotificationRequest) String Uses

func (m *GetNotificationRequest) String() string

type GetNotificationResponse Uses

type GetNotificationResponse struct {
    // The notification as requested.
    Notification *GetNotificationResponse_Notification `protobuf:"bytes,1,opt,name=notification" json:"notification,omitempty"`
}

func (*GetNotificationResponse) Descriptor Uses

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

func (*GetNotificationResponse) GetNotification Uses

func (m *GetNotificationResponse) GetNotification() *GetNotificationResponse_Notification

func (*GetNotificationResponse) ProtoMessage Uses

func (*GetNotificationResponse) ProtoMessage()

func (*GetNotificationResponse) Reset Uses

func (m *GetNotificationResponse) Reset()

func (*GetNotificationResponse) String Uses

func (m *GetNotificationResponse) String() string

type GetNotificationResponse_Notification Uses

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 NotificationFromDatabaseModel Uses

func NotificationFromDatabaseModel(dbNotification database.VulnerabilityNotificationWithVulnerable) (*GetNotificationResponse_Notification, error)

NotificationFromDatabaseModel converts database notification, old and new vulnerabilities' paged vulnerable ancestries to be api notification.

func (*GetNotificationResponse_Notification) Descriptor Uses

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

func (*GetNotificationResponse_Notification) GetCreated Uses

func (m *GetNotificationResponse_Notification) GetCreated() string

func (*GetNotificationResponse_Notification) GetDeleted Uses

func (m *GetNotificationResponse_Notification) GetDeleted() string

func (*GetNotificationResponse_Notification) GetName Uses

func (m *GetNotificationResponse_Notification) GetName() string

func (*GetNotificationResponse_Notification) GetNew Uses

func (m *GetNotificationResponse_Notification) GetNew() *PagedVulnerableAncestries

func (*GetNotificationResponse_Notification) GetNotified Uses

func (m *GetNotificationResponse_Notification) GetNotified() string

func (*GetNotificationResponse_Notification) GetOld Uses

func (m *GetNotificationResponse_Notification) GetOld() *PagedVulnerableAncestries

func (*GetNotificationResponse_Notification) ProtoMessage Uses

func (*GetNotificationResponse_Notification) ProtoMessage()

func (*GetNotificationResponse_Notification) Reset Uses

func (m *GetNotificationResponse_Notification) Reset()

func (*GetNotificationResponse_Notification) String Uses

func (m *GetNotificationResponse_Notification) String() string

type GetStatusRequest Uses

type GetStatusRequest struct {
}

func (*GetStatusRequest) Descriptor Uses

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

func (*GetStatusRequest) ProtoMessage Uses

func (*GetStatusRequest) ProtoMessage()

func (*GetStatusRequest) Reset Uses

func (m *GetStatusRequest) Reset()

func (*GetStatusRequest) String Uses

func (m *GetStatusRequest) String() string

type GetStatusResponse Uses

type GetStatusResponse struct {
    // The status of the current Clair instance.
    Status *ClairStatus `protobuf:"bytes,1,opt,name=status" json:"status,omitempty"`
}

func (*GetStatusResponse) Descriptor Uses

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

func (*GetStatusResponse) GetStatus Uses

func (m *GetStatusResponse) GetStatus() *ClairStatus

func (*GetStatusResponse) ProtoMessage Uses

func (*GetStatusResponse) ProtoMessage()

func (*GetStatusResponse) Reset Uses

func (m *GetStatusResponse) Reset()

func (*GetStatusResponse) String Uses

func (m *GetStatusResponse) String() string

type Layer Uses

type Layer struct {
    // The sha256 tarsum for the layer.
    Hash string `protobuf:"bytes,1,opt,name=hash" json:"hash,omitempty"`
}

func (*Layer) Descriptor Uses

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

func (*Layer) GetHash Uses

func (m *Layer) GetHash() string

func (*Layer) ProtoMessage Uses

func (*Layer) ProtoMessage()

func (*Layer) Reset Uses

func (m *Layer) Reset()

func (*Layer) String Uses

func (m *Layer) String() string

type MarkNotificationAsReadRequest Uses

type MarkNotificationAsReadRequest struct {
    // The name of the Notification that has been processed.
    Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
}

func (*MarkNotificationAsReadRequest) Descriptor Uses

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

func (*MarkNotificationAsReadRequest) GetName Uses

func (m *MarkNotificationAsReadRequest) GetName() string

func (*MarkNotificationAsReadRequest) ProtoMessage Uses

func (*MarkNotificationAsReadRequest) ProtoMessage()

func (*MarkNotificationAsReadRequest) Reset Uses

func (m *MarkNotificationAsReadRequest) Reset()

func (*MarkNotificationAsReadRequest) String Uses

func (m *MarkNotificationAsReadRequest) String() string

type MarkNotificationAsReadResponse Uses

type MarkNotificationAsReadResponse struct {
}

func (*MarkNotificationAsReadResponse) Descriptor Uses

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

func (*MarkNotificationAsReadResponse) ProtoMessage Uses

func (*MarkNotificationAsReadResponse) ProtoMessage()

func (*MarkNotificationAsReadResponse) Reset Uses

func (m *MarkNotificationAsReadResponse) Reset()

func (*MarkNotificationAsReadResponse) String Uses

func (m *MarkNotificationAsReadResponse) String() string

type Namespace Uses

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 (*Namespace) Descriptor Uses

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

func (*Namespace) GetDetector Uses

func (m *Namespace) GetDetector() *Detector

func (*Namespace) GetName Uses

func (m *Namespace) GetName() string

func (*Namespace) ProtoMessage Uses

func (*Namespace) ProtoMessage()

func (*Namespace) Reset Uses

func (m *Namespace) Reset()

func (*Namespace) String Uses

func (m *Namespace) String() string

type NotificationServiceClient Uses

type NotificationServiceClient interface {
    // The RPC used to get a particularly Notification.
    GetNotification(ctx context.Context, in *GetNotificationRequest, opts ...grpc.CallOption) (*GetNotificationResponse, error)
    // The RPC used to mark a Notification as read after it has been processed.
    MarkNotificationAsRead(ctx context.Context, in *MarkNotificationAsReadRequest, opts ...grpc.CallOption) (*MarkNotificationAsReadResponse, error)
}

func NewNotificationServiceClient Uses

func NewNotificationServiceClient(cc *grpc.ClientConn) NotificationServiceClient

type NotificationServiceServer Uses

type NotificationServiceServer interface {
    // The RPC used to get a particularly Notification.
    GetNotification(context.Context, *GetNotificationRequest) (*GetNotificationResponse, error)
    // The RPC used to mark a Notification as read after it has been processed.
    MarkNotificationAsRead(context.Context, *MarkNotificationAsReadRequest) (*MarkNotificationAsReadResponse, error)
}

type PagedVulnerableAncestries Uses

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"`
}

func PagedVulnerableAncestriesFromDatabaseModel Uses

func PagedVulnerableAncestriesFromDatabaseModel(dbVuln *database.PagedVulnerableAncestries) (*PagedVulnerableAncestries, error)

PagedVulnerableAncestriesFromDatabaseModel converts database PagedVulnerableAncestries to api PagedVulnerableAncestries and assigns indexes to ancestries.

func (*PagedVulnerableAncestries) Descriptor Uses

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

func (*PagedVulnerableAncestries) GetAncestries Uses

func (m *PagedVulnerableAncestries) GetAncestries() []*PagedVulnerableAncestries_IndexedAncestryName

func (*PagedVulnerableAncestries) GetCurrentPage Uses

func (m *PagedVulnerableAncestries) GetCurrentPage() string

func (*PagedVulnerableAncestries) GetLimit Uses

func (m *PagedVulnerableAncestries) GetLimit() int32

func (*PagedVulnerableAncestries) GetNextPage Uses

func (m *PagedVulnerableAncestries) GetNextPage() string

func (*PagedVulnerableAncestries) GetVulnerability Uses

func (m *PagedVulnerableAncestries) GetVulnerability() *Vulnerability

func (*PagedVulnerableAncestries) ProtoMessage Uses

func (*PagedVulnerableAncestries) ProtoMessage()

func (*PagedVulnerableAncestries) Reset Uses

func (m *PagedVulnerableAncestries) Reset()

func (*PagedVulnerableAncestries) String Uses

func (m *PagedVulnerableAncestries) String() string

type PagedVulnerableAncestries_IndexedAncestryName Uses

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 (*PagedVulnerableAncestries_IndexedAncestryName) Descriptor Uses

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

func (*PagedVulnerableAncestries_IndexedAncestryName) GetIndex Uses

func (m *PagedVulnerableAncestries_IndexedAncestryName) GetIndex() int32

func (*PagedVulnerableAncestries_IndexedAncestryName) GetName Uses

func (m *PagedVulnerableAncestries_IndexedAncestryName) GetName() string

func (*PagedVulnerableAncestries_IndexedAncestryName) ProtoMessage Uses

func (*PagedVulnerableAncestries_IndexedAncestryName) ProtoMessage()

func (*PagedVulnerableAncestries_IndexedAncestryName) Reset Uses

func (m *PagedVulnerableAncestries_IndexedAncestryName) Reset()

func (*PagedVulnerableAncestries_IndexedAncestryName) String Uses

func (m *PagedVulnerableAncestries_IndexedAncestryName) String() string

type PostAncestryRequest Uses

type PostAncestryRequest struct {
    // 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"`
    // The layers to be scanned for this Ancestry, ordered in the way that i th
    // layer is the parent of i + 1 th layer.
    Layers []*PostAncestryRequest_PostLayer `protobuf:"bytes,3,rep,name=layers" json:"layers,omitempty"`
}

func (*PostAncestryRequest) Descriptor Uses

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

func (*PostAncestryRequest) GetAncestryName Uses

func (m *PostAncestryRequest) GetAncestryName() string

func (*PostAncestryRequest) GetFormat Uses

func (m *PostAncestryRequest) GetFormat() string

func (*PostAncestryRequest) GetLayers Uses

func (m *PostAncestryRequest) GetLayers() []*PostAncestryRequest_PostLayer

func (*PostAncestryRequest) ProtoMessage Uses

func (*PostAncestryRequest) ProtoMessage()

func (*PostAncestryRequest) Reset Uses

func (m *PostAncestryRequest) Reset()

func (*PostAncestryRequest) String Uses

func (m *PostAncestryRequest) String() string

type PostAncestryRequest_PostLayer Uses

type PostAncestryRequest_PostLayer struct {
    // 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).
    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 (*PostAncestryRequest_PostLayer) Descriptor Uses

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

func (*PostAncestryRequest_PostLayer) GetHash Uses

func (m *PostAncestryRequest_PostLayer) GetHash() string

func (*PostAncestryRequest_PostLayer) GetHeaders Uses

func (m *PostAncestryRequest_PostLayer) GetHeaders() map[string]string

func (*PostAncestryRequest_PostLayer) GetPath Uses

func (m *PostAncestryRequest_PostLayer) GetPath() string

func (*PostAncestryRequest_PostLayer) ProtoMessage Uses

func (*PostAncestryRequest_PostLayer) ProtoMessage()

func (*PostAncestryRequest_PostLayer) Reset Uses

func (m *PostAncestryRequest_PostLayer) Reset()

func (*PostAncestryRequest_PostLayer) String Uses

func (m *PostAncestryRequest_PostLayer) String() string

type PostAncestryResponse Uses

type PostAncestryResponse struct {
    // The status of Clair at the time of the request.
    Status *ClairStatus `protobuf:"bytes,1,opt,name=status" json:"status,omitempty"`
}

func (*PostAncestryResponse) Descriptor Uses

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

func (*PostAncestryResponse) GetStatus Uses

func (m *PostAncestryResponse) GetStatus() *ClairStatus

func (*PostAncestryResponse) ProtoMessage Uses

func (*PostAncestryResponse) ProtoMessage()

func (*PostAncestryResponse) Reset Uses

func (m *PostAncestryResponse) Reset()

func (*PostAncestryResponse) String Uses

func (m *PostAncestryResponse) String() string

type StatusServiceClient Uses

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)
}

func NewStatusServiceClient Uses

func NewStatusServiceClient(cc *grpc.ClientConn) StatusServiceClient

type StatusServiceServer Uses

type StatusServiceServer interface {
    // The RPC used to show the internal state of current Clair instance.
    GetStatus(context.Context, *GetStatusRequest) (*GetStatusResponse, error)
}

type Vulnerability Uses

type Vulnerability struct {
    // 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.
    NamespaceName string `protobuf:"bytes,2,opt,name=namespace_name,json=namespaceName" json:"namespace_name,omitempty"`
    // 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.
    FixedBy string `protobuf:"bytes,7,opt,name=fixed_by,json=fixedBy" json:"fixed_by,omitempty"`
    // The Features that are affected by the vulnerability.
    // This field only exists when a vulnerability is a part of a Notification.
    AffectedVersions []*Feature `protobuf:"bytes,8,rep,name=affected_versions,json=affectedVersions" json:"affected_versions,omitempty"`
}

func VulnerabilityFromDatabaseModel Uses

func VulnerabilityFromDatabaseModel(dbVuln database.Vulnerability) (*Vulnerability, error)

VulnerabilityFromDatabaseModel converts database Vulnerability to api Vulnerability.

func VulnerabilityWithFixedInFromDatabaseModel Uses

func VulnerabilityWithFixedInFromDatabaseModel(dbVuln database.VulnerabilityWithFixedIn) (*Vulnerability, error)

VulnerabilityWithFixedInFromDatabaseModel converts database VulnerabilityWithFixedIn to api Vulnerability.

func (*Vulnerability) Descriptor Uses

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

func (*Vulnerability) GetAffectedVersions Uses

func (m *Vulnerability) GetAffectedVersions() []*Feature

func (*Vulnerability) GetDescription Uses

func (m *Vulnerability) GetDescription() string

func (*Vulnerability) GetFixedBy Uses

func (m *Vulnerability) GetFixedBy() string
func (m *Vulnerability) GetLink() string

func (*Vulnerability) GetMetadata Uses

func (m *Vulnerability) GetMetadata() string

func (*Vulnerability) GetName Uses

func (m *Vulnerability) GetName() string

func (*Vulnerability) GetNamespaceName Uses

func (m *Vulnerability) GetNamespaceName() string

func (*Vulnerability) GetSeverity Uses

func (m *Vulnerability) GetSeverity() string

func (*Vulnerability) ProtoMessage Uses

func (*Vulnerability) ProtoMessage()

func (*Vulnerability) Reset Uses

func (m *Vulnerability) Reset()

func (*Vulnerability) String Uses

func (m *Vulnerability) String() string

Package clairpb imports 17 packages (graph) and is imported by 9 packages. Updated 2019-04-15. Refresh now. Tools for package owners.