patchman-clients

This repo stores automatically generated Go clients for Red Hat Insights projects:

These clients are primarily used in patchman-engine project.

Generate Go clients

This repo also contains script to generate current version of clients using containerized openapi-generator-cli tool.

To generate current version of clients run:

./generate-clients.sh # Use --docker or --podman to select specific container engine.

Note: be careful and don't delete {inventory,rbac,vmaas}/client_test.go files needed for build testing.

Test compilation

You can test locally whether newly generated sources are valid and possible to build.

docker-compose -f docker-compose.test.yml up --build test