commands

package
v0.0.0-...-19f3ddf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 30, 2024 License: BSD-3-Clause Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckFirmwareSlotCommand

type CheckFirmwareSlotCommand struct {
	RebootRequired bool
	// contains filtered or unexported fields
}

func NewCheckFirmwareSlotCommand

func NewCheckFirmwareSlotCommand(ctx context.Context, cs *service.CrOSService) *CheckFirmwareSlotCommand

func (*CheckFirmwareSlotCommand) Execute

func (c *CheckFirmwareSlotCommand) Execute(log *log.Logger) error

func (*CheckFirmwareSlotCommand) GetErrorMessage

func (c *CheckFirmwareSlotCommand) GetErrorMessage() string

func (*CheckFirmwareSlotCommand) GetStatus

func (*CheckFirmwareSlotCommand) Revert

func (c *CheckFirmwareSlotCommand) Revert() error

type CheckFirmwareUpdaterCommand

type CheckFirmwareUpdaterCommand struct {
	UpdaterExist bool
	// contains filtered or unexported fields
}

func (*CheckFirmwareUpdaterCommand) Execute

func (c *CheckFirmwareUpdaterCommand) Execute(log *log.Logger) error

func (*CheckFirmwareUpdaterCommand) GetErrorMessage

func (c *CheckFirmwareUpdaterCommand) GetErrorMessage() string

func (*CheckFirmwareUpdaterCommand) GetStatus

func (*CheckFirmwareUpdaterCommand) Revert

func (c *CheckFirmwareUpdaterCommand) Revert() error

type CheckInstallNeeded

type CheckInstallNeeded struct {
	// contains filtered or unexported fields
}

CheckInstallNeeded is the commands interface struct.

func NewCheckInstallNeeded

func NewCheckInstallNeeded(ctx context.Context, cs *service.CrOSService) *CheckInstallNeeded

NewCheckInstallNeeded is the commands interface to CheckInstallNeeded

func (*CheckInstallNeeded) Execute

func (c *CheckInstallNeeded) Execute(log *log.Logger) error

Execute is the executor for the command. Will check if the current DUT version == target, if so set the skip install flag.

func (*CheckInstallNeeded) GetErrorMessage

func (c *CheckInstallNeeded) GetErrorMessage() string

GetErrorMessage provides the failed to check install err string.

func (*CheckInstallNeeded) GetStatus

GetStatus provides API Error reason.

func (*CheckInstallNeeded) Revert

func (c *CheckInstallNeeded) Revert() error

Revert interface command. None needed as nothing has happened yet.

type CheckKvmEnabled

type CheckKvmEnabled struct {
	// contains filtered or unexported fields
}

CheckKvmEnabled is the commands interface struct.

func NewCheckKvmEnabled

func NewCheckKvmEnabled(ctx context.Context, cs *service.CrOSService) *CheckKvmEnabled

NewCheckKvmEnabled is the commands interface to CheckKvmEnabled

func (*CheckKvmEnabled) Execute

func (c *CheckKvmEnabled) Execute(log *log.Logger) error

Execute is the executor for the command. Will check KVM is enabled by validating against device path for KVM.

func (*CheckKvmEnabled) GetErrorMessage

func (c *CheckKvmEnabled) GetErrorMessage() string

GetErrorMessage provides the failed to check KVM enabled string.

func (*CheckKvmEnabled) GetStatus

GetStatus provides API Error reason.

func (*CheckKvmEnabled) Revert

func (c *CheckKvmEnabled) Revert() error

Revert interface command. None needed as nothing has happened yet.

type CheckVersionMatches

type CheckVersionMatches struct {
	// contains filtered or unexported fields
}

CheckVersionMatches is the commands interface struct.

func NewCheckVersionMatches

func NewCheckVersionMatches(ctx context.Context, cs *service.CrOSService) *CheckVersionMatches

NewCheckVersionMatches is the commands interface to CheckVersionMatches

func (*CheckVersionMatches) Execute

func (c *CheckVersionMatches) Execute(log *log.Logger) error

Execute is the executor for the command. Will check if the current DUT version == target, if so set the skip install flag.

