Documentation ¶
Overview ¶
Package bundled contains bundled rules
Package bundled contains bundled rules ¶
Package bundled contains bundled rules ¶
Package bundled contains bundled rules
Index ¶
Constants ¶
View Source
const ( // RefreshUserCacheRuleID is the rule ID used to refresh users and groups cache RefreshUserCacheRuleID = "refresh_user_cache" // RefreshSBOMRuleID is the rule ID used to refresh SBOM RefreshSBOMRuleID = "refresh_sbom" // NeedRefreshSBOMRuleID is the rule ID used to request a SBOM refresh NeedRefreshSBOMRuleID = "need_refresh_sbom" )
Variables ¶
View Source
var InternalVariables = [...]string{
needRefreshSBOMVariableScope + "." + needRefreshSBOMVariableName,
}
InternalVariables lists all variables used by internal rules
Functions ¶
This section is empty.
Types ¶
type PolicyProvider ¶
type PolicyProvider struct {
// contains filtered or unexported fields
}
PolicyProvider specify the policy provider for bundled policies
func NewPolicyProvider ¶
func NewPolicyProvider(cfg *config.RuntimeSecurityConfig) *PolicyProvider
NewPolicyProvider returns a new bundled policy provider
func (*PolicyProvider) Close ¶
func (p *PolicyProvider) Close() error
Close implements the PolicyProvider interface
func (*PolicyProvider) LoadPolicies ¶
func (p *PolicyProvider) LoadPolicies([]rules.MacroFilter, []rules.RuleFilter) ([]*rules.Policy, *multierror.Error)
LoadPolicies implements the PolicyProvider interface
func (*PolicyProvider) SetOnNewPoliciesReadyCb ¶
func (p *PolicyProvider) SetOnNewPoliciesReadyCb(func())
SetOnNewPoliciesReadyCb implements the PolicyProvider interface
func (*PolicyProvider) Start ¶
func (p *PolicyProvider) Start()
Start implements the PolicyProvider interface
func (*PolicyProvider) Type ¶
func (p *PolicyProvider) Type() string
Type implements the PolicyProvider interface
Click to show internal directories.
Click to hide internal directories.