Documentation ¶
Index ¶
- func ValidateIPBlock(ipb *networking.IPBlock, fldPath *field.Path) field.ErrorList
- func ValidateNetworkPolicy(np *networking.NetworkPolicy) field.ErrorList
- func ValidateNetworkPolicyName(name string, prefix bool) []string
- func ValidateNetworkPolicyPeer(peer *networking.NetworkPolicyPeer, peerPath *field.Path) field.ErrorList
- func ValidateNetworkPolicyPort(port *networking.NetworkPolicyPort, portPath *field.Path) field.ErrorList
- func ValidateNetworkPolicySpec(spec *networking.NetworkPolicySpec, fldPath *field.Path) field.ErrorList
- func ValidateNetworkPolicyUpdate(update, old *networking.NetworkPolicy) field.ErrorList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateIPBlock ¶
ValidateIPBlock validates a cidr and the except fields of an IpBlock NetworkPolicyPeer
func ValidateNetworkPolicy ¶
func ValidateNetworkPolicy(np *networking.NetworkPolicy) field.ErrorList
ValidateNetworkPolicy validates a networkpolicy.
func ValidateNetworkPolicyName ¶
ValidateNetworkPolicyName can be used to check whether the given networkpolicy name is valid.
func ValidateNetworkPolicyPeer ¶
func ValidateNetworkPolicyPeer(peer *networking.NetworkPolicyPeer, peerPath *field.Path) field.ErrorList
ValidateNetworkPolicyPeer validates a NetworkPolicyPeer
func ValidateNetworkPolicyPort ¶
func ValidateNetworkPolicyPort(port *networking.NetworkPolicyPort, portPath *field.Path) field.ErrorList
ValidateNetworkPolicyPort validates a NetworkPolicyPort
func ValidateNetworkPolicySpec ¶
func ValidateNetworkPolicySpec(spec *networking.NetworkPolicySpec, fldPath *field.Path) field.ErrorList
ValidateNetworkPolicySpec tests if required fields in the networkpolicy spec are set.
func ValidateNetworkPolicyUpdate ¶
func ValidateNetworkPolicyUpdate(update, old *networking.NetworkPolicy) field.ErrorList
ValidateNetworkPolicyUpdate tests if an update to a NetworkPolicy is valid.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.