explainer

package
v0.0.0-...-056dfb2 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Explanation

type Explanation struct {
	Target    *ExplanationTarget
	Ingress   []*ExplanationIngress
	Egress    []*ExplanationEgress
	IsIngress bool
	IsEgress  bool
}

func ExplainPolicy

func ExplainPolicy(policy *networkingv1.NetworkPolicy) *Explanation

func (*Explanation) PrettyPrint

func (e *Explanation) PrettyPrint() string

type ExplanationEgress

type ExplanationEgress struct {
	Ports []string
	Rules []*ExplanationRule
}

func ExplainEgress

func ExplainEgress(policy *networkingv1.NetworkPolicy) []*ExplanationEgress

func (*ExplanationEgress) PrettyPrint

func (ee *ExplanationEgress) PrettyPrint() string

func (*ExplanationEgress) PrettyPrintPorts

func (ee *ExplanationEgress) PrettyPrintPorts() string

func (*ExplanationEgress) PrettyPrintRules

func (ee *ExplanationEgress) PrettyPrintRules() string

type ExplanationIngress

type ExplanationIngress struct {
	Ports []string
	Rules []*ExplanationRule
}

func ExplainIngress

func ExplainIngress(policy *networkingv1.NetworkPolicy) []*ExplanationIngress

func (*ExplanationIngress) PrettyPrint

func (ei *ExplanationIngress) PrettyPrint() string

func (*ExplanationIngress) PrettyPrintPorts

func (ei *ExplanationIngress) PrettyPrintPorts() string

func (*ExplanationIngress) PrettyPrintRules

func (ei *ExplanationIngress) PrettyPrintRules() string

type ExplanationRule

type ExplanationRule struct {
	Pods       string
	Namespaces string
}

type ExplanationTarget

type ExplanationTarget struct {
	Namespace string
	Pods      string
}

Jump to

Keyboard shortcuts

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