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) GetCachedContextName() (cachedContextName string, err error)
- func (c *CommandExecutorKubernetes) GetCachedKubectlContext(verbose bool) (context string, err error)
- func (c *CommandExecutorKubernetes) GetCommandExecutor() (commandExecutor commandexecutor.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) MustGetCachedContextName() (cachedContextName string)
- func (c *CommandExecutorKubernetes) MustGetCachedKubectlContext(verbose bool) (context string)
- func (c *CommandExecutorKubernetes) MustGetCommandExecutor() (commandExecutor commandexecutor.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 *parameteroptions.RunCommandOptions) (commandOutput *commandexecutor.CommandOutput)
- func (c *CommandExecutorKubernetes) MustRunCommandAndGetStdoutAsLines(runCommandOptions *parameteroptions.RunCommandOptions) (lines []string)
- func (c *CommandExecutorKubernetes) MustSetCachedContextName(cachedContextName string)
- func (c *CommandExecutorKubernetes) MustSetCommandExecutor(commandExecutor commandexecutor.CommandExecutor)
- func (c *CommandExecutorKubernetes) MustSetName(name string)
- func (c *CommandExecutorKubernetes) NamespaceByNameExists(name string, verbose bool) (exists bool, err error)
- func (c *CommandExecutorKubernetes) RunCommand(runCommandOptions *parameteroptions.RunCommandOptions) (commandOutput *commandexecutor.CommandOutput, err error)
- func (c *CommandExecutorKubernetes) RunCommandAndGetStdoutAsLines(runCommandOptions *parameteroptions.RunCommandOptions) (lines []string, err error)
- func (c *CommandExecutorKubernetes) SetCachedContextName(cachedContextName string) (err error)
- func (c *CommandExecutorKubernetes) SetCommandExecutor(commandExecutor commandexecutor.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) GetCachedKubectlContext(verbose bool) (context string, err error)
- func (c *CommandExecutorNamespace) GetClusterName() (clusterName string, err error)
- func (c *CommandExecutorNamespace) GetCommandExecutor() (commandExecutor commandexecutor.CommandExecutor, 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) MustGetCachedKubectlContext(verbose bool) (context string)
- func (c *CommandExecutorNamespace) MustGetClusterName() (clusterName string)
- func (c *CommandExecutorNamespace) MustGetCommandExecutor() (commandExecutor commandexecutor.CommandExecutor)
- 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 *parameteroptions.RunCommandOptions) (commandOutput *commandexecutor.CommandOutput)
- func (c *CommandExecutorNamespace) MustRunCommandAndGetStdoutAsLines(runCommandOptions *parameteroptions.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 *parameteroptions.RunCommandOptions) (commandOutput *commandexecutor.CommandOutput, err error)
- func (c *CommandExecutorNamespace) RunCommandAndGetStdoutAsLines(runCommandOptions *parameteroptions.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 commandexecutor.CommandExecutor, clusterName string) (kubernetes KubernetesCluster, err error)
- func GetLocalCommandExecutorKubernetesByName(clusterName string) (kubernetes KubernetesCluster, err error)
- func MustGetCommandExecutorKubernetsByName(commandExecutor commandexecutor.CommandExecutor, clusterName string) (kubernetes KubernetesCluster)
- func MustGetLocalCommandExecutorKubernetesByName(clusterName string) (kubernetes KubernetesCluster)
- type KubernetesControlplaneHost
- func GetKubernetesControlplaneByHost(host hosts.Host) (kubernetesControlplaneHost *KubernetesControlplaneHost, err error)
- func GetKubernetesControlplaneByHostname(hostname string) (kubernetesControlplaneHost *KubernetesControlplaneHost, err error)
- func MustGetKubernetesControlplaneByHost(host hosts.Host) (kubernetesControlplaneHost *KubernetesControlplaneHost)
- func MustGetKubernetesControlplaneByHostname(hostname string) (kubernetesControlplaneHost *KubernetesControlplaneHost)
- func NewKubernetesControlplaneHost() (kubernetesControlplaneHost *KubernetesControlplaneHost)
- func (k *KubernetesControlplaneHost) CheckIsKubernetesControlplane(verbose bool) (isKubernetesControlplane bool, err error)
- func (k *KubernetesControlplaneHost) GetJoinCommandAsString(verbose bool) (joinCommand string, err error)
- func (k *KubernetesControlplaneHost) GetJoinCommandAsStringSlice(verbose bool) (joinCommand []string, err error)
- func (k *KubernetesControlplaneHost) IsKubernetesControlplane(verbose bool) (isKubernetesControlplane bool, err error)
- func (k *KubernetesControlplaneHost) MustCheckIsKubernetesControlplane(verbose bool) (isKubernetesControlplane bool)
- func (k *KubernetesControlplaneHost) MustGetJoinCommandAsString(verbose bool) (joinCommand string)
- func (k *KubernetesControlplaneHost) MustGetJoinCommandAsStringSlice(verbose bool) (joinCommand []string)
- func (k *KubernetesControlplaneHost) MustIsKubernetesControlplane(verbose bool) (isKubernetesControlplane bool)
- type KubernetesNodeHost
- func GetKubernetesNodeByHost(host hosts.Host) (kubernetesNodeHost *KubernetesNodeHost, err error)
- func GetKubernetesNodeByHostname(hostname string) (kubernetesNodeHost *KubernetesNodeHost, err error)
- func MustGetKubernetesNodeByHost(host hosts.Host) (kubernetesNodeHost *KubernetesNodeHost)
- func MustGetKubernetesNodeByHostname(hostname string) (kubernetesNodeHost *KubernetesNodeHost)
- func NewKubernetesNodeHost() (kubernetesNodeHost *KubernetesNodeHost)
- func (k *KubernetesNodeHost) CheckIsKubernetesNode(verbose bool) (isKubernetesNode bool, err error)
- func (k *KubernetesNodeHost) IsKubernetesNode(verbose bool) (isKubernetesNode bool, err error)
- func (k *KubernetesNodeHost) MustCheckIsKubernetesNode(verbose bool) (isKubernetesNode bool)
- func (k *KubernetesNodeHost) MustIsKubernetesNode(verbose bool) (isKubernetesNode bool)
- 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) GetCachedContextName ¶ added in v0.190.0
func (c *CommandExecutorKubernetes) GetCachedContextName() (cachedContextName string, err error)
func (*CommandExecutorKubernetes) GetCachedKubectlContext ¶ added in v0.190.0
func (c *CommandExecutorKubernetes) GetCachedKubectlContext(verbose bool) (context string, err error)
func (*CommandExecutorKubernetes) GetCommandExecutor ¶ added in v0.183.0
func (c *CommandExecutorKubernetes) GetCommandExecutor() (commandExecutor commandexecutor.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) MustGetCachedContextName ¶ added in v0.190.0
func (c *CommandExecutorKubernetes) MustGetCachedContextName() (cachedContextName string)
func (*CommandExecutorKubernetes) MustGetCachedKubectlContext ¶ added in v0.190.0
func (c *CommandExecutorKubernetes) MustGetCachedKubectlContext(verbose bool) (context string)
func (*CommandExecutorKubernetes) MustGetCommandExecutor ¶ added in v0.183.0
func (c *CommandExecutorKubernetes) MustGetCommandExecutor() (commandExecutor commandexecutor.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 *parameteroptions.RunCommandOptions) (commandOutput *commandexecutor.CommandOutput)
func (*CommandExecutorKubernetes) MustRunCommandAndGetStdoutAsLines ¶ added in v0.183.0
func (c *CommandExecutorKubernetes) MustRunCommandAndGetStdoutAsLines(runCommandOptions *parameteroptions.RunCommandOptions) (lines []string)
func (*CommandExecutorKubernetes) MustSetCachedContextName ¶ added in v0.190.0
func (c *CommandExecutorKubernetes) MustSetCachedContextName(cachedContextName string)
func (*CommandExecutorKubernetes) MustSetCommandExecutor ¶ added in v0.183.0
func (c *CommandExecutorKubernetes) MustSetCommandExecutor(commandExecutor commandexecutor.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 *parameteroptions.RunCommandOptions) (commandOutput *commandexecutor.CommandOutput, err error)
func (*CommandExecutorKubernetes) RunCommandAndGetStdoutAsLines ¶ added in v0.183.0
func (c *CommandExecutorKubernetes) RunCommandAndGetStdoutAsLines(runCommandOptions *parameteroptions.RunCommandOptions) (lines []string, err error)
func (*CommandExecutorKubernetes) SetCachedContextName ¶ added in v0.190.0
func (c *CommandExecutorKubernetes) SetCachedContextName(cachedContextName string) (err error)
func (*CommandExecutorKubernetes) SetCommandExecutor ¶ added in v0.183.0
func (c *CommandExecutorKubernetes) SetCommandExecutor(commandExecutor commandexecutor.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) GetCachedKubectlContext ¶ added in v0.190.0
func (c *CommandExecutorNamespace) GetCachedKubectlContext(verbose bool) (context string, 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 commandexecutor.CommandExecutor, 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) MustGetCachedKubectlContext ¶ added in v0.190.0
func (c *CommandExecutorNamespace) MustGetCachedKubectlContext(verbose bool) (context string)
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 commandexecutor.CommandExecutor)
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 *parameteroptions.RunCommandOptions) (commandOutput *commandexecutor.CommandOutput)
func (*CommandExecutorNamespace) MustRunCommandAndGetStdoutAsLines ¶ added in v0.184.0
func (c *CommandExecutorNamespace) MustRunCommandAndGetStdoutAsLines(runCommandOptions *parameteroptions.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 *parameteroptions.RunCommandOptions) (commandOutput *commandexecutor.CommandOutput, err error)
func (*CommandExecutorNamespace) RunCommandAndGetStdoutAsLines ¶ added in v0.184.0
func (c *CommandExecutorNamespace) RunCommandAndGetStdoutAsLines(runCommandOptions *parameteroptions.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 commandexecutor.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 commandexecutor.CommandExecutor, clusterName string) (kubernetes KubernetesCluster)
func MustGetLocalCommandExecutorKubernetesByName ¶ added in v0.183.0
func MustGetLocalCommandExecutorKubernetesByName(clusterName string) (kubernetes KubernetesCluster)
type KubernetesControlplaneHost ¶ added in v0.191.0
func GetKubernetesControlplaneByHost ¶ added in v0.191.0
func GetKubernetesControlplaneByHost(host hosts.Host) (kubernetesControlplaneHost *KubernetesControlplaneHost, err error)
func GetKubernetesControlplaneByHostname ¶ added in v0.191.0
func GetKubernetesControlplaneByHostname(hostname string) (kubernetesControlplaneHost *KubernetesControlplaneHost, err error)
func MustGetKubernetesControlplaneByHost ¶ added in v0.191.0
func MustGetKubernetesControlplaneByHost(host hosts.Host) (kubernetesControlplaneHost *KubernetesControlplaneHost)
func MustGetKubernetesControlplaneByHostname ¶ added in v0.191.0
func MustGetKubernetesControlplaneByHostname(hostname string) (kubernetesControlplaneHost *KubernetesControlplaneHost)
func NewKubernetesControlplaneHost ¶ added in v0.191.0
func NewKubernetesControlplaneHost() (kubernetesControlplaneHost *KubernetesControlplaneHost)
func (*KubernetesControlplaneHost) CheckIsKubernetesControlplane ¶ added in v0.191.0
func (k *KubernetesControlplaneHost) CheckIsKubernetesControlplane(verbose bool) (isKubernetesControlplane bool, err error)
func (*KubernetesControlplaneHost) GetJoinCommandAsString ¶ added in v0.191.0
func (k *KubernetesControlplaneHost) GetJoinCommandAsString(verbose bool) (joinCommand string, err error)
func (*KubernetesControlplaneHost) GetJoinCommandAsStringSlice ¶ added in v0.191.0
func (k *KubernetesControlplaneHost) GetJoinCommandAsStringSlice(verbose bool) (joinCommand []string, err error)
func (*KubernetesControlplaneHost) IsKubernetesControlplane ¶ added in v0.191.0
func (k *KubernetesControlplaneHost) IsKubernetesControlplane(verbose bool) (isKubernetesControlplane bool, err error)
func (*KubernetesControlplaneHost) MustCheckIsKubernetesControlplane ¶ added in v0.191.0
func (k *KubernetesControlplaneHost) MustCheckIsKubernetesControlplane(verbose bool) (isKubernetesControlplane bool)
func (*KubernetesControlplaneHost) MustGetJoinCommandAsString ¶ added in v0.191.0
func (k *KubernetesControlplaneHost) MustGetJoinCommandAsString(verbose bool) (joinCommand string)
func (*KubernetesControlplaneHost) MustGetJoinCommandAsStringSlice ¶ added in v0.191.0
func (k *KubernetesControlplaneHost) MustGetJoinCommandAsStringSlice(verbose bool) (joinCommand []string)
func (*KubernetesControlplaneHost) MustIsKubernetesControlplane ¶ added in v0.191.0
func (k *KubernetesControlplaneHost) MustIsKubernetesControlplane(verbose bool) (isKubernetesControlplane bool)
type KubernetesNodeHost ¶ added in v0.191.0
func GetKubernetesNodeByHost ¶ added in v0.191.0
func GetKubernetesNodeByHost(host hosts.Host) (kubernetesNodeHost *KubernetesNodeHost, err error)
func GetKubernetesNodeByHostname ¶ added in v0.191.0
func GetKubernetesNodeByHostname(hostname string) (kubernetesNodeHost *KubernetesNodeHost, err error)
func MustGetKubernetesNodeByHost ¶ added in v0.191.0
func MustGetKubernetesNodeByHost(host hosts.Host) (kubernetesNodeHost *KubernetesNodeHost)
func MustGetKubernetesNodeByHostname ¶ added in v0.191.0
func MustGetKubernetesNodeByHostname(hostname string) (kubernetesNodeHost *KubernetesNodeHost)
func NewKubernetesNodeHost ¶ added in v0.191.0
func NewKubernetesNodeHost() (kubernetesNodeHost *KubernetesNodeHost)
func (*KubernetesNodeHost) CheckIsKubernetesNode ¶ added in v0.191.0
func (k *KubernetesNodeHost) CheckIsKubernetesNode(verbose bool) (isKubernetesNode bool, err error)
func (*KubernetesNodeHost) IsKubernetesNode ¶ added in v0.191.0
func (k *KubernetesNodeHost) IsKubernetesNode(verbose bool) (isKubernetesNode bool, err error)
func (*KubernetesNodeHost) MustCheckIsKubernetesNode ¶ added in v0.191.0
func (k *KubernetesNodeHost) MustCheckIsKubernetesNode(verbose bool) (isKubernetesNode bool)
func (*KubernetesNodeHost) MustIsKubernetesNode ¶ added in v0.191.0
func (k *KubernetesNodeHost) MustIsKubernetesNode(verbose bool) (isKubernetesNode bool)
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.