kubernetes

package
v0.183.0 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandExecutorKubernetes added in v0.183.0

type CommandExecutorKubernetes struct {
	// contains filtered or unexported fields
}

func NewCommandExecutorKubernetes added in v0.183.0

func NewCommandExecutorKubernetes() (c *CommandExecutorKubernetes)

func (*CommandExecutorKubernetes) CreateNamespaceByName added in v0.183.0

func (c *CommandExecutorKubernetes) CreateNamespaceByName(name string, verbose bool) (createdNamespace Namespace, err error)

func (*CommandExecutorKubernetes) DeleteNamespaceByName added in v0.183.0

func (c *CommandExecutorKubernetes) DeleteNamespaceByName(name string, verbose bool) (err error)

func (*CommandExecutorKubernetes) GetCommandExecutor added in v0.183.0

func (c *CommandExecutorKubernetes) GetCommandExecutor() (commandExecutor asciichgolangpublic.CommandExecutor, err error)

func (*CommandExecutorKubernetes) GetKubectlContext added in v0.183.0

func (c *CommandExecutorKubernetes) GetKubectlContext(verbose bool) (context string, err error)

func (*CommandExecutorKubernetes) GetKubectlContexts added in v0.183.0

func (c *CommandExecutorKubernetes) GetKubectlContexts() (contexts []KubectlContext, err error)

func (*CommandExecutorKubernetes) GetName added in v0.183.0

func (c *CommandExecutorKubernetes) GetName() (name string, err error)

Returns the kubernetes cluster name

func (*CommandExecutorKubernetes) GetNamespaceByName added in v0.183.0

func (c *CommandExecutorKubernetes) GetNamespaceByName(name string) (namespace Namespace, err error)

func (*CommandExecutorKubernetes) ListNamespaceNames added in v0.183.0

func (c *CommandExecutorKubernetes) ListNamespaceNames(verbose bool) (namespaceNames []string, err error)

func (*CommandExecutorKubernetes) ListNamespaces added in v0.183.0

func (c *CommandExecutorKubernetes) ListNamespaces(verbose bool) (namespaces []Namespace, err error)

func (*CommandExecutorKubernetes) MustCreateNamespaceByName added in v0.183.0

func (c *CommandExecutorKubernetes) MustCreateNamespaceByName(name string, verbose bool) (createdNamespace Namespace)

func (*CommandExecutorKubernetes) MustDeleteNamespaceByName added in v0.183.0

func (c *CommandExecutorKubernetes) MustDeleteNamespaceByName(name string, verbose bool)

func (*CommandExecutorKubernetes) MustGetCommandExecutor added in v0.183.0

func (c *CommandExecutorKubernetes) MustGetCommandExecutor() (commandExecutor asciichgolangpublic.CommandExecutor)

func (*CommandExecutorKubernetes) MustGetKubectlContext added in v0.183.0

func (c *CommandExecutorKubernetes) MustGetKubectlContext(verbose bool) (context string)

func (*CommandExecutorKubernetes) MustGetKubectlContexts added in v0.183.0

func (c *CommandExecutorKubernetes) MustGetKubectlContexts() (contexts []KubectlContext)

func (*CommandExecutorKubernetes) MustGetName added in v0.183.0

func (c *CommandExecutorKubernetes) MustGetName() (name string)

func (*CommandExecutorKubernetes) MustGetNamespaceByName added in v0.183.0

func (c *CommandExecutorKubernetes) MustGetNamespaceByName(name string) (namespace Namespace)

func (*CommandExecutorKubernetes) MustListNamespaceNames added in v0.183.0

func (c *CommandExecutorKubernetes) MustListNamespaceNames(verbose bool) (namespaceNames []string)

func (*CommandExecutorKubernetes) MustListNamespaces added in v0.183.0

func (c *CommandExecutorKubernetes) MustListNamespaces(verbose bool) (namespaces []Namespace)

func (*CommandExecutorKubernetes) MustNamespaceByNameExists added in v0.183.0

func (c *CommandExecutorKubernetes) MustNamespaceByNameExists(name string, verbose bool) (exists bool)

func (*CommandExecutorKubernetes) MustRunCommand added in v0.183.0

func (c *CommandExecutorKubernetes) MustRunCommand(runCommandOptions *asciichgolangpublic.RunCommandOptions) (commandOutput *asciichgolangpublic.CommandOutput)

func (*CommandExecutorKubernetes) MustRunCommandAndGetStdoutAsLines added in v0.183.0

func (c *CommandExecutorKubernetes) MustRunCommandAndGetStdoutAsLines(runCommandOptions *asciichgolangpublic.RunCommandOptions) (lines []string)

func (*CommandExecutorKubernetes) MustSetCommandExecutor added in v0.183.0

func (c *CommandExecutorKubernetes) MustSetCommandExecutor(commandExecutor asciichgolangpublic.CommandExecutor)

func (*CommandExecutorKubernetes) MustSetName added in v0.183.0

func (c *CommandExecutorKubernetes) MustSetName(name string)

func (*CommandExecutorKubernetes) NamespaceByNameExists added in v0.183.0

func (c *CommandExecutorKubernetes) NamespaceByNameExists(name string, verbose bool) (exists bool, err error)

func (*CommandExecutorKubernetes) RunCommand added in v0.183.0

func (c *CommandExecutorKubernetes) RunCommand(runCommandOptions *asciichgolangpublic.RunCommandOptions) (commandOutput *asciichgolangpublic.CommandOutput, err error)

func (*CommandExecutorKubernetes) RunCommandAndGetStdoutAsLines added in v0.183.0

