Import the API client from https://github.com/anchore/client-go Basically the same code as here, but can be re-used in other projects.