-
Hello! There are two golang clients in the repository:
What is recommended way to communicate with ClairV4 API from third-party golang applications? Should I redevelop client by myself or maybe things described above is a bug and can be fixed? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
The The client in What sorts of things do you want to do with a clair client? Starting from there, we can probably sketch out an API for a go client package. |
Beta Was this translation helpful? Give feedback.
The
httptransport/client
is meant for intraservice use -- it implements interfaces so that the microservices can be swapped between local and remote implementations.The client in
clairctl
is much closer to what an external client may want, but I haven't exported it out of an abundance of caution.What sorts of things do you want to do with a clair client? Starting from there, we can probably sketch out an API for a go client package.