Documentation
¶
Overview ¶
Command postprocess applies transformations to generated.go to fix conflicts introduced by oapi-codegen that cannot be resolved via configuration alone.
Transformations applied:
- Rename symbols that conflict with the public API of this package (ClientOption, NewClient, WithHTTPClient, WithBaseURL). oapi-codegen does not provide a configuration option to rename these.
- Remove deprecated fields from PrometheusAlertRule (Description, Summary, and the deprecated KeepFiringFor) since these have been replaced by annotations and the snake_case keep_firing_for field respectively.
Usage: go run ./tools/postprocess generated.go
Click to show internal directories.
Click to hide internal directories.