Documentation
¶
Index ¶
- type AuditEvent
- type AuditEventType
- type Auditor
- func (a *Auditor) HandleAuditCommand() error
- func (a *Auditor) HandleConstraints(constraints []*agent.Constraint) map[string]error
- func (a *Auditor) OnCacheSync()
- func (a *Auditor) OnResourceAdd(gvrk kuber.GroupVersionResourceKind, obj unstructured.Unstructured)
- func (a *Auditor) OnResourceDelete(gvrk kuber.GroupVersionResourceKind, obj unstructured.Unstructured)
- func (a *Auditor) OnResourceUpdate(gvrk kuber.GroupVersionResourceKind, oldObj, newObj unstructured.Unstructured)
- func (a *Auditor) SetAuditResultHandler(handler agent.AuditResultHandler)
- func (a *Auditor) Start(ctx context.Context) error
- func (a *Auditor) Stop() error
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 (*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)
Click to show internal directories.
Click to hide internal directories.