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

package v3

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

Index

Package Files

rpc.go server.go util.go

func GetClairStatus Uses

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

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

func ListenAndServe Uses

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

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

type AncestryServer Uses

type AncestryServer struct {
    Store database.Datastore
}

AncestryServer implements AncestryService interface for serving RPC.

func (*AncestryServer) GetAncestry Uses

func (s *AncestryServer) GetAncestry(ctx context.Context, req *pb.GetAncestryRequest) (*pb.GetAncestryResponse, error)

GetAncestry implements retrieving an ancestry via the Clair gRPC service.

func (*AncestryServer) GetPbAncestryLayer Uses

func (s *AncestryServer) GetPbAncestryLayer(layer database.AncestryLayer) (*pb.GetAncestryResponse_AncestryLayer, error)

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

func (*AncestryServer) PostAncestry Uses

func (s *AncestryServer) PostAncestry(ctx context.Context, req *pb.PostAncestryRequest) (*pb.PostAncestryResponse, error)

PostAncestry implements posting an ancestry via the Clair gRPC service.

type NotificationServer Uses

type NotificationServer struct {
    Store database.Datastore
}

NotificationServer implements NotificationService interface for serving RPC.

func (*NotificationServer) GetNotification Uses

func (s *NotificationServer) GetNotification(ctx context.Context, req *pb.GetNotificationRequest) (*pb.GetNotificationResponse, error)

GetNotification implements retrieving a notification via the Clair gRPC service.

func (*NotificationServer) MarkNotificationAsRead Uses

func (s *NotificationServer) MarkNotificationAsRead(ctx context.Context, req *pb.MarkNotificationAsReadRequest) (*pb.MarkNotificationAsReadResponse, error)

MarkNotificationAsRead implements deleting a notification via the Clair gRPC service.

type StatusServer Uses

type StatusServer struct {
    Store database.Datastore
}

StatusServer implements StatusService interface for serving RPC.

func (*StatusServer) GetStatus Uses

func (s *StatusServer) GetStatus(ctx context.Context, req *pb.GetStatusRequest) (*pb.GetStatusResponse, error)

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

Directories

PathSynopsis
clairpbPackage clairpb is a generated protocol buffer package.

Package v3 imports 18 packages (graph) and is imported by 8 packages. Updated 2019-07-16. Refresh now. Tools for package owners.