Documentation ¶
Index ¶
- Variables
- func CreateKubeconfigSecret(name string, namespace string, kubeconfig []byte) (err error)
- func CreateNamespace(schema corev1.Namespace, config *rest.Config) (bool, error)
- func CreateSSHSecret(name string, namespace string, privateKey []byte) (err error)
- func DeleteKubeconfigSecret(name string, namespace string) (err error)
- func DeleteSSHSecret(name string, namespace string) (err error)
- func DeleteSecret(name string, namespace string) (err error)
- func GenerateKubernetesConfig() (*rest.Config, error)
- func GenerateNamespace(name string) corev1.Namespace
- func GetKubeconfigSecret(name string, namespace string) (secret []byte, err error)
- func GetKubeconfigSecretList(namespace string) (result []corev1.Secret, err error)
- func GetSSHSecret(name string, namespace string) (secret []byte, err error)
- func GetSSHSecretList(namespace string) (result []corev1.Secret, err error)
- func GetSecret(name string, namespace string) (secret corev1.Secret, err error)
- func GetSecretList(namespace string, options v1.ListOptions) (result []corev1.Secret, err error)
- func IsResourceAlreadyExistsError(err error) bool
- func IsResourceNotFoundError(err error) bool
- func SetLogger()
- type CoreV1SecretInterface
- type SSHSecret
- type Secret
- type SecretCRUDer
Constants ¶
This section is empty.
Variables ¶
View Source
var ( KubeConfigLocation string DefaultConfig *rest.Config )
Functions ¶
func CreateKubeconfigSecret ¶
func CreateNamespace ¶
func CreateSSHSecret ¶
func DeleteKubeconfigSecret ¶
func DeleteSSHSecret ¶
func DeleteSecret ¶
func GenerateNamespace ¶
func GetKubeconfigSecret ¶
func GetKubeconfigSecretList ¶
func GetSecretList ¶
func IsResourceAlreadyExistsError ¶
IsResourceAlreadyExistsError determines if error is an already exist type
func IsResourceNotFoundError ¶
IsResourceNotFoundError determines if error is of type not found
Types ¶
type CoreV1SecretInterface ¶
type CoreV1SecretInterface interface {
Secrets(namespace string) v12.SecretInterface
}
type SSHSecret ¶
type SSHSecret struct {
Secret
}
func NewSSHSecret ¶
func NewSSHSecret(secretGetter CoreV1SecretInterface) SSHSecret
type Secret ¶
type Secret struct {
// contains filtered or unexported fields
}
func (*Secret) SetSecretGetter ¶
func (s *Secret) SetSecretGetter(secretAPI CoreV1SecretInterface)
Click to show internal directories.
Click to hide internal directories.