activeinactive

package
v0.0.0-...-746469e Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2020 License: Apache-2.0 Imports: 5 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultImpl

type DefaultImpl struct {
	utils.CmdLineExecuter
}

DefaultImpl is the default implementation for Interface

func (*DefaultImpl) Active

func (i *DefaultImpl) Active() (int, error)

Active returns the current active object number

func (*DefaultImpl) SetActive

func (i *DefaultImpl) SetActive(active int) error

SetActive sets the current active object number to "active"

func (*DefaultImpl) SetValidate

func (i *DefaultImpl) SetValidate() error

SetValidate validate the current update by calling 'updatehub-active-validated'

type Interface

type Interface interface {
	Active() (int, error)
	SetActive(active int) error
	SetValidate() error
}

Interface describes the operations related to the Active-Inactive feature

Jump to

Keyboard shortcuts

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