Documentation ¶
Index ¶
- type Policies
- func (p *Policies) Applicable(resource client.Object) (bool, string, error)
- func (p *Policies) Eval(ctx context.Context, resource client.Object) (scan.Results, error)
- func (p *Policies) Hash(kind string) (string, error)
- func (p *Policies) Libraries() map[string]string
- func (p *Policies) ModulePolicyByKind(kind string) ([]string, error)
- func (p *Policies) ModulesByKind(kind string) (map[string]string, error)
- func (p *Policies) PoliciesByKind(kind string) (map[string]string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Policies ¶
type Policies struct {
// contains filtered or unexported fields
}
func NewPolicies ¶
func NewPolicies(data map[string]string, cac configauditreport.ConfigAuditConfig, log logr.Logger) *Policies
func (*Policies) Applicable ¶
func (*Policies) Eval ¶
Eval evaluates Rego policies with Kubernetes resource client.Object as input.
func (*Policies) ModulePolicyByKind ¶ added in v0.0.7
func (*Policies) ModulesByKind ¶
Click to show internal directories.
Click to hide internal directories.