validation

package
v3.8.0-0.9.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2017 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetDefaultClusterNetwork

func SetDefaultClusterNetwork(cn networkapi.ClusterNetwork)

SetDefaultClusterNetwork sets the expected value of the default ClusterNetwork record

func ValidateClusterNetwork

func ValidateClusterNetwork(clusterNet *networkapi.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 ValidateEgressNetworkPolicy

func ValidateEgressNetworkPolicy(policy *networkapi.EgressNetworkPolicy) field.ErrorList

ValidateEgressNetworkPolicy tests if required fields in the EgressNetworkPolicy are set.

func ValidateHostSubnet

func ValidateHostSubnet(hs *networkapi.HostSubnet) field.ErrorList

func ValidateHostSubnetUpdate

func ValidateHostSubnetUpdate(obj *networkapi.HostSubnet, old *networkapi.HostSubnet) field.ErrorList

func ValidateNetNamespace

func ValidateNetNamespace(netnamespace *networkapi.NetNamespace) field.ErrorList

ValidateNetNamespace tests fields for a greater-than-zero NetID

func ValidateNetNamespaceUpdate

func ValidateNetNamespaceUpdate(obj *networkapi.NetNamespace, old *networkapi.NetNamespace) field.ErrorList

Types

This section is empty.

Jump to

Keyboard shortcuts

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