Documentation
¶
Index ¶
- type CommandExecutorKubernetes
- func (c *CommandExecutorKubernetes) CreateNamespaceByName(name string, verbose bool) (createdNamespace Namespace, err error)
- func (c *CommandExecutorKubernetes) DeleteNamespaceByName(name string, verbose bool) (err error)
- func (c *CommandExecutorKubernetes) GetCommandExecutor() (commandExecutor asciichgolangpublic.CommandExecutor, err error)
- func (c *CommandExecutorKubernetes) GetKubectlContext(verbose bool) (context string, err error)
- func (c *CommandExecutorKubernetes) GetKubectlContexts() (contexts []KubectlContext, err error)
- func (c *CommandExecutorKubernetes) GetName() (name string, err error)
- func (c *CommandExecutorKubernetes) GetNamespaceByName(name string) (namespace Namespace, err error)
- func (c *CommandExecutorKubernetes) ListNamespaceNames(verbose bool) (namespaceNames []string, err error)
- func (c *CommandExecutorKubernetes) ListNamespaces(verbose bool) (namespaces []Namespace, err error)
- func (c *CommandExecutorKubernetes) MustCreateNamespaceByName(name string, verbose bool) (createdNamespace Namespace)
- func (c *CommandExecutorKubernetes) MustDeleteNamespaceByName(name string, verbose bool)
- func (c *CommandExecutorKubernetes) MustGetCommandExecutor() (commandExecutor asciichgolangpublic.CommandExecutor)
- func (c *CommandExecutorKubernetes) MustGetKubectlContext(verbose bool) (context string)
- func (c *CommandExecutorKubernetes) MustGetKubectlContexts() (contexts []KubectlContext)
- func (c *CommandExecutorKubernetes) MustGetName() (name string)
- func (c *CommandExecutorKubernetes) MustGetNamespaceByName(name string) (namespace Namespace)
- func (c *CommandExecutorKubernetes) MustListNamespaceNames(verbose bool) (namespaceNames []string)
- func (c *CommandExecutorKubernetes) MustListNamespaces(verbose bool) (namespaces []Namespace)
- func (c *CommandExecutorKubernetes) MustNamespaceByNameExists(name string, verbose bool) (exists bool)
- func (c *CommandExecutorKubernetes) MustRunCommand(runCommandOptions *asciichgolangpublic.RunCommandOptions) (commandOutput *asciichgolangpublic.CommandOutput)
- func (c *CommandExecutorKubernetes) MustRunCommandAndGetStdoutAsLines(runCommandOptions *asciichgolangpublic.RunCommandOptions) (lines []string)
- func (c *CommandExecutorKubernetes) MustSetCommandExecutor(commandExecutor asciichgolangpublic.CommandExecutor)
- func (c *CommandExecutorKubernetes) MustSetName(name string)
- func (c *CommandExecutorKubernetes) NamespaceByNameExists(name string, verbose bool) (exists bool, err error)
- func (c *CommandExecutorKubernetes) RunCommand(runCommandOptions *asciichgolangpublic.RunCommandOptions) (commandOutput *asciichgolangpublic.CommandOutput, err error)
- func (c *CommandExecutorKubernetes) RunCommandAndGetStdoutAsLines(runCommandOptions *asciichgolangpublic.RunCommandOptions) (lines []string, err error)
- func (c *CommandExecutorKubernetes) SetCommandExecutor(commandExecutor asciichgolangpublic.CommandExecutor) (err error)
- func (c *CommandExecutorKubernetes) SetName(name string) (err error)
- type CommandExecutorNamespace
- func (c *CommandExecutorNamespace) CreateRole(createOptions *CreateRoleOptions) (createdRole Role, err error)
- func (c *CommandExecutorNamespace) DeleteRoleByName(name string, verbose bool) (err error)
- func (c *CommandExecutorNamespace) GetClusterName() (clusterName string, err error)
- func (c *CommandExecutorNamespace) GetCommandExecutor() (commandExecutor asciichgolangpublic.CommandExecutor, err error)
- func (c *CommandExecutorNamespace) GetKubectlContext(verbose bool) (context string, err error)
- func (c *CommandExecutorNamespace) GetKubernetesCluster() (kubernetesCluster KubernetesCluster, err error)
- func (c *CommandExecutorNamespace) GetName() (name string, err error)
- func (c *CommandExecutorNamespace) GetRoleByName(name string) (role Role, err error)
- func (c *CommandExecutorNamespace) ListRoleNames(verbose bool) (roleNames []string, err error)
- func (c *CommandExecutorNamespace) MustCreateRole(createOptions *CreateRoleOptions) (createdRole Role)
- func (c *CommandExecutorNamespace) MustDeleteRoleByName(name string, verbose bool)
- func (c *CommandExecutorNamespace) MustGetClusterName() (clusterName string)
- func (c *CommandExecutorNamespace) MustGetCommandExecutor() (commandExecutor asciichgolangpublic.CommandExecutor)
- func (c *CommandExecutorNamespace) MustGetKubectlContext(verbose bool) (context string)
- func (c *CommandExecutorNamespace) MustGetKubernetesCluster() (kubernetesCluster KubernetesCluster)
- func (c *CommandExecutorNamespace) MustGetName() (name string)
- func (c *CommandExecutorNamespace) MustGetRoleByName(name string) (role Role)
- func (c *CommandExecutorNamespace) MustListRoleNames(verbose bool) (roleNames []string)
- func (c *CommandExecutorNamespace) MustRoleByNameExists(name string, verbose bool) (exists bool)
- func (c *CommandExecutorNamespace) MustRunCommand(runCommandOptions *asciichgolangpublic.RunCommandOptions) (commandOutput *asciichgolangpublic.CommandOutput)
- func (c *CommandExecutorNamespace) MustRunCommandAndGetStdoutAsLines(runCommandOptions *asciichgolangpublic.RunCommandOptions) (lines []string)
- func (c *CommandExecutorNamespace) MustSetKubernetesCluster(kubernetesCluster KubernetesCluster)
- func (c *CommandExecutorNamespace) MustSetName(name string)
- func (c *CommandExecutorNamespace) RoleByNameExists(name string, verbose bool) (exists bool, err error)
- func (c *CommandExecutorNamespace) RunCommand(runCommandOptions *asciichgolangpublic.RunCommandOptions) (commandOutput *asciichgolangpublic.CommandOutput, err error)
- func (c *CommandExecutorNamespace) RunCommandAndGetStdoutAsLines(runCommandOptions *asciichgolangpublic.RunCommandOptions) (lines []string, err error)
- func (c *CommandExecutorNamespace) SetKubernetesCluster(kubernetesCluster KubernetesCluster) (err error)
- func (c *CommandExecutorNamespace) SetName(name string) (err error)
- type CommandExecutorRole
- func (c *CommandExecutorRole) GetName() (name string, err error)
- func (c *CommandExecutorRole) GetNamespace() (namespace Namespace, err error)
- func (c *CommandExecutorRole) MustGetName() (name string)
- func (c *CommandExecutorRole) MustGetNamespace() (namespace Namespace)
- func (c *CommandExecutorRole) MustSetName(name string)
- func (c *CommandExecutorRole) MustSetNamespace(namespace Namespace)
- func (c *CommandExecutorRole) SetName(name string) (err error)
- func (c *CommandExecutorRole) SetNamespace(namespace Namespace) (err error)
- type CreateRoleOptions
- func (c *CreateRoleOptions) GetName() (name string, err error)
- func (c *CreateRoleOptions) GetResorces() (resorces []string, err error)
- func (c *CreateRoleOptions) GetVerbose() (verbose bool)
- func (c *CreateRoleOptions) GetVerbs() (verbs []string, err error)
- func (c *CreateRoleOptions) MustGetName() (name string)
- func (c *CreateRoleOptions) MustGetResorces() (resorces []string)
- func (c *CreateRoleOptions) MustGetVerbs() (verbs []string)
- func (c *CreateRoleOptions) MustSetName(name string)
- func (c *CreateRoleOptions) MustSetResorces(resorces []string)
- func (c *CreateRoleOptions) MustSetVerbs(verbs []string)
- func (c *CreateRoleOptions) SetName(name string) (err error)
- func (c *CreateRoleOptions) SetResorces(resorces []string) (err error)
- func (c *CreateRoleOptions) SetVerbose(verbose bool)
- func (c *CreateRoleOptions) SetVerbs(verbs []string) (err error)
- type KubectlContext
- func (k *KubectlContext) GetCluster() (cluster string, err error)
- func (k *KubectlContext) GetName() (name string, err error)
- func (k *KubectlContext) MustGetCluster() (cluster string)
- func (k *KubectlContext) MustGetName() (name string)
- func (k *KubectlContext) MustSetCluster(cluster string)
- func (k *KubectlContext) MustSetName(name string)
- func (k *KubectlContext) SetCluster(cluster string) (err error)
- func (k *KubectlContext) SetName(name string) (err error)
- type KubernetesCluster
- func GetCommandExecutorKubernetsByName(commandExecutor asciichgolangpublic.CommandExecutor, clusterName string) (kubernetes KubernetesCluster, err error)
- func GetLocalCommandExecutorKubernetesByName(clusterName string) (kubernetes KubernetesCluster, err error)
- func MustGetCommandExecutorKubernetsByName(commandExecutor asciichgolangpublic.CommandExecutor, clusterName string) (kubernetes KubernetesCluster)
- func MustGetLocalCommandExecutorKubernetesByName(clusterName string) (kubernetes KubernetesCluster)
- type Namespace
- type Role
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) CreateRole ¶ added in v0.184.0
func (c *CommandExecutorNamespace) CreateRole(createOptions *CreateRoleOptions) (createdRole Role, err error)
func (*CommandExecutorNamespace) DeleteRoleByName ¶ added in v0.184.0
func (c *CommandExecutorNamespace) DeleteRoleByName(name string, verbose bool) (err error)
func (*CommandExecutorNamespace) GetClusterName ¶ added in v0.184.0
func (c *CommandExecutorNamespace) GetClusterName() (clusterName string, err error)
func (*CommandExecutorNamespace) GetCommandExecutor ¶ added in v0.184.0
func (c *CommandExecutorNamespace) GetCommandExecutor() (commandExecutor asciichgolangpublic.CommandExecutor, err error)
func (*CommandExecutorNamespace) GetKubectlContext ¶ added in v0.184.0
func (c *CommandExecutorNamespace) GetKubectlContext(verbose bool) (context string, err error)
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) GetRoleByName ¶ added in v0.184.0
func (c *CommandExecutorNamespace) GetRoleByName(name string) (role Role, err error)
func (*CommandExecutorNamespace) ListRoleNames ¶ added in v0.184.0
func (c *CommandExecutorNamespace) ListRoleNames(verbose bool) (roleNames []string, err error)
func (*CommandExecutorNamespace) MustCreateRole ¶ added in v0.184.0
func (c *CommandExecutorNamespace) MustCreateRole(createOptions *CreateRoleOptions) (createdRole Role)
func (*CommandExecutorNamespace) MustDeleteRoleByName ¶ added in v0.184.0
func (c *CommandExecutorNamespace) MustDeleteRoleByName(name string, verbose bool)
func (*CommandExecutorNamespace) MustGetClusterName ¶ added in v0.184.0
func (c *CommandExecutorNamespace) MustGetClusterName() (clusterName string)
func (*CommandExecutorNamespace) MustGetCommandExecutor ¶ added in v0.184.0
func (c *CommandExecutorNamespace) MustGetCommandExecutor() (commandExecutor asciichgolangpublic.CommandExecutor)
func (*CommandExecutorNamespace) MustGetKubectlContext ¶ added in v0.184.0
func (c *CommandExecutorNamespace) MustGetKubectlContext(verbose bool) (context string)
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) MustGetRoleByName ¶ added in v0.184.0
func (c *CommandExecutorNamespace) MustGetRoleByName(name string) (role Role)
func (*CommandExecutorNamespace) MustListRoleNames ¶ added in v0.184.0
func (c *CommandExecutorNamespace) MustListRoleNames(verbose bool) (roleNames []string)
func (*CommandExecutorNamespace) MustRoleByNameExists ¶ added in v0.184.0
func (c *CommandExecutorNamespace) MustRoleByNameExists(name string, verbose bool) (exists bool)
func (*CommandExecutorNamespace) MustRunCommand ¶ added in v0.184.0
func (c *CommandExecutorNamespace) MustRunCommand(runCommandOptions *asciichgolangpublic.RunCommandOptions) (commandOutput *asciichgolangpublic.CommandOutput)
func (*CommandExecutorNamespace) MustRunCommandAndGetStdoutAsLines ¶ added in v0.184.0
func (c *CommandExecutorNamespace) MustRunCommandAndGetStdoutAsLines(runCommandOptions *asciichgolangpublic.RunCommandOptions) (lines []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) RoleByNameExists ¶ added in v0.184.0
func (c *CommandExecutorNamespace) RoleByNameExists(name string, verbose bool) (exists bool, err error)
func (*CommandExecutorNamespace) RunCommand ¶ added in v0.184.0
func (c *CommandExecutorNamespace) RunCommand(runCommandOptions *asciichgolangpublic.RunCommandOptions) (commandOutput *asciichgolangpublic.CommandOutput, err error)
func (*CommandExecutorNamespace) RunCommandAndGetStdoutAsLines ¶ added in v0.184.0
func (c *CommandExecutorNamespace) RunCommandAndGetStdoutAsLines(runCommandOptions *asciichgolangpublic.RunCommandOptions) (lines []string, err error)
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 CommandExecutorRole ¶ added in v0.184.0
type CommandExecutorRole struct {
// contains filtered or unexported fields
}
func NewCommandExecutorRole ¶ added in v0.184.0
func NewCommandExecutorRole() (c *CommandExecutorRole)
func (*CommandExecutorRole) GetName ¶ added in v0.184.0
func (c *CommandExecutorRole) GetName() (name string, err error)
func (*CommandExecutorRole) GetNamespace ¶ added in v0.184.0
func (c *CommandExecutorRole) GetNamespace() (namespace Namespace, err error)
func (*CommandExecutorRole) MustGetName ¶ added in v0.184.0
func (c *CommandExecutorRole) MustGetName() (name string)
func (*CommandExecutorRole) MustGetNamespace ¶ added in v0.184.0
func (c *CommandExecutorRole) MustGetNamespace() (namespace Namespace)
func (*CommandExecutorRole) MustSetName ¶ added in v0.184.0
func (c *CommandExecutorRole) MustSetName(name string)
func (*CommandExecutorRole) MustSetNamespace ¶ added in v0.184.0
func (c *CommandExecutorRole) MustSetNamespace(namespace Namespace)
func (*CommandExecutorRole) SetName ¶ added in v0.184.0
func (c *CommandExecutorRole) SetName(name string) (err error)
func (*CommandExecutorRole) SetNamespace ¶ added in v0.184.0
func (c *CommandExecutorRole) SetNamespace(namespace Namespace) (err error)
type CreateRoleOptions ¶ added in v0.184.0
func NewCreateRoleOptions ¶ added in v0.184.0
func NewCreateRoleOptions() (c *CreateRoleOptions)
func (*CreateRoleOptions) GetName ¶ added in v0.184.0
func (c *CreateRoleOptions) GetName() (name string, err error)
func (*CreateRoleOptions) GetResorces ¶ added in v0.184.0
func (c *CreateRoleOptions) GetResorces() (resorces []string, err error)
func (*CreateRoleOptions) GetVerbose ¶ added in v0.184.0
func (c *CreateRoleOptions) GetVerbose() (verbose bool)
func (*CreateRoleOptions) GetVerbs ¶ added in v0.184.0
func (c *CreateRoleOptions) GetVerbs() (verbs []string, err error)
func (*CreateRoleOptions) MustGetName ¶ added in v0.184.0
func (c *CreateRoleOptions) MustGetName() (name string)
func (*CreateRoleOptions) MustGetResorces ¶ added in v0.184.0
func (c *CreateRoleOptions) MustGetResorces() (resorces []string)
func (*CreateRoleOptions) MustGetVerbs ¶ added in v0.184.0
func (c *CreateRoleOptions) MustGetVerbs() (verbs []string)
func (*CreateRoleOptions) MustSetName ¶ added in v0.184.0
func (c *CreateRoleOptions) MustSetName(name string)
func (*CreateRoleOptions) MustSetResorces ¶ added in v0.184.0
func (c *CreateRoleOptions) MustSetResorces(resorces []string)
func (*CreateRoleOptions) MustSetVerbs ¶ added in v0.184.0
func (c *CreateRoleOptions) MustSetVerbs(verbs []string)
func (*CreateRoleOptions) SetName ¶ added in v0.184.0
func (c *CreateRoleOptions) SetName(name string) (err error)
func (*CreateRoleOptions) SetResorces ¶ added in v0.184.0
func (c *CreateRoleOptions) SetResorces(resorces []string) (err error)
func (*CreateRoleOptions) SetVerbose ¶ added in v0.184.0
func (c *CreateRoleOptions) SetVerbose(verbose bool)
func (*CreateRoleOptions) SetVerbs ¶ added in v0.184.0
func (c *CreateRoleOptions) SetVerbs(verbs []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 { CreateRole(createOptions *CreateRoleOptions) (createdRole Role, err error) DeleteRoleByName(name string, verbose bool) (err error) GetClusterName() (clusterName string, err error) GetName() (name string, err error) GetRoleByName(name string) (role Role, err error) ListRoleNames(verbose bool) (roleNames []string, err error) MustCreateRole(createOptions *CreateRoleOptions) (createdRole Role) MustDeleteRoleByName(name string, verbose bool) MustGetClusterName() (clusterName string) MustGetName() (name string) MustGetRoleByName(name string) (role Role) MustListRoleNames(verbose bool) (roleNames []string) MustRoleByNameExists(name string, verbose bool) (exists bool) RoleByNameExists(name string, verbose bool) (exists bool, err error) }
Click to show internal directories.
Click to hide internal directories.