Documentation ¶
Overview ¶
Copyright (C) 2021-2024, Kubefirst
This program is licensed under MIT. See the LICENSE file for more details.
Copyright (C) 2021-2023, Kubefirst ¶
This program is licensed under MIT. See the LICENSE file for more details.
Index ¶
- func CreateSecretV2(clientset *kubernetes.Clientset, secret *v1.Secret) error
- func DeleteSecretV2(clientset *kubernetes.Clientset, namespace string, secretName string) error
- func ReadSecretV2(clientset *kubernetes.Clientset, namespace string, secretName string) (map[string]interface{}, error)
- func UpdateSecretV2(clientset *kubernetes.Clientset, namespace string, secretName string, ...) error
- type CloudAccountsArgs
- type KubernetesClient
- type UpdateSecretArgs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateSecretV2 ¶
func CreateSecretV2(clientset *kubernetes.Clientset, secret *v1.Secret) error
CreateSecretV2 creates a Kubernetes Secret
func DeleteSecretV2 ¶ added in v0.1.21
func DeleteSecretV2(clientset *kubernetes.Clientset, namespace string, secretName string) error
DeleteSecretV2 reads the content of a Kubernetes Secret
func ReadSecretV2 ¶
func ReadSecretV2(clientset *kubernetes.Clientset, namespace string, secretName string) (map[string]interface{}, error)
ReadSecretV2 reads the content of a Kubernetes Secret
func UpdateSecretV2 ¶
func UpdateSecretV2(clientset *kubernetes.Clientset, namespace string, secretName string, secretValues map[string][]byte) error
UpdateSecretV2 updates the key value pairs of a Kubernetes Secret
Types ¶
type CloudAccountsArgs ¶ added in v0.1.21
type CloudAccountsArgs struct {
CloudAccounts string `json:"cloud_accounts"`
}
type KubernetesClient ¶
type KubernetesClient struct { Clientset *kubernetes.Clientset RestConfig *rest.Config KubeConfigPath string }
func CreateKubeConfig ¶
func CreateKubeConfig(inCluster bool, kubeConfigPath string) *KubernetesClient
CreateKubeConfig returns a struct KubernetesClient with references to a clientset, restConfig, and path to the Kubernetes config used to generate the client
type UpdateSecretArgs ¶
type UpdateSecretArgs struct {
ConsoleTour string `json:"console-tour"`
}
Click to show internal directories.
Click to hide internal directories.