server

package
v0.0.0-...-ff15c93 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2024 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// These are from megarac, will need abstractions for other IPMI
	PowerCommandHardOff   = 0
	PowerCommandOn        = 1
	PowerCommandCycle     = 2
	PowerCommandHardReset = 3
	PowerCommandSoftOff   = 5
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server interface {
	Login(username, password string) error
	Logout() error
	PowerCommand(command int) error
	GetSensorsRaw() (interface{}, error)
	GetSensors() (*model.ServerSensorReadings, error)
	GetMetrics() (string, error)
	Name() string
}

func NewServer

func NewServer(name, kind, username, password string) (Server, error)

type ServerManager

type ServerManager struct {
	Servers map[string]Server
}

func NewServerManager

func NewServerManager() ServerManager

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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