Documentation ¶
Overview ¶
Package algo contains the interal implementation of the actual steps required for installation and uninstallation of Kubernetes components.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseK8sInstaller ¶
type BaseK8sInstaller struct { BundlePath string Installer K8sStepProvider OutputBuilder }
BaseK8sInstaller is the default k8s installer implementation
func (*BaseK8sInstaller) Install ¶
func (b *BaseK8sInstaller) Install() error
func (*BaseK8sInstaller) Uninstall ¶
func (b *BaseK8sInstaller) Uninstall() error
type K8sStepProvider ¶
type K8sStepProvider interface {
// contains filtered or unexported methods
}
type MockUbuntuWithError ¶
type MockUbuntuWithError struct { BaseK8sInstaller // contains filtered or unexported fields }
type OutputBuilder ¶
type OutputBuilderCounter ¶
type OutputBuilderCounter struct {
LogCalledCnt int
}
func (*OutputBuilderCounter) Cmd ¶
func (c *OutputBuilderCounter) Cmd(str string)
func (*OutputBuilderCounter) Desc ¶
func (c *OutputBuilderCounter) Desc(str string)
func (*OutputBuilderCounter) Err ¶
func (c *OutputBuilderCounter) Err(str string)
func (*OutputBuilderCounter) Msg ¶
func (c *OutputBuilderCounter) Msg(str string)
func (*OutputBuilderCounter) Out ¶
func (c *OutputBuilderCounter) Out(str string)
type ShellStep ¶
type ShellStep struct { Step DoCmd string UndoCmd string Desc string *BaseK8sInstaller }
ShellStep step that executes a shell command
type Step ¶
type Step interface {
// contains filtered or unexported methods
}
func NewAptStep ¶
func NewAptStep(k *BaseK8sInstaller, aptPkg string) Step
func NewAptStepEx ¶
func NewAptStepEx(k *BaseK8sInstaller, aptPkg string, optional bool) Step
NewAptStepEx step to install apt packages
func NewAptStepOptional ¶
func NewAptStepOptional(k *BaseK8sInstaller, aptPkg string) Step
NewAptStepOptional optional step to install apt package
type Ubuntu20_4K8s1_22 ¶
type Ubuntu20_4K8s1_22 struct {
BaseK8sInstaller
}
Click to show internal directories.
Click to hide internal directories.