components

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterComponent

func RegisterComponent(comp ComponentInstaller)

Types

type CLIComponent

type CLIComponent interface {
	// returns true if CLI is needed and has not yet been installed
	NeedsCLI() bool
	// installs CLI locally
	InstallCLI() error
}

type ComponentInstaller

type ComponentInstaller interface {
	Name() string
	VersionForKube(version string) string

	// installs the component onto the kube cluster
	InstallComponent(client.Client) error
}

func GetComponentByName

func GetComponentByName(name string) ComponentInstaller

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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