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 ¶
InitAndLoadRolePhases initializes and then returns an map of order -> phase when successful otherwise returns an error
Click to show internal directories.
Click to hide internal directories.