Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DevicesRepository ¶
type DevicesRepository interface {
Set(devices map[string]*device.Device)
ListAFKEnabledDevicesJSON() ([]byte, error)
IsAFKEnabledJSON(hostname string) ([]byte, error)
GetAllDevicesOpenConfigJSON() ([]byte, error)
GetDeviceOpenConfigJSON(hostname string) ([]byte, error)
GetAllDevicesIETFConfigJSON() ([]byte, error)
GetDeviceIETFConfigJSON(hostname string) ([]byte, error)
GetAllDevicesConfigJSON() ([]byte, error)
GetDeviceConfigJSON(hostname string) ([]byte, error)
}
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func NewManager(deviceRepo DevicesRepository, reports *report.Repository, restartRequest chan<- struct{}) *Manager
NewManager creates and initializes a new API manager.
Click to show internal directories.
Click to hide internal directories.