resources

package
v0.5.0-beta.4 Latest Latest
Warning

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

Go to latest
Published: May 13, 2022 License: AGPL-3.0 Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddNetworkFinalizer added in v0.5.2

func AddNetworkFinalizer(name string, namespace string, finalizers []string) error

AddNetworkFinalizer adds the finalizers from a network

func CreateNamespace

func CreateNamespace(namespace string) error

CreateNamespace creates a namespace in the cluster

func CreateSecret

func CreateSecret(name string, namespace string, data *map[string]string) (*v1.Secret, error)

CreateSecret creates a secret in the cluster

func DeleteSecret

func DeleteSecret(name string, namespace string) error

DeleteSecret deletes a secret from the cluster

func ExistsSecret

func ExistsSecret(name string, namespace string) (bool, error)

ExistsSecret checks if a secret exists in the cluster

func GetNetwork added in v0.5.2

func GetNetwork(name string, namespace string) (*networkv1alpha1.Network, error)

GetNetwork returns a network

func GetNodeLabels

func GetNodeLabels(name string) (map[string]string, error)

GetNodeLabels returns the labels of the node

func GetPod added in v0.5.2

func GetPod(name string, namespace string) (*v1.Pod, error)

GetPod returns a pods in the namespace

func ListPods

func ListPods(namespace string) ([]v1.Pod, error)

ListPods returns a list of pods in the namespace

func PodStatus

func PodStatus(name string, namespace string) (v1.PodPhase, error)

PodStatus returns the status of a pod

func ReadSecret

func ReadSecret(name string, namespace string) (map[string]string, error)

ReadSecret reads a secret from the cluster

func RemoveNetworkFinalizers added in v0.5.2

func RemoveNetworkFinalizers(name string, namespace string, removeFinalizers []string) error

RemoveNetworkFinalizers removes the finalizers from a network

func RemovePodFinalizers added in v0.5.2

func RemovePodFinalizers(name string, namespace string, removeFinalizers []string) error

RemovePodFinalizers removes the finalizers from a pod

func RemovePodLabels added in v0.5.2

func RemovePodLabels(name string, namespace string, labels []string) error

RemovePodLabels removes the labels from a pod

func SetNetworkAccountName added in v0.5.2

func SetNetworkAccountName(network *networkv1alpha1.Network, accountName string) (*networkv1alpha1.Network, error)

SetNetworkAccountName sets the account name of a network

func SetupNetworkClientset added in v0.5.2

func SetupNetworkClientset() (*networkclientset.Clientset, error)

SetupNetworkClientset returns a clientset for the network v1alpha1

func UpdateNetwork added in v0.5.2

func UpdateNetwork(network *networkv1alpha1.Network, namespace string) (*networkv1alpha1.Network, error)

UpdateNetwork updates a network

func UpdatePodLabel added in v0.5.2

func UpdatePodLabel(name string, namespace string, key string, value string) error

UpdatePodLabel updates a pods labels

func UpdateSecret

func UpdateSecret(name string, namespace string, data *map[string]string) (*v1.Secret, error)

UpdateSecret updates a secret in the cluster

Types

This section is empty.

Jump to

Keyboard shortcuts

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