Versions in this module Expand all Collapse all v1 v1.0.0 Jul 13, 2023 Changes in this version + const AckAcknowledgePostEndpoint + const AckDeleteEndpoint + const AckGetEndpoint + const AckListEndpoint + const AckUpdateEndpoint + const ClusterInfoEndpoint + const ClustersDetail + const ClustersForOrganizationEndpoint + const ClustersRecommendationsEndpoint + const Content + const ContentV2 + const DbgDeleteClustersEndpoint + const DbgDeleteOrganizationsEndpoint + const DbgGetVoteOnRuleEndpoint + const DbgOrganizationsEndpoint + const DeleteClustersEndpoint + const DeleteOrganizationsEndpoint + const DisableRuleFeedbackEndpoint + const DisableRuleForClusterEndpoint + const DislikeRuleEndpoint + const EnableRuleForClusterEndpoint + const ExcludingImpacting + const GetDisabledParam + const GetVoteOnRuleEndpoint + const ImpactingParam + const IncludingImpacting + const InfoEndpoint + const JSONContentType + const JWTAuthTokenHeader + const LikeRuleEndpoint + const ListAllRequestIDs + const MainEndpoint + const MetricsEndpoint + const OSDEligibleParam + const OkMsg + const OldReportEndpoint + const OnlyImpacting + const OrganizationsEndpoint + const OverviewEndpoint + const Rating + const RecommendationsListEndpoint + const RedisNotInitializedErrorMessage + const ReportEndpoint + const ReportEndpointV2 + const ReportForListOfClustersEndpoint + const ReportForListOfClustersPayloadEndpoint + const ReportMetainfoEndpoint + const RequestIDNotFound + const RequestIDParam + const RequestsForClusterNotFound + const ResetVoteOnRuleEndpoint + const RuleContent + const RuleContentV2 + const RuleContentWithUserData + const RuleGroupsEndpoint + const RuleHitsForRequestID + const RuleIDParamName + const RuleIDs + const SingleRuleEndpoint + const StatusOfRequestID + const StatusProcessed + const UpgradeRisksPredictionEndpoint + const UpgradeRisksPredictionServiceEndpoint + const XRHAuthTokenHeader + func ValidateRequestID(requestID string) (types.RequestID, error) + type AMSAPIUnavailableError struct + func (*AMSAPIUnavailableError) Error() string + type AggregatorServiceUnavailableError struct + func (*AggregatorServiceUnavailableError) Error() string + type AuthenticationError struct + ErrString string + func (e *AuthenticationError) Error() string + type BadBodyContent struct + func (*BadBodyContent) Error() string + type Configuration struct + APIdbgPrefix string + APIv1Prefix string + APIv1SpecFile string + APIv2Prefix string + APIv2SpecFile string + Address string + Auth bool + AuthType string + Debug bool + EnableCORS bool + EnableInternalRulesOrganizations bool + InternalRulesOrganizations []types.OrgID + LogAuthToken bool + UseHTTPS bool + UseOrgClustersFallback bool + type ContentServiceUnavailableError struct + func (*ContentServiceUnavailableError) Error() string + type HTTPServer struct + Config Configuration + ErrorChannel chan error + ErrorFoundChannel chan bool + GroupsChannel chan []groups.Group + InfoParams map[string]string + Serv *http.Server + ServicesConfig services.Configuration + func New(config Configuration, servicesConfig services.Configuration, ...) *HTTPServer + func (server *HTTPServer) Authentication(next http.Handler, noAuthURLs []string) http.Handler + func (server *HTTPServer) GetAuthToken(request *http.Request) (*types.Identity, error) + func (server *HTTPServer) GetCurrentOrgID(request *http.Request) (types.OrgID, error) + func (server *HTTPServer) GetCurrentOrgIDUserIDFromToken(request *http.Request) (types.OrgID, types.UserID, error) + func (server *HTTPServer) GetCurrentUserID(request *http.Request) (types.UserID, error) + func (server *HTTPServer) Initialize() http.Handler + func (server *HTTPServer) Start() error + func (server *HTTPServer) Stop(ctx context.Context) error + func (server HTTPServer) SetAMSInfoInReport(clusterID types.ClusterName, report *types.SmartProxyReportV2) + type NoBodyError struct + func (*NoBodyError) Error() string + type ParamsParsingError struct + func (*ParamsParsingError) Error() string + type ProxyOptions struct + RequestModifiers []RequestModifier + ResponseModifiers []ResponseModifier + type RequestModifier func(request *http.Request) (*http.Request, error) + type ResponseModifier func(response *http.Response) (*http.Response, error) + type RouterMissingParamError struct + ParamName string + func (e *RouterMissingParamError) Error() string + type RouterParsingError struct + ErrString string + ParamName string + ParamValue interface{} + func (e *RouterParsingError) Error() string + type UpgradesDataEngServiceUnavailableError struct + func (*UpgradesDataEngServiceUnavailableError) Error() string