host

package
v2.0.2 Latest Latest
Warning

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

Go to latest
Published: May 12, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StateDiscovering  = "discovering"
	StateKnown        = "known"
	StateInsufficient = "insufficient"
)
View Source
const (
	TransitionTypeSetHwInfo = "SetHwInfo"
	TransitionTypeConnected = "SetConnected"
	TransitionTypeRegister  = "Register"
)

Variables

This section is empty.

Functions

func NewHostStateMachine

func NewHostStateMachine(th *transitionHandler) stateswitch.StateMachine

Types

type API

type API interface {
	List() ([]*models.Host, error)
	Register(*models.Host) error
	SetHwInfo(*models.Host, bool) error
}

func New

func New(db *gorm.DB, hwValidator hardware.Validator) API

type TransitionArgsRegister

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

type TransitionArgsSetHwInfo

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

Jump to

Keyboard shortcuts

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