func (*CheckVersionMatches) GetErrorMessage

func (c *CheckVersionMatches) GetErrorMessage() string

GetErrorMessage provides the failed to check install err string.

func (*CheckVersionMatches) GetStatus

GetStatus provides API Error reason.

func (*CheckVersionMatches) Revert

func (c *CheckVersionMatches) Revert() error

Revert interface command. None needed as nothing has happened yet.

type ClearDLCArtifactsCommand

type ClearDLCArtifactsCommand struct {
	// contains filtered or unexported fields
}

func NewClearDLCArtifactsCommand

func NewClearDLCArtifactsCommand(ctx context.Context, cs *service.CrOSService) *ClearDLCArtifactsCommand

func (*ClearDLCArtifactsCommand) Execute

func (c *ClearDLCArtifactsCommand) Execute(log *log.Logger) error

func (*ClearDLCArtifactsCommand) GetErrorMessage

func (c *ClearDLCArtifactsCommand) GetErrorMessage() string

func (*ClearDLCArtifactsCommand) GetStatus

func (*ClearDLCArtifactsCommand) Revert

func (c *ClearDLCArtifactsCommand) Revert() error

type ClearTPMCommand

type ClearTPMCommand struct {
	// contains filtered or unexported fields
}

func NewClearTPMCommand

func NewClearTPMCommand(ctx context.Context, cs *service.CrOSService) *ClearTPMCommand

func (*ClearTPMCommand) Execute

func (c *ClearTPMCommand) Execute(log *log.Logger) error

func (*ClearTPMCommand) GetErrorMessage

func (c *ClearTPMCommand) GetErrorMessage() string

func (*ClearTPMCommand) GetStatus

func (*ClearTPMCommand) Revert

func (c *ClearTPMCommand) Revert() error

type CorrectDLCPermissionsCommand

type CorrectDLCPermissionsCommand struct {
	// contains filtered or unexported fields
}

func (*CorrectDLCPermissionsCommand) Execute

func (c *CorrectDLCPermissionsCommand) Execute(log *log.Logger) error

func (*CorrectDLCPermissionsCommand) GetErrorMessage

func (c *CorrectDLCPermissionsCommand) GetErrorMessage() string

func (*CorrectDLCPermissionsCommand) GetStatus

func (*CorrectDLCPermissionsCommand) Revert

func (c *CorrectDLCPermissionsCommand) Revert() error

type CreateProvisionMarkerCommand

type CreateProvisionMarkerCommand struct {
	// contains filtered or unexported fields
}

func (*CreateProvisionMarkerCommand) Execute

func (c *CreateProvisionMarkerCommand) Execute(log *log.Logger) error

func (*CreateProvisionMarkerCommand) GetErrorMessage

func (c *CreateProvisionMarkerCommand) GetErrorMessage() string

func (*CreateProvisionMarkerCommand) GetStatus

func (*CreateProvisionMarkerCommand) Revert

func (c *CreateProvisionMarkerCommand) Revert() error

type EnableChargeLimitCommand

type EnableChargeLimitCommand struct {
	// contains filtered or unexported fields
}

func NewEnableChargeLimitCommand

func NewEnableChargeLimitCommand(ctx context.Context, cs *service.CrOSService) *EnableChargeLimitCommand

func (*EnableChargeLimitCommand) Execute

func (c *EnableChargeLimitCommand) Execute(log *log.Logger) error

func (*EnableChargeLimitCommand) GetErrorMessage

func (c *EnableChargeLimitCommand) GetErrorMessage() string

func (*EnableChargeLimitCommand) GetStatus

func (*EnableChargeLimitCommand) Revert

func (c *EnableChargeLimitCommand) Revert() error

type GetBoardCommand

type GetBoardCommand struct {
	// contains filtered or unexported fields
}

func NewGetBoardCommand

func NewGetBoardCommand(ctx context.Context, cs *service.CrOSService) *GetBoardCommand

func (*GetBoardCommand) Execute

func (c *GetBoardCommand) Execute(log *log.Logger) error

