kubernetes

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	FetchPolicyReports() []report.PolicyReport
	WatchPolicyReports(WatchPolicyReportCallback)
	WatchRuleValidation(WatchPolicyResultCallback)
	WatchClusterPolicyReports(cb WatchClusterPolicyReportCallback)
}

func NewDynamicClient

func NewDynamicClient(kubeconfig string, prioties map[string]report.Priority) (Client, error)

type DynamicClient

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

func (*DynamicClient) FetchPolicyReports

func (c *DynamicClient) FetchPolicyReports() []report.PolicyReport

func (*DynamicClient) WatchClusterPolicyReports

func (c *DynamicClient) WatchClusterPolicyReports(cb WatchClusterPolicyReportCallback)

func (*DynamicClient) WatchPolicyReports

func (c *DynamicClient) WatchPolicyReports(cb WatchPolicyReportCallback)

func (*DynamicClient) WatchRuleValidation

func (c *DynamicClient) WatchRuleValidation(cb WatchPolicyResultCallback)

type WatchClusterPolicyReportCallback

type WatchClusterPolicyReportCallback = func(watch.EventType, report.ClusterPolicyReport)

type WatchPolicyReportCallback

type WatchPolicyReportCallback = func(watch.EventType, report.PolicyReport)

type WatchPolicyResultCallback

type WatchPolicyResultCallback = func(report.Result)

Jump to

Keyboard shortcuts

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