resources

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2022 License: AGPL-3.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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 ListPods

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

ListPods returns a list of pods in the namespace

func PodStatus

func PodStatus(pod 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 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