Tamal Saha
0ed4126240
Fix cert and key file mix up
...
Signed-off-by: Tamal Saha <tamal@appscode.com>
2019-01-02 12:31:58 -08:00
Sida Chen
69c0c84348
api: Rename detector type to DType
...
Rename detector type to DType because all reserved key words should be
avoided used as type name or variable name.
2018-10-08 14:34:19 -04:00
Sida Chen
48427e9b88
api: Add detectors for RPC
...
Change the V3 implementation to accommondate the detectors.
2018-10-08 10:42:40 -04:00
Sida Chen
9f5d1ea4e1
v3: associate feature and namespace with detector
2018-10-01 11:04:08 -04:00
Sida Chen
f98ff58afd
Merge pull request #619 from KeyboardNerd/sidac/rm_layer
...
database: Remove LayerWithContent from interface
2018-09-13 14:36:26 -04:00
Sida Chen
e160616723
database: Use LayerWithContent as Layer
2018-09-13 13:21:39 -04:00
Jimmy Zelinskie
089a4e0f0a
Merge pull request #617 from jzelinskie/grpc-refactor
...
Introduce pkg/grpcutil
2018-09-11 14:57:13 -04:00
Jimmy Zelinskie
1ec2759550
pkg/grpcutil: init
...
This change refactors gRPC code used within the v3 API package into
generic code that can be used for managing gRPC and gRPC Gateway.
2018-09-11 14:46:52 -04:00
Sida Chen
6c69377343
Merge pull request #614 from KeyboardNerd/sidac/simplify
...
Replace Ancestry with AncestryWithContent struct in database models
2018-09-11 10:50:53 -04:00
Jimmy Zelinskie
dc6be5d1b0
api: remove handleShutdown func
...
This function was used for handling errors in the graceful library and
was never necessary for the v3 API.
2018-09-10 13:26:53 -04:00
Sida Chen
5d725e67b0
Replace Ancestry with AncestryWithContent struct in database models
...
As one of the steps to simplifies the codebase, the AncestryWithContent
struct is renamed to Ancestry, and Ancestry is removed. It will cause
the PostAncestry request to be slower.
2018-09-10 12:48:23 -04:00
Jimmy Zelinskie
0565938956
pkg/pagination: add token type
...
This change pulls as much pagination logic out of the database
implementation as possible. Database implementations should now be able
to marshal whatever state they need into opaque tokens with the
utilities in the pagination package.
2018-09-07 16:26:56 -04:00
Sida Chen
2827b9342b
Update Database and Worker implementation for layer-wise feature
...
Feature extraction algorithm is changed to associate features with
ancestry layer. Database is updated to keep the relationship.
2018-09-06 13:56:03 -04:00
Sida Chen
4b64151330
Update gRPC server implementation
2018-09-05 11:34:06 -04:00
Sida Chen
6a44052e31
Update Clair V3 API to provide layer-wise feature
2018-09-05 11:33:27 -04:00
Sida Chen
d28f3214ce
Add Status endpoint with Clair configuration
...
Implement a status endpoint providing the current lister/detector in
the current instance of Clair.
2018-08-30 16:55:18 -04:00
Jimmy Zelinskie
f550dd16a0
api/v3: remove dependency on google empty message
2018-04-23 15:49:34 -04:00
Jimmy Zelinskie
d7a751e0d4
api/v3: prototool format
2018-04-23 15:32:03 -04:00
Jimmy Zelinskie
6b9f668ea0
api/v3/clairpb: document and regenerate protos
2018-04-10 14:47:57 -04:00
Jimmy Zelinskie
a5b3e747a0
Merge pull request #538 from jzelinskie/dockerize-protogen
...
generate protobufs in docker
2018-04-04 16:55:50 -04:00
Jimmy Zelinskie
ec5014f8a1
api/v3/clairpb: regen protobufs
2018-04-04 16:17:49 -04:00
Jimmy Zelinskie
389b6e9927
api/v3/clairpb: generate protobufs in docker
...
This removes the requirement of the build machine having protobuf and
any extensions installed.
2018-04-04 16:16:50 -04:00
Sida Chen
a75b8ac7ff
api,database: updated version_format documentation.
...
Version format documentation is updated in the example of feature
struct and created in clair.proto along with accordingly generated
swagger and protobuf files.
Fixes #514
2018-02-02 00:59:11 -05:00
Sida Chen
0151dbaef8
API: change api port to api addr, rename RunV2 to Run.
...
Fixes #446
2017-08-18 18:24:34 -04:00
Sida Chen
58022d97e3
api: renamed V2 API to V3 API for consistency.
2017-08-16 17:26:53 -04:00