Documentation
¶
Overview ¶
Package compute provides structs and functions pertaining to compute resources.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrESXEmpty = errors.New("ESX id is empty")
View Source
var ErrIPEmpty = errors.New("ip address is nil")
View Source
var ErrModelEmpty = errors.New("model is empty")
View Source
var ErrSerialEmpty = errors.New("serial number is nil")
View Source
var ErrServerIDEmtpy = errors.New("server id is empty")
View Source
var ErrVCenterEmpty = errors.New("VCenter id is empty")
Functions ¶
This section is empty.
Types ¶
type ESX ¶
type ESX struct { zebra.NamedResource Credentials zebra.Credentials `json:"credentials"` ServerID string `json:"serverID"` //nolint:tagliatelle IP net.IP `json:"ip"` }
An ESX represents an ESX server with credentials, an associated server, and IP.
type Server ¶
type Server struct { zebra.NamedResource Credentials zebra.Credentials `json:"credentials"` SerialNumber string `json:"serialNumber"` BoardIP net.IP `json:"boardIP"` //nolint:tagliatelle Model string `json:"model"` }
A Server represents a server with credentials, a serial number, board IP, and model information.
type VCenter ¶
type VCenter struct { zebra.NamedResource Credentials zebra.Credentials `json:"credentials"` IP net.IP `json:"ip"` }
A VCenter has credentials and an IP.
type VM ¶
type VM struct { zebra.NamedResource Credentials zebra.Credentials `json:"credentials"` ESXID string `json:"esxID"` //nolint:tagliatelle ManagementIP net.IP `json:"managementIP"` //nolint:tagliatelle VCenterID string `json:"vCenterID"` //nolint:tagliatelle }
A VM is represented by a set of credentials, associated ESX ID, management IP, and VCenterID.
Click to show internal directories.
Click to hide internal directories.