Documentation
¶
Overview ¶
First step of the CrOSInstall State Machine. Responsible for initialization.
Sixth and final step in the CrOSInstall State Machine. Installs MiniOS
Second step of CrOSInstall State Machine. Responsible for partition and install
Third step of CrOSInstall State Machine. Responsible for stateful provisioning
Package state_machine - Pre check for CrOSInstall State Machine. Responsible for checking image status and possibly skipping provision.
Fifth step in the CrOSInstall State Machine. Installs DLCs
Package state_machine - Pre check for CrOSInstall State Machine. Responsible for checking image status and possibly skipping provision.
Third step of CrOSInstall State Machine. Responsible for update firmware
Fourth step in the CrOSInstall State Machine. Currently a noop, to be implemented
Index ¶
- func NewCrOSInitState(service *service.CrOSService) common_utils.ServiceState
- func NewCrOSPreInitState(service *service.CrOSService) common_utils.ServiceState
- func NewCrOSResetDeviceState(service *service.CrOSService) common_utils.ServiceState
- type CrOSInitState
- type CrOSInstallMiniOSState
- type CrOSInstallState
- type CrOSPostInstallState
- type CrOSPreInitState
- type CrOSProvisionDLCState
- type CrOSResetDeviceState
- type CrOSVerifyState
- type CrosUpdateFirmwareState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCrOSInitState ¶
func NewCrOSInitState(service *service.CrOSService) common_utils.ServiceState
func NewCrOSPreInitState ¶
func NewCrOSPreInitState(service *service.CrOSService) common_utils.ServiceState
NewCrOSPreInitState provides an interface to CrOSPreInitState.
func NewCrOSResetDeviceState ¶
func NewCrOSResetDeviceState(service *service.CrOSService) common_utils.ServiceState
NewCrOSResetDeviceState provides an interface to CrOSResetDeviceState.
Types ¶
type CrOSInitState ¶
type CrOSInitState struct {
// contains filtered or unexported fields
}
CrosInitState can be thought of as the constructor state, which initializes variables in CrOSService
func (CrOSInitState) Execute ¶
func (s CrOSInitState) Execute(ctx context.Context, log *log.Logger) (*anypb.Any, api.InstallResponse_Status, error)
func (CrOSInitState) Name ¶
func (s CrOSInitState) Name() string
func (CrOSInitState) Next ¶
func (s CrOSInitState) Next() common_utils.ServiceState
type CrOSInstallMiniOSState ¶
type CrOSInstallMiniOSState struct {
// contains filtered or unexported fields
}
func (CrOSInstallMiniOSState) Execute ¶
func (s CrOSInstallMiniOSState) Execute(ctx context.Context, log *log.Logger) (*anypb.Any, api.InstallResponse_Status, error)
func (CrOSInstallMiniOSState) Name ¶
func (s CrOSInstallMiniOSState) Name() string
func (CrOSInstallMiniOSState) Next ¶
func (s CrOSInstallMiniOSState) Next() common_utils.ServiceState
type CrOSInstallState ¶
type CrOSInstallState struct {
// contains filtered or unexported fields
}
func (CrOSInstallState) Execute ¶
func (s CrOSInstallState) Execute(ctx context.Context, log *log.Logger) (*anypb.Any, api.InstallResponse_Status, error)
func (CrOSInstallState) Name ¶
func (s CrOSInstallState) Name() string
func (CrOSInstallState) Next ¶
func (s CrOSInstallState) Next() common_utils.ServiceState
type CrOSPostInstallState ¶
type CrOSPostInstallState struct {
// contains filtered or unexported fields
}
func (CrOSPostInstallState) Execute ¶
func (s CrOSPostInstallState) Execute(ctx context.Context, log *log.Logger) (*anypb.Any, api.InstallResponse_Status, error)
func (CrOSPostInstallState) Name ¶
func (s CrOSPostInstallState) Name() string
func (CrOSPostInstallState) Next ¶
func (s CrOSPostInstallState) Next() common_utils.ServiceState
type CrOSPreInitState ¶
type CrOSPreInitState struct {
// contains filtered or unexported fields
}
CrOSPreInitState can be thought of as the constructor state, which initializes variables in CrOSService
func (CrOSPreInitState) Execute ¶
func (s CrOSPreInitState) Execute(ctx context.Context, log *log.Logger) (*anypb.Any, api.InstallResponse_Status, error)
Execute executes the steps needed to support CrOSPreInitState. Xheck if the chromeOS target == current, if so skip install.
func (CrOSPreInitState) Next ¶
func (s CrOSPreInitState) Next() common_utils.ServiceState
Next provides the interface to the CrosInitState if the install flag is set.
type CrOSProvisionDLCState ¶
type CrOSProvisionDLCState struct {
// contains filtered or unexported fields
}
func (CrOSProvisionDLCState) Execute ¶
func (s CrOSProvisionDLCState) Execute(ctx context.Context, log *log.Logger) (*anypb.Any, api.InstallResponse_Status, error)
func (CrOSProvisionDLCState) Name ¶
func (s CrOSProvisionDLCState) Name() string
func (CrOSProvisionDLCState) Next ¶
func (s CrOSProvisionDLCState) Next() common_utils.ServiceState
type CrOSResetDeviceState ¶
type CrOSResetDeviceState struct {
// contains filtered or unexported fields
}
CrOSResetDeviceState can be thought of as the constructor state, which initializes variables in CrOSService
func (CrOSResetDeviceState) Execute ¶
func (s CrOSResetDeviceState) Execute(ctx context.Context, log *log.Logger) (*anypb.Any, api.InstallResponse_Status, error)
Execute executes the steps needed to support CrOSResetDeviceState.
func (CrOSResetDeviceState) Next ¶
func (s CrOSResetDeviceState) Next() common_utils.ServiceState
Nothing to do for Next.
type CrOSVerifyState ¶
type CrOSVerifyState struct {
// contains filtered or unexported fields
}
func (CrOSVerifyState) Execute ¶
func (s CrOSVerifyState) Execute(ctx context.Context, log *log.Logger) (*anypb.Any, api.InstallResponse_Status, error)
func (CrOSVerifyState) Name ¶
func (s CrOSVerifyState) Name() string
func (CrOSVerifyState) Next ¶
func (s CrOSVerifyState) Next() common_utils.ServiceState
type CrosUpdateFirmwareState ¶
type CrosUpdateFirmwareState struct {
// contains filtered or unexported fields
}
func (CrosUpdateFirmwareState) Execute ¶
func (s CrosUpdateFirmwareState) Execute(ctx context.Context, log *log.Logger) (*anypb.Any, api.InstallResponse_Status, error)
func (CrosUpdateFirmwareState) Name ¶
func (s CrosUpdateFirmwareState) Name() string
func (CrosUpdateFirmwareState) Next ¶
func (s CrosUpdateFirmwareState) Next() common_utils.ServiceState