Documentation
¶
Overview ¶
First step of the State Machine. Responsible for initialization.
Package state_machine - Pre check for State Machine. Responsible for checking image status and possibly skipping provision.
Index ¶
- func NewFoilInstallState(service *service.FoilService) common_utils.ServiceState
- func NewFoilPostState(service *service.FoilService) common_utils.ServiceState
- func NewFoilPreInitState(service *service.FoilService) common_utils.ServiceState
- type FoilInstallState
- type FoilPostState
- type FoilPreInitState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFoilInstallState ¶
func NewFoilInstallState(service *service.FoilService) common_utils.ServiceState
func NewFoilPostState ¶
func NewFoilPostState(service *service.FoilService) common_utils.ServiceState
func NewFoilPreInitState ¶
func NewFoilPreInitState(service *service.FoilService) common_utils.ServiceState
NewFoilPreInitState provides an interface to FoilPreInitState.
Types ¶
type FoilInstallState ¶
type FoilInstallState struct {
// contains filtered or unexported fields
}
FoilInstallState can be thought of as the constructor state, which initializes variables in FoilService
func (FoilInstallState) Execute ¶
func (s FoilInstallState) Execute(ctx context.Context, log *log.Logger) (*anypb.Any, api.InstallResponse_Status, error)
func (FoilInstallState) Name ¶
func (s FoilInstallState) Name() string
func (FoilInstallState) Next ¶
func (s FoilInstallState) Next() common_utils.ServiceState
type FoilPostState ¶
type FoilPostState struct {
// contains filtered or unexported fields
}
FoilPostState can be thought of as the constructor state, which initializes variables in FoilService
func (FoilPostState) Execute ¶
func (s FoilPostState) Execute(ctx context.Context, log *log.Logger) (*anypb.Any, api.InstallResponse_Status, error)
func (FoilPostState) Name ¶
func (s FoilPostState) Name() string
func (FoilPostState) Next ¶
func (s FoilPostState) Next() common_utils.ServiceState
type FoilPreInitState ¶
type FoilPreInitState struct {
// contains filtered or unexported fields
}
FoilPreInitState can be thought of as the constructor state, which initializes variables in FoilService
func (FoilPreInitState) Execute ¶
func (s FoilPreInitState) Execute(ctx context.Context, log *log.Logger) (*anypb.Any, api.InstallResponse_Status, error)
Execute executes the steps needed to support FoilPreInitState. Check if the chromeOS target == current, if so skip install.
func (FoilPreInitState) Next ¶
func (s FoilPreInitState) Next() common_utils.ServiceState
Next provides the interface if the install flag is set.