kubernetes

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateClusterPolicyReport

func CreateClusterPolicyReport() *v1alpha2.ClusterPolicyReport

func CreatePolicyReport

func CreatePolicyReport(ns string) *v1alpha2.PolicyReport

func GeneratePolicyReportName

func GeneratePolicyReportName(ns string) string

func GeneratePolicyReportResultID

func GeneratePolicyReportResultID(containerID string, eventID int, timestamp int) string

func MapEvent

func MapEvent(event tracee.Event) v1alpha2.PolicyReportResult

func MapResult

func MapResult(severity Severity) v1alpha2.PolicyResult

func MapServerityFromInt

func MapServerityFromInt(severity Severity) v1alpha2.PolicySeverity

Types

type Client

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

func NewPolicyReportClient

func NewPolicyReportClient(client pr.Wgpolicyk8sV1alpha2Interface, maxResults int) *Client

func (*Client) ProcessEvent

func (p *Client) ProcessEvent(ctx context.Context, event tracee.Event) error

type Severity

type Severity = int

func MapServerityFrom

func MapServerityFrom(severity string) Severity

Jump to

Keyboard shortcuts

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