Documentation ¶
Index ¶
- func SetDefaultClusterNetwork(cn sdnapi.ClusterNetwork)
- func ValidateClusterNetwork(clusterNet *sdnapi.ClusterNetwork) field.ErrorList
- func ValidateClusterNetworkUpdate(obj *sdnapi.ClusterNetwork, old *sdnapi.ClusterNetwork) field.ErrorList
- func ValidateEgressNetworkPolicy(policy *sdnapi.EgressNetworkPolicy) field.ErrorList
- func ValidateEgressNetworkPolicyUpdate(obj *sdnapi.EgressNetworkPolicy, old *sdnapi.EgressNetworkPolicy) field.ErrorList
- func ValidateHostSubnet(hs *sdnapi.HostSubnet) field.ErrorList
- func ValidateHostSubnetUpdate(obj *sdnapi.HostSubnet, old *sdnapi.HostSubnet) field.ErrorList
- func ValidateNetNamespace(netnamespace *sdnapi.NetNamespace) field.ErrorList
- func ValidateNetNamespaceUpdate(obj *sdnapi.NetNamespace, old *sdnapi.NetNamespace) field.ErrorList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetDefaultClusterNetwork ¶
func SetDefaultClusterNetwork(cn sdnapi.ClusterNetwork)
SetDefaultClusterNetwork sets the expected value of the default ClusterNetwork record
func ValidateClusterNetwork ¶
func ValidateClusterNetwork(clusterNet *sdnapi.ClusterNetwork) field.ErrorList
ValidateClusterNetwork tests if required fields in the ClusterNetwork are set, and ensures that the "default" ClusterNetwork can only be set to the correct values
func ValidateClusterNetworkUpdate ¶
func ValidateClusterNetworkUpdate(obj *sdnapi.ClusterNetwork, old *sdnapi.ClusterNetwork) field.ErrorList
func ValidateEgressNetworkPolicy ¶
func ValidateEgressNetworkPolicy(policy *sdnapi.EgressNetworkPolicy) field.ErrorList
ValidateEgressNetworkPolicy tests if required fields in the EgressNetworkPolicy are set.
func ValidateEgressNetworkPolicyUpdate ¶
func ValidateEgressNetworkPolicyUpdate(obj *sdnapi.EgressNetworkPolicy, old *sdnapi.EgressNetworkPolicy) field.ErrorList
func ValidateHostSubnet ¶
func ValidateHostSubnet(hs *sdnapi.HostSubnet) field.ErrorList
ValidateHostSubnet tests fields for the host subnet, the host should be a network resolvable string,
and subnet should be a valid CIDR
func ValidateHostSubnetUpdate ¶
func ValidateHostSubnetUpdate(obj *sdnapi.HostSubnet, old *sdnapi.HostSubnet) field.ErrorList
func ValidateNetNamespace ¶
func ValidateNetNamespace(netnamespace *sdnapi.NetNamespace) field.ErrorList
ValidateNetNamespace tests fields for a greater-than-zero NetID
func ValidateNetNamespaceUpdate ¶
func ValidateNetNamespaceUpdate(obj *sdnapi.NetNamespace, old *sdnapi.NetNamespace) field.ErrorList
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.