audit

package
v3.0.4-beta.2+incompat... Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2019 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddToManager

func AddToManager(m manager.Manager, opa *opa.Client) error

AddToManager adds audit manager to the Manager

Types

type AuditManager

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

AuditManager allows us to audit resources periodically

func New

func New(ctx context.Context, cfg *rest.Config, opa *opa.Client) (*AuditManager, error)

New creates a new manager for audit

func (*AuditManager) Start

func (am *AuditManager) Start(stop <-chan struct{}) error

Start implements controller.Controller

type StatusViolation

type StatusViolation struct {
	Kind              string `json:"kind"`
	Name              string `json:"name"`
	Namespace         string `json:"namespace,omitempty"`
	Message           string `json:"message"`
	EnforcementAction string `json:"enforcementAction"`
}

StatusViolation represents each violation under status

Jump to

Keyboard shortcuts

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