redfish

package
v0.0.0-...-e976b7e Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const DEVICE_TYPE_CD = "Cd"
View Source
const DEVICE_TYPE_FLOPPY = "Floppy"
View Source
const DEVICE_TYPE_HDD = "Hdd"
View Source
const DEVICE_TYPE_PXE = "Pxe"

Variables

View Source
var BOOT_DEVICE_MAP map[string]string = map[string]string{
	DEVICE_TYPE_PXE:    "network",
	DEVICE_TYPE_HDD:    "hd",
	DEVICE_TYPE_CD:     "cdrom",
	DEVICE_TYPE_FLOPPY: "floppy",
}
View Source
var BOOT_DEVICE_MAP_REV map[string]string = reverseMap(BOOT_DEVICE_MAP)
View Source
var BOOT_MODE_MAP map[string]string = map[string]string{
	"Legacy": "rom",
	"UEFI":   "pflash",
}
View Source
var BOOT_MODE_MAP_REV map[string]string = reverseMap(BOOT_MODE_MAP)
View Source
var DISK_DEVICE_MAP map[string]string = map[string]string{
	DEVICE_TYPE_HDD:    "disk",
	DEVICE_TYPE_CD:     "cdrom",
	DEVICE_TYPE_FLOPPY: "floppy",
}
View Source
var DISK_DEVICE_MAP_REV map[string]string = reverseMap(DISK_DEVICE_MAP)
View Source
var TINY_LIBVIRT_IP string = "192.168.1.13"
View Source
var TINY_LIBVIRT_KEY string = "~/.ssh/id_rsa"
View Source
var TINY_LIBVIRT_USER string = "root"
View Source
var TINY_SUSHY_PORT string = "8000"

Functions

func Uri

func Uri(user string, ip string, keyfilePath string) (string, error)

Types

type Server

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

Server represents a mock server supporting partially the RedFish protocol

func New

func New() *Server

New creates a new instance of the Redfish server

func (*Server) Start

func (rf *Server) Start(port string, user string, ip string, keyfile string)

Start initialize and kicks off the redfish server

Jump to

Keyboard shortcuts

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