application

package
v0.0.0-...-f6ab670 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Rendered for windows/amd64

Index

Constants

View Source
const (
	INSTALL = "Install"

	UNINSTALL = "Uninstall"

	REPAIR = "Repair"
)
View Source
const (
	ErrorUnknownProduct = 1605

	ErrorSuccessRebootInitiated = 1641
)
View Source
const (

	// SourceHashType is set as default sha256.
	Sha256SourceHashType = "sha256"
)

Variables

This section is empty.

Functions

func Name

func Name() string

Name returns the name of the plugin

Types

type ApplicationPluginInput

type ApplicationPluginInput struct {
	contracts.PluginInput
	ID             string
	Action         string
	Parameters     string
	Source         string
	SourceHash     string
	SourceHashType string
}

ApplicationPluginInput represents one set of commands executed by the Applications plugin.

type Plugin

type Plugin struct {

	// ExecuteCommand is an object that can execute commands.
	CommandExecuter executers.T
	// contains filtered or unexported fields
}

Plugin is the type for the applications plugin.

func NewPlugin

func NewPlugin(context context.T) (*Plugin, error)

NewPlugin returns a new instance of the plugin.

func (*Plugin) Execute

func (p *Plugin) Execute(config contracts.Configuration, cancelFlag task.CancelFlag, output iohandler.IOHandler)

Jump to

Keyboard shortcuts

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