algo

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

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 Installer

type Installer interface {
	Install() error
	Uninstall() error
}

Installer generic installer interface

type K8sStepProvider

type K8sStepProvider interface {
	// contains filtered or unexported methods
}

type MockUbuntuWithError

type MockUbuntuWithError struct {
	BaseK8sInstaller
	// contains filtered or unexported fields
}

type OutputBuilder

type OutputBuilder interface {
	Out(string)
	Err(string)
	Cmd(string)
	Desc(string)
	Msg(string)
}

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
}

Jump to

Keyboard shortcuts

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