k8s

package
v0.0.0-...-fbfee1b Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2023 License: EUPL-1.2 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	Cluster   string
	Clientset *kubernetes.Clientset
	Dynamic   dynamic.Interface
	Config    *rest.Config
	Version   *version.Info
}

API holds two K8s client interfaces: clientset and dynamic

func CreateAPI

func CreateAPI(context string) *API

CreateAPI initializes a K8s clientset and a dynamic K8s client

func CreateClusterAdminK8sApi

func CreateClusterAdminK8sApi(mc *rancher.MasterClient, clusterName string, rancherURL string) (*API, error)

func (*API) GetSecretData

func (k8sAPI *API) GetSecretData(secretName string, namespace string) (map[string][]byte, error)

GetSecretData gets the data for a secret

func (*API) SecretExists

func (k8sAPI *API) SecretExists(secretName string, namespace string) (bool, error)

Jump to

Keyboard shortcuts

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