Documentation
¶
Index ¶
- func GetClairStatus(store database.Datastore) (*pb.ClairStatus, error)
- func ListenAndServe(addr, certFile, keyFile, caPath string, store database.Datastore) error
- type AncestryServer
- func (s *AncestryServer) GetAncestry(ctx context.Context, req *pb.GetAncestryRequest) (*pb.GetAncestryResponse, error)
- func (s *AncestryServer) GetPbAncestryLayer(layer database.AncestryLayer) (*pb.GetAncestryResponse_AncestryLayer, error)
- func (s *AncestryServer) PostAncestry(ctx context.Context, req *pb.PostAncestryRequest) (*pb.PostAncestryResponse, error)
- type NotificationServer
- type StatusServer
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.
Types ¶
type AncestryServer ¶
AncestryServer implements AncestryService interface for serving RPC.
func (*AncestryServer) GetAncestry ¶
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 ¶
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 ¶
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 ¶
NotificationServer implements NotificationService interface for serving RPC.
func (*NotificationServer) GetNotification ¶
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 ¶
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 ¶
StatusServer implements StatusService interface for serving RPC.
func (*StatusServer) GetStatus ¶
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.