func (c *CommandExecutorKubernetes) RunCommandAndGetStdoutAsLines(runCommandOptions *asciichgolangpublic.RunCommandOptions) (lines []string, err error)

func (*CommandExecutorKubernetes) SetCommandExecutor added in v0.183.0

func (c *CommandExecutorKubernetes) SetCommandExecutor(commandExecutor asciichgolangpublic.CommandExecutor) (err error)

func (*CommandExecutorKubernetes) SetName added in v0.183.0

func (c *CommandExecutorKubernetes) SetName(name string) (err error)

type CommandExecutorNamespace added in v0.183.0

type CommandExecutorNamespace struct {
	// contains filtered or unexported fields
}

func NewCommandExecutorNamespace added in v0.183.0

func NewCommandExecutorNamespace() (c *CommandExecutorNamespace)

func (*CommandExecutorNamespace) GetKubernetesCluster added in v0.183.0

func (c *CommandExecutorNamespace) GetKubernetesCluster() (kubernetesCluster KubernetesCluster, err error)

func (*CommandExecutorNamespace) GetName added in v0.183.0

func (c *CommandExecutorNamespace) GetName() (name string, err error)

func (*CommandExecutorNamespace) MustGetKubernetesCluster added in v0.183.0

func (c *CommandExecutorNamespace) MustGetKubernetesCluster() (kubernetesCluster KubernetesCluster)

func (*CommandExecutorNamespace) MustGetName added in v0.183.0

func (c *CommandExecutorNamespace) MustGetName() (name string)

func (*CommandExecutorNamespace) MustSetKubernetesCluster added in v0.183.0

func (c *CommandExecutorNamespace) MustSetKubernetesCluster(kubernetesCluster KubernetesCluster)

func (*CommandExecutorNamespace) MustSetName added in v0.183.0

func (c *CommandExecutorNamespace) MustSetName(name string)

func (*CommandExecutorNamespace) SetKubernetesCluster added in v0.183.0

func (c *CommandExecutorNamespace) SetKubernetesCluster(kubernetesCluster KubernetesCluster) (err error)

func (*CommandExecutorNamespace) SetName added in v0.183.0

func (c *CommandExecutorNamespace) SetName(name string) (err error)

type KubectlContext added in v0.183.0

type KubectlContext struct {
	// contains filtered or unexported fields
}

func NewKubectlContext added in v0.183.0

func NewKubectlContext() (k *KubectlContext)

func (*KubectlContext) GetCluster added in v0.183.0

func (k *KubectlContext) GetCluster() (cluster string, err error)

func (*KubectlContext) GetName added in v0.183.0

func (k *KubectlContext) GetName() (name string, err error)

func (*KubectlContext) MustGetCluster added in v0.183.0

func (k *KubectlContext) MustGetCluster() (cluster string)

func (*KubectlContext) MustGetName added in v0.183.0

func (k *KubectlContext) MustGetName() (name string)

func (*KubectlContext) MustSetCluster added in v0.183.0

func (k *KubectlContext) MustSetCluster(cluster string)

func (*KubectlContext) MustSetName added in v0.183.0

func (k *KubectlContext) MustSetName(name string)

func (*KubectlContext) SetCluster added in v0.183.0

func (k *KubectlContext) SetCluster(cluster string) (err error)

func (*KubectlContext) SetName added in v0.183.0

func (k *KubectlContext) SetName(name string) (err error)

type KubernetesCluster added in v0.183.0

type KubernetesCluster interface {
	CreateNamespaceByName(namespaceName string, verbose bool) (createdNamespace Namespace, err error)
	DeleteNamespaceByName(namespaceName string, verbose bool) (err error)
	GetName() (name string, err error)
	GetNamespaceByName(name string) (namespace Namespace, err error)
	ListNamespaces(verbose bool) (namespaces []Namespace, err error)
	ListNamespaceNames(verbose bool) (namespaceNames []string, err error)
	MustNamespaceByNameExists(namespaceName string, verbose bool) (exist bool)
	MustDeleteNamespaceByName(namespaceName string, verbose bool)
	MustCreateNamespaceByName(namespaceName string, verbose bool) (createdNamespace Namespace)
	MustGetName() (name string)
	MustGetNamespaceByName(name string) (namespace Namespace)
	MustListNamespaces(verbose bool) (namespaces []Namespace)
	MustListNamespaceNames(verbose bool) (namespaceNames []string)
	NamespaceByNameExists(namespaceName string, verbose bool) (exist bool, err error)
}

func GetCommandExecutorKubernetsByName added in v0.183.0

func GetCommandExecutorKubernetsByName(commandExecutor asciichgolangpublic.CommandExecutor, clusterName string) (kubernetes KubernetesCluster, err error)

func GetLocalCommandExecutorKubernetesByName added in v0.183.0

func GetLocalCommandExecutorKubernetesByName(clusterName string) (kubernetes KubernetesCluster, err error)

func MustGetCommandExecutorKubernetsByName added in v0.183.0

func MustGetCommandExecutorKubernetsByName(commandExecutor asciichgolangpublic.CommandExecutor, clusterName string) (kubernetes KubernetesCluster)

func MustGetLocalCommandExecutorKubernetesByName added in v0.183.0

func MustGetLocalCommandExecutorKubernetesByName(clusterName string) (kubernetes KubernetesCluster)

type Namespace added in v0.183.0

type Namespace interface {
	GetName() (name string, err error)
	MustGetName() (name string)
}

Jump to

Keyboard shortcuts

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