Documentation
¶
Overview ¶
Package services provides utility functions for interacting with various services.
Index ¶
- func GetSecretsWithKeys(k8sClient kubernetes.Interface, namespace string, keys []string) ([]corev1.Secret, error)
- func GetSecretsWithRegexKeys(k8sClient kubernetes.Interface, namespace string, keyExpr string) ([]corev1.Secret, error)
- func ReadHaulerProps(h *components.Registry, e *components.Env) error
- func ReadKubeconfig() (kubernetes.Interface, string, error)
- func ReadProxyProps(e *components.Env) error
- func ReadRegistryProps(r *components.Registry, e *components.Env) error
- func ReadSecret(k8sClient kubernetes.Interface, namespace string, optional bool, keys []string) (*corev1.Secret, error)
- func ReadServiceAccount(k8sClient kubernetes.Interface, namespace string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSecretsWithKeys ¶
func GetSecretsWithKeys(k8sClient kubernetes.Interface, namespace string, keys []string) ([]corev1.Secret, error)
GetSecretsWithKeys returns a list of secrets in the given namespace that contain all the specified keys
func GetSecretsWithRegexKeys ¶
func GetSecretsWithRegexKeys(k8sClient kubernetes.Interface, namespace string, keyExpr string) ([]corev1.Secret, error)
GetSecretsWithRegexKeys returns a list of secrets in the given namespace that contain keys matching the specified regex
func ReadHaulerProps ¶ added in v0.0.4
func ReadHaulerProps(h *components.Registry, e *components.Env) error
ReadHaulerProps prompts the user to configure hauler settings.
func ReadKubeconfig ¶
func ReadKubeconfig() (kubernetes.Interface, string, error)
ReadKubeconfig returns a Kubernetes client for the kubeconfig path provided by the user
func ReadProxyProps ¶
func ReadProxyProps(e *components.Env) error
ReadProxyProps prompts the user to configure proxy settings.
func ReadRegistryProps ¶ added in v0.0.5
func ReadRegistryProps(r *components.Registry, e *components.Env) error
ReadRegistryProps prompts the user to configure custom private registry settings.
func ReadSecret ¶
func ReadSecret(k8sClient kubernetes.Interface, namespace string, optional bool, keys []string) (*corev1.Secret, error)
ReadSecret prompts the user to select a secret from the given namespace that contains the specified keys
func ReadServiceAccount ¶
func ReadServiceAccount(k8sClient kubernetes.Interface, namespace string) (string, error)
ReadServiceAccount prompts the user to select a service account from the given namespace
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package clouds provides utility functions for interacting with clouds.
|
Package clouds provides utility functions for interacting with clouds. |
|
Package validator provides functions for interacting with the validator and its plugins.
|
Package validator provides functions for interacting with the validator and its plugins. |