Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetOutBoundNatExceptionList ¶ added in v1.0.13
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 }
Click to show internal directories.
Click to hide internal directories.