kubeaudit

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auditor

type Auditor struct {
	KubeauditConfig kubeauditconfig.KubeauditConfig
	Report          kubeaudit.Report
	Klustair        struct {
		ReportUid    string `json:"report_uid"`
		NamespaceUid string `json:"namespace_uid"`
	}
}

func (*Auditor) Audit

func (a *Auditor) Audit(namespace string) []KubeauditReport

func (*Auditor) SetConfig

func (a *Auditor) SetConfig(auditors []string) kubeauditconfig.KubeauditConfig

type KubeauditReport

type KubeauditReport struct {
	Uid                string `json:"uid"`
	ReportUid          string `json:"report_uid"`
	NamespaceUid       string `json:"namespace_uid"`
	AuditTime          string `json:"time"`
	AuditType          string `json:"audit_type"`
	AuditName          string `json:"AuditResultName"`
	Message            string `json:"msg"`
	SeverityLevel      string `json:"level"`
	Capability         string `json:"Capability"`
	Container          string `json:"Container"`
	MissingAnnotations string `json:"MissingAnnotations"`
	ResourceName       string `json:"ResourceName"`
	ResourceNamespace  string `json:"ResourceNamespace"`
	ResourceApiVersion string `json:"ResourceApiVersion"`
}

Jump to

Keyboard shortcuts

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