Documentation ¶
Index ¶
- func ClientFromConfig(path string) (*clientset.Clientset, error)
- func CreateOrUpdateGlobalNetworkSet(client *clientset.Clientset, name string, labels map[string]string, ...) error
- func DeleteGlobalNetworkSet(client *clientset.Clientset, name string) error
- func GlobalNetworkSetList(client *clientset.Clientset, labels map[string]string) ([]v3.GlobalNetworkSet, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClientFromConfig ¶ added in v0.2.0
ClientFromConfig returns a calico client (clientset) from the kubeconfig path or from the in-cluster service account environment.
func CreateOrUpdateGlobalNetworkSet ¶
func CreateOrUpdateGlobalNetworkSet(client *clientset.Clientset, name string, labels map[string]string, nets []string) error
CreateOrUpdateGlobalNetworkSet will try to get a globalNetworkSet and update if exists, otherwise create a new one
func DeleteGlobalNetworkSet ¶
DeleteGlobalNetworkSet will try to delete a GlobalNetworkSet
func GlobalNetworkSetList ¶
func GlobalNetworkSetList(client *clientset.Clientset, labels map[string]string) ([]v3.GlobalNetworkSet, error)
GlobalNetworkSetList returns a list of sets that can match all the passed labels (AND matching)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.