features

package
v0.1.0-M2 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2022 License: Apache-2.0, EPL-2.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SoftwareUpdatable

type SoftwareUpdatable interface {

	// Get the status module type
	SoftwareModuleType() string

	// Get the status last operation
	LastOperation() *datatypes.OperationStatus

	// Get the status failed operation
	LastFailedOperation() *datatypes.OperationStatus

	// Get the status installed dependencies
	InstalledDependencies() map[string]*datatypes.DependencyDescription

	// Get the status context dependencies
	ContextDependencies() map[string]*datatypes.DependencyDescription

	// Downloads and installs a given list of software modules
	Install(dsAction datatypes.UpdateAction) error

	// Downloads (without installing) a given list of software modules
	Download(dsAction datatypes.UpdateAction) error

	// Try to cancel a running installation
	Cancel(dsAction datatypes.UpdateAction) error

	// Remove an installed software.
	Remove(dsAction datatypes.RemoveAction) error

	// Try to cancel a remove operation
	CancelRemove(dsAction datatypes.RemoveAction) error
}

SoftwareUpdatable provides an API for implementing the SoftwareUpdatable v2 Vorto model

type SoftwareUpdatableStatus

type SoftwareUpdatableStatus struct {
	SoftwareModuleType    string                                      `json:"softwareModuleType"`
	LastOperation         *datatypes.OperationStatus                  `json:"lastOperation,omitempty"`
	LastFailedOperation   *datatypes.OperationStatus                  `json:"lastFailedOperation,omitempty"`
	InstalledDependencies map[string]*datatypes.DependencyDescription `json:"installedDependencies,omitempty"`
	ContextDependencies   map[string]*datatypes.DependencyDescription `json:"contextDependencies,omitempty"`
}

SoftwareUpdatableStatus provides the status of a Ditto feature implementing the SoftwareUpdatable v2 Vorto model

Jump to

Keyboard shortcuts

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