Versions in this module Expand all Collapse all v1 v1.0.0 Jul 13, 2023 Changes in this version + func FetchRuleContent(rule *ctypes.RuleOnReport, OSDEligible bool) (ruleWithContentResponse *types.RuleWithContentResponse, osdFiltered bool, ...) + func GetAllContentV1() ([]types.RuleContentV1, error) + func GetAllContentV2() ([]types.RuleContentV2, error) + func GetContentForRecommendation(ruleID ctypes.RuleID) (*types.RuleWithContent, error) + func GetExternalRuleIDs() ([]ctypes.RuleID, error) + func GetExternalRuleSeverities() (map[ctypes.RuleID]int, []int, error) + func GetExternalRulesManagedInfo() (map[ctypes.RuleID]bool, error) + func GetInternalRuleIDs() ([]ctypes.RuleID, error) + func GetRuleContentV1(ruleID ctypes.RuleID) (*types.RuleContentV1, error) + func GetRuleContentV2(ruleID ctypes.RuleID) (*types.RuleContentV2, error) + func GetRuleIDs() ([]string, error) + func GetRuleWithErrorKeyContent(ruleID ctypes.RuleID, errorKey ctypes.ErrorKey) (*types.RuleWithContent, error) + func IsRuleInternal(ruleID ctypes.RuleID) bool + func LoadRuleContent(contentDir *ctypes.RuleContentDirectory) + func RuleContentToV1(res *ctypes.RuleContent) types.RuleContentV1 + func RuleContentToV2(res *ctypes.RuleContent) types.RuleContentV2 + func RunUpdateContentLoop(servicesConf services.Configuration) + func SetContentDirectoryTimeout(timeout time.Duration) + func SetRuleContentDirectory(contentDir *ctypes.RuleContentDirectory) + func StopUpdateContentLoop() + func UpdateContent(servicesConf services.Configuration) + func WaitForContentDirectoryToBeReady() error + type RuleContentDirectoryTimeoutError struct + func (e *RuleContentDirectoryTimeoutError) Error() string + type RulesWithContentStorage struct + func (s *RulesWithContentStorage) GetAllContentV1() []types.RuleContentV1 + func (s *RulesWithContentStorage) GetAllContentV2() []types.RuleContentV2 + func (s *RulesWithContentStorage) GetContentForRecommendation(ruleID ctypes.RuleID) (*types.RuleWithContent, bool) + func (s *RulesWithContentStorage) GetExternalRuleIDs() []ctypes.RuleID + func (s *RulesWithContentStorage) GetExternalRuleSeverities() (severityMap map[ctypes.RuleID]int, uniqueSeverities []int) + func (s *RulesWithContentStorage) GetExternalRulesManagedInfo() (managedMap map[ctypes.RuleID]bool) + func (s *RulesWithContentStorage) GetInternalRuleIDs() []ctypes.RuleID + func (s *RulesWithContentStorage) GetRuleIDs() []string + func (s *RulesWithContentStorage) GetRuleWithErrorKeyContent(ruleID ctypes.RuleID, errorKey ctypes.ErrorKey) (*types.RuleWithContent, bool) + func (s *RulesWithContentStorage) SetRule(ruleID ctypes.RuleID, ruleContent *ctypes.RuleContent) + func (s *RulesWithContentStorage) SetRuleWithContent(ruleID ctypes.RuleID, errorKey ctypes.ErrorKey, ...)