policy

package
v1.0.13 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2018 License: MIT Imports: 2 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetOutBoundNatExceptionList added in v1.0.13

func GetOutBoundNatExceptionList(policies []Policy) ([]string, error)

GetOutBoundNatExceptionList returns exception list for outbound nat policy

func SerializePolicies added in v1.0.4

func SerializePolicies(policyType CNIPolicyType, policies []Policy) []json.RawMessage

SerializePolicies serializes policies to json.

Types

type CNIPolicyType

type CNIPolicyType string
const (
	NetworkPolicy     CNIPolicyType = "NetworkPolicy"
	EndpointPolicy    CNIPolicyType = "EndpointPolicy"
	OutBoundNatPolicy CNIPolicyType = "OutBoundNAT"
)

type Policy

type Policy struct {
	Type CNIPolicyType
	Data json.RawMessage
}

Jump to

Keyboard shortcuts

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