bundled

package
v0.0.0-...-f8e543c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 26, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL