Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KubernetesCluster ¶
type KubernetesCluster interface { CheckAccessible(ctx context.Context) error ConfigMapByNameExists(ctx context.Context, namespaceName string, configMapName string) (exists bool, err error) CreateConfigMap(ctx context.Context, namespaceName string, configMapName string, options *kubernetesparameteroptions.CreateConfigMapOptions) (createdConfigMap ConfigMap, err error) CreateNamespaceByName(ctx context.Context, namespaceName string) (createdNamespace Namespace, err error) CreateObject(ctx context.Context, options *kubernetesparameteroptions.CreateObjectOptions) (Object, error) CreateSecret(ctx context.Context, namespaceName string, secretName string, options *kubernetesparameteroptions.CreateSecretOptions) (createdSecret Secret, err error) DeleteNamespaceByName(ctx context.Context, namespaceName string) (err error) DeleteSecretByName(ctx context.Context, namespaceName string, secretName string) (err error) GetKubectlContext(ctx context.Context) (contextName string, err error) GetName() (name string, err error) GetNamespaceByName(name string) (namespace Namespace, err error) GetObjectByNames(objectName string, kind string, namespaceName string) (object Object, err error) ListNamespaces(ctx context.Context) (namespaces []Namespace, err error) ListNamespaceNames(ctx context.Context) ([]string, error) ListNodeNames(ctx context.Context) ([]string, error) ListObjects(options *kubernetesparameteroptions.ListKubernetesObjectsOptions) (objects []Object, err error) ListObjectNames(options *kubernetesparameteroptions.ListKubernetesObjectsOptions) (objectNames []string, err error) NamespaceByNameExists(ctx context.Context, namespaceName string) (exists bool, err error) ReadSecret(ctx context.Context, namespaceName string, secretName string) (map[string][]byte, error) RunCommandInTemporaryPod(ctx context.Context, options *kubernetesparameteroptions.RunCommandOptions) (*commandexecutorgeneric.CommandOutput, error) SecretByNameExists(ctx context.Context, namespaceName string, secretName string) (exists bool, err error) WaitUntilAllPodsInNamespaceAreRunning(ctx context.Context, namespaceName string, options *kubernetesparameteroptions.WaitForPodsOptions) error WhoAmI(ctx context.Context) (*kubernetesimplementationindependend.UserInfo, error) }
type Namespace ¶
type Namespace interface { ConfigMapByNameExists(ctx context.Context, name string) (exits bool, err error) Create(ctx context.Context) (err error) CreateConfigMap(ctx context.Context, name string, options *kubernetesparameteroptions.CreateConfigMapOptions) (createdConfigMap ConfigMap, err error) CreateRole(ctx context.Context, createOptions *kubernetesparameteroptions.CreateRoleOptions) (createdRole Role, err error) CreateSecret(ctx context.Context, name string, options *kubernetesparameteroptions.CreateSecretOptions) (createdSecret Secret, err error) CreateObject(ctx context.Context, options *kubernetesparameteroptions.CreateObjectOptions) (Object, error) DeleteConfigMapByName(ctx context.Context, name string) (err error) DeleteRoleByName(ctx context.Context, name string) (err error) DeleteSecretByName(ctx context.Context, name string) (err error) Exists(ctx context.Context) (bool, error) GetClusterName() (clusterName string, err error) GetConfigMapByName(name string) (configMap ConfigMap, err error) GetKubectlContext(ctx context.Context) (contextName string, err error) GetName() (name string, err error) GetObjectByNames(objectName string, objectType string) (object Object, err error) GetRoleByName(name string) (role Role, err error) GetSecretByName(name string) (secret Secret, err error) ListRoleNames(ctx context.Context) (roleNames []string, err error) RoleByNameExists(ctx context.Context, name string) (exists bool, err error) SecretByNameExists(ctx context.Context, name string) (exits bool, err error) WatchConfigMap(ctx context.Context, name string, onCreate func(ConfigMap), onUpdate func(ConfigMap), onDelete func(ConfigMap)) error WaitUntilAllPodsInNamespaceAreRunning(ctx context.Context, options *kubernetesparameteroptions.WaitForPodsOptions) error }
type Object ¶ added in v0.349.0
type Object interface { CreateByYamlString(ctx context.Context, options *kubernetesparameteroptions.CreateObjectOptions) (err error) Delete(ctx context.Context) (err error) Exists(ctx context.Context) (exists bool, err error) GetAsYamlString() (yamlString string, err error) SetApiVersion(string) error }
a generic representation of a kubernetes object like a pod, ingress, role...
Click to show internal directories.
Click to hide internal directories.