phases

package
v0.0.0-...-a954c3e Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2023 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GetLocalCmd = command.New

GetLocalCmd makes it convenient to mock command.New in unit tests

Functions

This section is empty.

Types

type PhaseInterface

type PhaseInterface interface {
	GetHostPhase() sunpikev1alpha1.HostPhase
	Status(context.Context, config.Config) error
	Start(context.Context, config.Config) error
	Stop(context.Context, config.Config) error
	GetPhaseName() string
	GetOrder() int
}

PhaseInterface is an interface to interact with the phases

func GetMasterPhases

func GetMasterPhases() ([]PhaseInterface, error)

func GetNoRolePhases

func GetNoRolePhases() ([]PhaseInterface, error)

func GetWorkerPhases

func GetWorkerPhases() ([]PhaseInterface, error)

func InitAndLoadRolePhases

func InitAndLoadRolePhases(ctx context.Context, cfg config.Config) ([]PhaseInterface, error)

InitAndLoadRolePhases initializes and then returns an map of order -> phase when successful otherwise returns an error

Jump to

Keyboard shortcuts

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