func (*GetBoardCommand) GetErrorMessage

func (c *GetBoardCommand) GetErrorMessage() string

func (*GetBoardCommand) GetStatus

func (*GetBoardCommand) Revert

func (c *GetBoardCommand) Revert() error

type GetRootInfoCommand

type GetRootInfoCommand struct {
	// contains filtered or unexported fields
}

func NewGetRootInfoCommand

func NewGetRootInfoCommand(ctx context.Context, cs *service.CrOSService) *GetRootInfoCommand

func (*GetRootInfoCommand) Execute

func (c *GetRootInfoCommand) Execute(log *log.Logger) error

func (*GetRootInfoCommand) GetErrorMessage

func (c *GetRootInfoCommand) GetErrorMessage() string

func (*GetRootInfoCommand) GetStatus

func (*GetRootInfoCommand) Revert

func (c *GetRootInfoCommand) Revert() error

type GetVersionCommand

type GetVersionCommand struct {
	// contains filtered or unexported fields
}

GetVersionCommand is the commands interface struct.

func NewGetVersionCommand

func NewGetVersionCommand(ctx context.Context, cs *service.CrOSService) *GetVersionCommand

NewGetVersionCommand is the commands interface to GetVersionCommand

func (*GetVersionCommand) Execute

func (c *GetVersionCommand) Execute(log *log.Logger) error

Execute is the executor for the command. Will get the OS version from the DUT.

func (*GetVersionCommand) GetErrorMessage

func (c *GetVersionCommand) GetErrorMessage() string

GetErrorMessage provides the failed to check install err string.

func (*GetVersionCommand) GetStatus

GetStatus provides API Error reason.

func (*GetVersionCommand) Revert

func (c *GetVersionCommand) Revert() error

Revert interface command. None needed as nothing has happened yet.

type InstallDLCsCommand

type InstallDLCsCommand struct {
	// contains filtered or unexported fields
}

func NewInstallDLCsCommand

func NewInstallDLCsCommand(ctx context.Context, cs *service.CrOSService) *InstallDLCsCommand

func (*InstallDLCsCommand) Execute

func (c *InstallDLCsCommand) Execute(log *log.Logger) error

func (*InstallDLCsCommand) GetErrorMessage

func (c *InstallDLCsCommand) GetErrorMessage() string

func (*InstallDLCsCommand) GetStatus

func (*InstallDLCsCommand) Revert

func (c *InstallDLCsCommand) Revert() error

type InstallMiniOSCommand

type InstallMiniOSCommand struct {
	// contains filtered or unexported fields
}

func NewInstallMiniOSCommand

func NewInstallMiniOSCommand(ctx context.Context, cs *service.CrOSService) *InstallMiniOSCommand

func (*InstallMiniOSCommand) Execute

func (c *InstallMiniOSCommand) Execute(log *log.Logger) error

func (*InstallMiniOSCommand) GetErrorMessage

func (c *InstallMiniOSCommand) GetErrorMessage() string

func (*InstallMiniOSCommand) GetStatus

func (*InstallMiniOSCommand) Revert

func (c *InstallMiniOSCommand) Revert() error

type InstallPartitionsCommand

type InstallPartitionsCommand struct {
	// contains filtered or unexported fields
}

func NewInstallPartitionsCommand

func NewInstallPartitionsCommand(ctx context.Context, cs *service.CrOSService) *InstallPartitionsCommand

func (*InstallPartitionsCommand) Execute

func (c *InstallPartitionsCommand) Execute(log *log.Logger) error

func (*InstallPartitionsCommand) GetErrorMessage

func (c *InstallPartitionsCommand) GetErrorMessage() string

func (*InstallPartitionsCommand) GetStatus

func (*InstallPartitionsCommand) Revert

func (c *InstallPartitionsCommand) Revert() error

type OptionalRebootArgs

type OptionalRebootArgs struct {
	// force the reboot over a clean reboot.
	Force bool
}

type OverwriteInstalCommand

type OverwriteInstalCommand struct {
	// contains filtered or unexported fields
}

func NewOverwriteInstalCommand

