commands

package
v0.0.0-...-1aab961 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2025 License: BSD-3-Clause Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TestScanner

func TestScanner(stream io.Reader, logger *log.Logger, harness string) (bool, string)

Types

type AdbRoot

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

func NewAdbRootSetup

func NewAdbRootSetup(ctx context.Context, cs *service.FoilService) *AdbRoot

func (*AdbRoot) Execute

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

func (*AdbRoot) GetErrorMessage

func (c *AdbRoot) GetErrorMessage() string

func (*AdbRoot) GetStatus

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

func (*AdbRoot) Revert

func (c *AdbRoot) Revert() error

type CheckForSkip

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

func NewCheckForSkipCommand

func NewCheckForSkipCommand(ctx context.Context, cs *service.FoilService) *CheckForSkip

func (*CheckForSkip) Execute

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

func (*CheckForSkip) GetErrorMessage

func (c *CheckForSkip) GetErrorMessage() string

func (*CheckForSkip) GetStatus

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

func (*CheckForSkip) Revert

func (c *CheckForSkip) Revert() error

type GetEnginePid

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

func NewGetEnginePidSetup

func NewGetEnginePidSetup(ctx context.Context, cs *service.FoilService) *GetEnginePid

func (*GetEnginePid) Execute

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

func (*GetEnginePid) GetErrorMessage

func (c *GetEnginePid) GetErrorMessage() string

func (*GetEnginePid) GetStatus

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

func (*GetEnginePid) Revert

func (c *GetEnginePid) Revert() error

type GetVersion

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

func NewGetVersionSetup

func NewGetVersionSetup(ctx context.Context, cs *service.FoilService) *GetVersion

func (*GetVersion) Execute

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

func (*GetVersion) GetErrorMessage

func (c *GetVersion) GetErrorMessage() string

func (*GetVersion) GetStatus

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

func (*GetVersion) Revert

func (c *GetVersion) Revert() error

type Install

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

func NewInstall

func NewInstall(ctx context.Context, cs *service.FoilService) *Install

func (*Install) Execute

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

func (*Install) GetErrorMessage

func (c *Install) GetErrorMessage() string

func (*Install) GetStatus

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

func (*Install) Revert

func (c *Install) Revert() error

type OptionalRebootArgs

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

type RebootCommand

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

func NewRebootCommand

func NewRebootCommand(ctx context.Context, cs *service.FoilService, 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 SetSelinuxCommand

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

func NewSetSelinuxCommandSetup

func NewSetSelinuxCommandSetup(ctx context.Context, cs *service.FoilService) *SetSelinuxCommand

func (*SetSelinuxCommand) Execute

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

func (*SetSelinuxCommand) GetErrorMessage

func (c *SetSelinuxCommand) GetErrorMessage() string

func (*SetSelinuxCommand) GetStatus

func (*SetSelinuxCommand) Revert

func (c *SetSelinuxCommand) Revert() error

type VerifyInstall

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

func NewVerifyInstallCommand

func NewVerifyInstallCommand(ctx context.Context, cs *service.FoilService) *VerifyInstall

func (*VerifyInstall) Execute

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

func (*VerifyInstall) GetErrorMessage

func (c *VerifyInstall) GetErrorMessage() string

func (*VerifyInstall) GetStatus

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

func (*VerifyInstall) Revert

func (c *VerifyInstall) Revert() error

Jump to

Keyboard shortcuts

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