bashscriptbasedphases

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: 10 Imported by: 0

Documentation

Index

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) GetOrder

func (p *Phase) GetOrder() int

GetOrder returns the phase order from embedded HostPhase struct

func (*Phase) GetPhaseName

func (p *Phase) GetPhaseName() string

func (*Phase) Start

func (p *Phase) Start(ctx context.Context, cfg config.Config) error

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.

func (*Phase) Status

func (p *Phase) Status(ctx context.Context, cfg config.Config) error

Status runs the "status" operation of a particular phase. Return value of 0 indicates that phase is ok/running. Otherwise it returns the exit code of phase script.

func (*Phase) Stop

func (p *Phase) Stop(ctx context.Context, cfg config.Config) error

Stop runs the "stop" operation of a particular phase. Return value of 0 indicates that phase was stopped properly. Otherwise it returns the exit code of phase script.

Jump to

Keyboard shortcuts

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