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: 4 modules, 3 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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