Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddToManager ¶
func AddToManager(m manager.Manager, opa *constraintclient.Client, processExcluder *process.Excluder, cacheLister *CacheLister) error
AddToManager adds audit manager to the Manager.
Types ¶
type CacheLister ¶
type CacheLister struct {
// contains filtered or unexported fields
}
CacheLister lists objects from the audit controller's cache.
func NewAuditCacheLister ¶
func NewAuditCacheLister(auditCache client.Reader, watched *watch.Set) *CacheLister
NewAuditCacheLister instantiates a new AuditCache which will read objects in watched from auditCache.
func (*CacheLister) ListObjects ¶
func (l *CacheLister) ListObjects(ctx context.Context) ([]unstructured.Unstructured, error)
ListObjects lists all objects from the audit cache.
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager allows us to audit resources periodically.
type Result ¶
func ToResults ¶
func ToResults(obj *unstructured.Unstructured, resp *types.Responses) []Result
Click to show internal directories.
Click to hide internal directories.