auditor

package
v3.6.3 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuditEvent added in v3.4.0

type AuditEvent struct {
	Type AuditEventType
	Data interface{}
}

type AuditEventType added in v3.4.0

type AuditEventType string
const (
	AuditEventTypeCommand      AuditEventType = "command"
	AuditEventTypePolicyChange AuditEventType = "policy-change"
	AuditEventTypeEntityChange AuditEventType = "entity-change"
	AuditEventTypeEntityDelete AuditEventType = "entity-delete"
	AuditEventTypeEntitiesSync AuditEventType = "entities-sync"
	AuditEventTypePeriodic     AuditEventType = "periodic-audit"
	AuditEventTypeInitial      AuditEventType = "initial-audit"
)

type Auditor

type Auditor struct {
	// contains filtered or unexported fields
}

func NewAuditor

func NewAuditor(entitiesWatcher entities.EntitiesWatcherSource) *Auditor

func (*Auditor) HandleAuditCommand added in v3.4.0

func (a *Auditor) HandleAuditCommand() error

func (*Auditor) HandleConstraints

func (a *Auditor) HandleConstraints(constraints []*agent.Constraint) map[string]error

func (*Auditor) OnCacheSync added in v3.4.0

func (a *Auditor) OnCacheSync()

func (*Auditor) OnResourceAdd added in v3.4.0

func (a *Auditor) OnResourceAdd(gvrk kuber.GroupVersionResourceKind, obj unstructured.Unstructured)

func (*Auditor) OnResourceDelete added in v3.4.0

func (a *Auditor) OnResourceDelete(gvrk kuber.GroupVersionResourceKind, obj unstructured.Unstructured)

func (*Auditor) OnResourceUpdate added in v3.4.0

func (a *Auditor) OnResourceUpdate(gvrk kuber.GroupVersionResourceKind, oldObj, newObj unstructured.Unstructured)

func (*Auditor) SetAuditResultHandler

func (a *Auditor) SetAuditResultHandler(handler agent.AuditResultHandler)

func (*Auditor) Start

func (a *Auditor) Start(ctx context.Context) error

func (*Auditor) Stop

func (a *Auditor) Stop() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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