func NewOverwriteInstalCommand(ctx context.Context, cs *service.CrOSService) *OverwriteInstalCommand

func (*OverwriteInstalCommand) Execute

func (c *OverwriteInstalCommand) Execute(log *log.Logger) error

func (*OverwriteInstalCommand) GetErrorMessage

func (c *OverwriteInstalCommand) GetErrorMessage() string

func (*OverwriteInstalCommand) GetStatus

func (*OverwriteInstalCommand) Revert

func (c *OverwriteInstalCommand) Revert() error

type PostInstallCommand

type PostInstallCommand struct {
	// contains filtered or unexported fields
}

func NewPostInstallCommand

func NewPostInstallCommand(ctx context.Context, cs *service.CrOSService) *PostInstallCommand

func (*PostInstallCommand) Execute

func (c *PostInstallCommand) Execute(log *log.Logger) error

func (*PostInstallCommand) GetErrorMessage

func (c *PostInstallCommand) GetErrorMessage() string

func (*PostInstallCommand) GetStatus

func (*PostInstallCommand) Revert

func (c *PostInstallCommand) Revert() error

type ProvisionStatefulCommand

type ProvisionStatefulCommand struct {
	// contains filtered or unexported fields
}

func NewProvisionStatefulCommand

func NewProvisionStatefulCommand(ctx context.Context, cs *service.CrOSService) *ProvisionStatefulCommand

func (*ProvisionStatefulCommand) Execute

func (c *ProvisionStatefulCommand) Execute(log *log.Logger) error

func (*ProvisionStatefulCommand) GetErrorMessage

func (c *ProvisionStatefulCommand) GetErrorMessage() string

func (*ProvisionStatefulCommand) GetStatus

func (*ProvisionStatefulCommand) Revert

func (c *ProvisionStatefulCommand) Revert() error

type RebootCommand

type RebootCommand struct {
	// contains filtered or unexported fields
}

func NewRebootCommand

func NewRebootCommand(ctx context.Context, cs *service.CrOSService, optRebootArgs ...OptionalRebootArgs) *RebootCommand

func NewRebootWithTimeoutCommand

func NewRebootWithTimeoutCommand(timeout time.Duration, ctx context.Context, cs *service.CrOSService, optRebootArgs ...OptionalRebootArgs) *RebootCommand

func (*RebootCommand) Execute

func (c *RebootCommand) Execute(log *log.Logger) error

func (*RebootCommand) GetErrorMessage

func (c *RebootCommand) GetErrorMessage() string

func (*RebootCommand) GetStatus

func (c *RebootCommand) GetStatus() api.InstallResponse_Status

func (*RebootCommand) Revert

func (c *RebootCommand) Revert() error

type RunFirmwareUpdaterCommand

type RunFirmwareUpdaterCommand struct {
	// contains filtered or unexported fields
}

func NewRunFirmwareUpdaterCommand

func NewRunFirmwareUpdaterCommand(ctx context.Context, cs *service.CrOSService) *RunFirmwareUpdaterCommand

func (*RunFirmwareUpdaterCommand) Execute

func (c *RunFirmwareUpdaterCommand) Execute(log *log.Logger) error

func (*RunFirmwareUpdaterCommand) GetErrorMessage

func (c *RunFirmwareUpdaterCommand) GetErrorMessage() string

func (*RunFirmwareUpdaterCommand) GetStatus

func (*RunFirmwareUpdaterCommand) Revert

func (c *RunFirmwareUpdaterCommand) Revert() error

type StartDLCServiceCommand

type StartDLCServiceCommand struct {
	// contains filtered or unexported fields
}

func NewStartDLCServiceCommand

func NewStartDLCServiceCommand(ctx context.Context, cs *service.CrOSService) *StartDLCServiceCommand

func (*StartDLCServiceCommand) Execute

func (c *StartDLCServiceCommand) Execute(log *log.Logger) error

func (*StartDLCServiceCommand) GetErrorMessage

func (c *StartDLCServiceCommand) GetErrorMessage() string

func (*StartDLCServiceCommand) GetStatus

func (*StartDLCServiceCommand) Revert

