Documentation ¶
Index ¶
- Variables
- type Phase
- func (p *Phase) GetHostPhase() sunpikev1alpha1.HostPhase
- func (p *Phase) GetOrder() int
- func (p *Phase) GetPhaseName() string
- func (p *Phase) Start(ctx context.Context, cfg config.Config) error
- func (p *Phase) Status(ctx context.Context, cfg config.Config) error
- func (p *Phase) Stop(ctx context.Context, cfg config.Config) error
Constants ¶
This section is empty.
Variables ¶
View Source
var LocalCmd = command.New()
GetLocalCmd makes it convenient to mock command.New in unit tests
Functions ¶
This section is empty.
Types ¶
type Phase ¶
type Phase struct { *sunpikev1alpha1.HostPhase Filename string Retry int }
Phase is the type defining a phase which is run as part of bring up or tear down of k8s services. It extends the sunpike Phase with additional fields needed during runtime on the host
func (*Phase) GetHostPhase ¶
func (p *Phase) GetHostPhase() sunpikev1alpha1.HostPhase
GetHostPhase returns the embedded HostPhase struct
func (*Phase) GetPhaseName ¶
func (*Phase) Start ¶
Start runs the "start" operation of a particular phase. Return value of 0 indicates that phase was started properly. Otherwise it returns the exit code of phase script.
Click to show internal directories.
Click to hide internal directories.