v3

package
v0.0.0-...-41c8d9c Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2019 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetClairStatus

func GetClairStatus(store database.Datastore) (*pb.ClairStatus, error)

GetClairStatus retrieves the current status of Clair and wrap it inside protobuf struct.

func ListenAndServe

func ListenAndServe(addr, certFile, keyFile, caPath string, store database.Datastore) error

ListenAndServe serves the Clair v3 API over gRPC and the gRPC Gateway.

Types

type AncestryServer

type AncestryServer struct {
	Store database.Datastore
}

AncestryServer implements AncestryService interface for serving RPC.

func (*AncestryServer) GetAncestry

GetAncestry implements retrieving an ancestry via the Clair gRPC service.

func (*AncestryServer) GetPbAncestryLayer

GetPbAncestryLayer retrieves an ancestry layer with vulnerabilities and features in an ancestry based on the provided database layer.

func (*AncestryServer) PostAncestry

PostAncestry implements posting an ancestry via the Clair gRPC service.

type NotificationServer

type NotificationServer struct {
	Store database.Datastore
}

NotificationServer implements NotificationService interface for serving RPC.

func (*NotificationServer) GetNotification

GetNotification implements retrieving a notification via the Clair gRPC service.

func (*NotificationServer) MarkNotificationAsRead

MarkNotificationAsRead implements deleting a notification via the Clair gRPC service.

type StatusServer

type StatusServer struct {
	Store database.Datastore
}

StatusServer implements StatusService interface for serving RPC.

func (*StatusServer) GetStatus

GetStatus implements getting the current status of Clair via the Clair service.

Directories

Path Synopsis
Package clairpb is a generated protocol buffer package.
Package clairpb is a generated protocol buffer package.

Jump to

Keyboard shortcuts

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