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

# Functions

New constructs new implementation of Server interface.
ValidateClusterName checks that the cluster name is a valid UUID.
ValidateRequestID checks that the request ID has proper format.

# Constants

AckAcknowledgePostEndpoint acknowledges (and therefore hides) a rule from view in an account.
AckDeleteEndpoint deletes an acknowledgement for a rule, by its rule ID.
AckGetEndpoint acknowledges (and therefore hides) a rule from view in an account.
AckListEndpoint list acks from this account where the rule is active.
AckUpdateEndpoint updates an acknowledgement for a rule, by rule ID.
AllDVONamespaces endpoint address.
ClusterManaged is the cluster name for the response when a cluster in "managed".
ClusterNoAMS is the cluster name for the response when the AMS API is not available.
ClusterNoData is the cluster name for the response when the Upgrade risks prediction service returns a 404.
ClusterOk is the cluster name for a OK response with no upgrade risks detected.
ClusterOkFailUpgrade is the cluster name for a OK response with upgrade risks detected.
ClustersEndpoint returns reports for selected clusters.
ClustersForOrganizationEndpoint returns all clusters for {organization}.
ClustersInOrgEndpoint returns reports for all clusters in selected organization.
ClusterUnavailable is the cluster name for the response when the Upgrade risks prediction service is unavailable.
ContentEndpoint defines suffix of the content request endpoint.
DeleteClustersEndpoint deletes all {clusters}(comma separated array).
DeleteOrganizationsEndpoint deletes all {organizations}(comma separated array).
DisableRuleForClusterEndpoint disables a rule for specified cluster.
DislikeRuleEndpoint dislikes rule with {rule_id} for {cluster} using current user(from auth header).
DVONamespaceForCluster1 endpoint address.
DVONamespaceForCluster2 endpoint address.
DVONamespaceInfo endpoint address.
DVONamespaceReports endpoint address.
EnableRuleForClusterEndpoint re-enables a rule for specified cluster.
ExitEndpoint perform server shutdown (in Debug mode only).
GetVoteOnRuleEndpoint is an endpoint to get vote on rule.
GroupsEndpoint defines suffix of the groups request endpoint.
InfoEndpoint defines suffix for the endpoint to return services info.
LikeRuleEndpoint likes rule with {rule_id} for {cluster} using current user(from auth header).
ListAllRequestIDs should return list of all request IDs detected for given cluster.
MainEndpoint defines suffix of the root endpoint.
MetricsEndpoint returns prometheus metrics.
OrganizationsEndpoint returns all organizations.
ReportEndpoint returns report for provided {organization} and {cluster}.
ReportForClusterEndpoint returns report for provided {cluster} (w/o organization).
ReportForClusterEndpoint2 returns report for provided {cluster} (w/o organization).
ResetVoteOnRuleEndpoint resets vote on rule with {rule_id} for {cluster} using current user(from auth header).
RuleClusterDetailEndpoint should return a list of all the clusters IDs affected by this rule.
RuleEndpoint is an endpoint to create&delete a rule.
RuleErrorKeyEndpoint is for endpoints to create&delete a rule_error_key (DEBUG only) and for endpoint to get a rule.
RuleGroupsEndpoint is a simple redirect endpoint to the insights-content-service API specified in configuration.
RuleHitsForRequestID should return simplified results for given cluster and requestID.
StatusOfRequestID should return status of processing one given request ID.
StatusProcessed is message returned for already processed reports (rule hits).
UpgradeRisksPredictionEndpoint returns the prediction about upgrading the given cluster.
#nosec G101.

# Structs

AllDVONamespacesResponse is a data structure that represents list of namespaces that is returned from REST API endpoint used for Workloads page.
ClusterEntry structure contains cluster UUID and cluster name.
ClusterList is a data structure that store list of cluster IDs (names).
ClusterReports is a data structure containing list of clusters, list of errors and dictionary with results per cluster.
Configuration represents configuration of REST API HTTP server.
DVOObject structure.
DVORecommendation structure represents one DVO-related recommendation.
HittingClusters is a data structure containing list of clusters hitting the given rule.
HittingClustersMetadata used to store metadata of hitting clusters.
HTTPServer in an implementation of Server interface.
MetadataEntry structure contains basic information about workload metadata.
NamespaceEntry structure contains basic information about namespace.
RequestStatus contains description about one request ID.
Workload structure represents one workload entry in list of workloads.
WorkloadsForCluster structure represents workload for one selected cluster.

# Type aliases

RequestList represents sequence of request IDs.