package
0.0.0-20240821020240-4b34f726d022
Repository: https://github.com/redhatinsights/insights-results-aggregator-mock.git
Documentation: pkg.go.dev

# Functions

BasicTests implements basic tests for REST API apiPrefix.
ServerTests run all tests for basic REST API endpoints.

# Constants

ContentTypeJSON represents MIME type for JSON format.
ContentTypeText represents MIME type for plain text format.

# Structs

Ack represents one rule Ack.
AckListMetadata represents metadata about rule acks.
AckListResponse represents response containing list of acks.
Alert represents one entry in URP predictions.
AllReportsForOrganizationResponse represents response with all reports for given organization.
ClusterEntry structure represents cluster info in namespaces/dvo payload.
ClusterListInRequest represents request body containing list of clusters.
ClustersDetails represents response containing list of clusters for which selected rule was hit.
ClustersDetailsMetadata represents metadata about number of cluster hits etc.
ClustersResponse represents response containing list of clusters for given organization.
ContentAndGroups represents response from /content endpoint.
DVOWorkloadItem structure represents one entry in list of workloads.
FullReportResponse represents response containing report for given cluster.
Group structure represents one group entry in groups array.
GroupsResponse represents response from /organizations endpoint.
Justification represents structure with justification for acking a rule.
ListOfDVONamespaces structure represents response for namespaces/dvo REST API endpoint.
MultipleReportsResponse represents response from the server that contains results for multiple clusters together with overall status.
NamespaceEntry structure represents namespace info in namespaces/dvo payload.
OperatorCondition represents one entry in URP predictions.
OrganizationsResponse represents response from /organizations endpoint.
Report structure represents one report in namespaces/dvo list of reports.
RequestReport represents response containing report stored under request ID { "cluster": "34c3ecc5-624a-49a5-bab8-4fdc5e51a266", "requestID": "3oeiljuhkvbi61hf6tpgk4p2xxa", "status": "processed", "report": null } or: { "cluster": "34c3ecc5-624a-49a5-bab8-4fdc5e51a267", "requestID": "3nl2vda87ld6e3s25jlk7n2dna", "status": "processed", "report": [ { "rule_fqdn": "ccx_rules_ocp.external.rules.nodes_requirements_check.report", "error_key": "NODES_MINIMUM_REQUIREMENTS_NOT_MET", "description": "Lorem ipsum...", "total_risk": 1 }, { "rule_fqdn": "samples_op_failed_image_import_check.report", "error_key": "SAMPLES_FAILED_IMAGE_IMPORT_ERR", "description": "Lorem ipsum...", "total_risk": 2 } ] }.
RequestResponse represents response containing list of requests.
RequestStatus represents response containing status of one request.
RequestStruct represents one entry in list of requests.
RuleAckRequest represents structure used to request rule to be acked via REST API.
StatusOnlyResponse represents response containing just a status.
URPMetadata structure represents sub-node in response payload returned from URP endpoint.
URPPredictions structure represends sub-node in URP recommendation.
URPRecommendations structure represents sub-node in response payload returned from URP endpoint.
URPResponse structure represents response payload returned from URP endpoint.

# Type aliases

RequestList represents trivial list of requests to be send to server.