phases

package
v0.0.0-...-3bfe646 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2023 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// InstallerPhase is a phase that downloads installer from Ops Center
	InstallerPhase = "/installer"
	// DecryptPhase is a phase that decrypts encrypted packages
	DecryptPhase = "/decrypt"
	// LicensePhase is a phase that installs license
	LicensePhase = "/license"
	// ConnectPhase is a phase that connects cluster to a remote Ops Center
	ConnectPhase = "/connect"
	// ClusterPhase is a phase that installs cluster using local Ops Center
	ClusterPhase = "/cluster"
)

Variables

View Source
var (
	// ClusterCreatePhase is a phase that creates a cluster install operation
	ClusterCreatePhase = fmt.Sprintf("%v/create", ClusterPhase)
	// ClusterWaitPhase is a phase that waits for cluster to finish install
	ClusterWaitPhase = fmt.Sprintf("%v/wait", ClusterPhase)
	// ClusterInfoPhase is a phase that collects info about installed cluster
	ClusterInfoPhase = fmt.Sprintf("%v/info", ClusterPhase)
)

Functions

func GetEncryptionKey

func GetEncryptionKey(lic string) (string, error)

GetEncryptionKey extracts encryption key from the provided license string

func NewCluster

func NewCluster(p fsm.ExecutorParams, wizardOperator ops.Operator, wizardPack pack.PackageService, wizardApps app.Applications, userLogFile string) (fsm.PhaseExecutor, error)

NewCluster returns an executor for a /cluster phase The /cluster phase uses local Ops Center to install a cluster that was provided to gravity install via --cluster-spec flag.

func NewConnect

func NewConnect(p fsm.ExecutorParams, operator ossops.Operator) (fsm.PhaseExecutor, error)

NewConnect returns executor for the "connect" phase that connects installed cluster to an Ops Center

func NewDecrypt

func NewDecrypt(p fsm.ExecutorParams, operator ops.Operator, packages pack.PackageService, apps app.Applications) (fsm.PhaseExecutor, error)

NewDecrypt returns a new "decrypt" phase executor

func NewInstaller

func NewInstaller(p fsm.ExecutorParams, operator ops.Operator, wizardPack pack.PackageService, wizardApps app.Applications) (fsm.PhaseExecutor, error)

NewInstaller returns a new "installer" phase

func NewLicense

func NewLicense(p fsm.ExecutorParams, operator ops.Operator, client *kubernetes.Clientset) (fsm.PhaseExecutor, error)

NewLicense returns a new "license" phase executor

Types

This section is empty.

Jump to

Keyboard shortcuts

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