func (c *StartDLCServiceCommand) Revert() error

type StopDLCServiceCommand

type StopDLCServiceCommand struct {
	// contains filtered or unexported fields
}

func NewStopDLCServiceCommand

func NewStopDLCServiceCommand(ctx context.Context, cs *service.CrOSService) *StopDLCServiceCommand

func (*StopDLCServiceCommand) Execute

func (c *StopDLCServiceCommand) Execute(log *log.Logger) error

func (*StopDLCServiceCommand) GetErrorMessage

func (c *StopDLCServiceCommand) GetErrorMessage() string

func (*StopDLCServiceCommand) GetStatus

func (*StopDLCServiceCommand) Revert

func (c *StopDLCServiceCommand) Revert() error

type StopSystemDaemonsCommand

type StopSystemDaemonsCommand struct {
	// contains filtered or unexported fields
}

func NewStopSystemDaemonsCommand

func NewStopSystemDaemonsCommand(ctx context.Context, cs *service.CrOSService) *StopSystemDaemonsCommand

func (*StopSystemDaemonsCommand) Execute

func (c *StopSystemDaemonsCommand) Execute(log *log.Logger) error

func (*StopSystemDaemonsCommand) GetErrorMessage

func (c *StopSystemDaemonsCommand) GetErrorMessage() string

func (*StopSystemDaemonsCommand) GetStatus

func (*StopSystemDaemonsCommand) Revert

func (c *StopSystemDaemonsCommand) Revert() error

type SwapStatefulPartitionCommand

type SwapStatefulPartitionCommand struct {
	// contains filtered or unexported fields
}

func (*SwapStatefulPartitionCommand) Execute

func (c *SwapStatefulPartitionCommand) Execute(log *log.Logger) error

func (*SwapStatefulPartitionCommand) GetErrorMessage

func (c *SwapStatefulPartitionCommand) GetErrorMessage() string

func (*SwapStatefulPartitionCommand) GetStatus

func (*SwapStatefulPartitionCommand) Revert

func (c *SwapStatefulPartitionCommand) Revert() error

type VerifyFirmwareCommand

type VerifyFirmwareCommand struct {
	// contains filtered or unexported fields
}

func NewVerifyFirmwareCommand

func NewVerifyFirmwareCommand(ctx context.Context, cs *service.CrOSService) *VerifyFirmwareCommand

func (*VerifyFirmwareCommand) Execute

func (c *VerifyFirmwareCommand) Execute(log *log.Logger) error

func (*VerifyFirmwareCommand) GetErrorMessage

func (c *VerifyFirmwareCommand) GetErrorMessage() string

func (*VerifyFirmwareCommand) GetStatus

func (*VerifyFirmwareCommand) Revert

func (c *VerifyFirmwareCommand) Revert() error

type WaitForDutToStabilizeCommand

type WaitForDutToStabilizeCommand struct {
	// contains filtered or unexported fields
}

func (*WaitForDutToStabilizeCommand) Execute

func (c *WaitForDutToStabilizeCommand) Execute(log *log.Logger) error

func (*WaitForDutToStabilizeCommand) GetErrorMessage

func (c *WaitForDutToStabilizeCommand) GetErrorMessage() string

func (*WaitForDutToStabilizeCommand) GetStatus

func (*WaitForDutToStabilizeCommand) Revert

func (c *WaitForDutToStabilizeCommand) Revert() error

type WaitForStickyKernel

type WaitForStickyKernel struct {
	// contains filtered or unexported fields
}

func NewWaitForStickyKernel

func NewWaitForStickyKernel(ctx context.Context, cs *service.CrOSService) *WaitForStickyKernel

func (*WaitForStickyKernel) Execute

func (c *WaitForStickyKernel) Execute(log *log.Logger) error

func (*WaitForStickyKernel) GetErrorMessage

func (c *WaitForStickyKernel) GetErrorMessage() string

func (*WaitForStickyKernel) GetStatus

func (*WaitForStickyKernel) Revert

func (c *WaitForStickyKernel) Revert() error

Jump to

Keyboard shortcuts

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