Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BMCService ¶
type BMCService interface {
RPCHandler(w http.ResponseWriter, r *http.Request)
}
func NewBMCService ¶
func NewBMCService(cfg config.Config) BMCService
type BootDeviceParams ¶
type BootDeviceParams struct { Device string `json:"device"` Persistent bool `json:"persistent"` EFIBoot bool `json:"efiBoot"` }
BootDeviceParams are the parameters options used when setting a boot device.
type PowerGetResult ¶
type PowerGetResult string
const ( PoweredOn PowerGetResult = "on" PoweredOff PowerGetResult = "off" )
func (PowerGetResult) String ¶
func (p PowerGetResult) String() string
type PowerSetParams ¶
type PowerSetParams struct {
State string `json:"state"`
}
PowerSetParams are the parameters options used when setting the power state.
type RequestPayload ¶
type RequestPayload struct { ID int64 `json:"id"` Host string `json:"host"` Method Method `json:"method"` Params any `json:"params,omitempty"` }
RequestPayload is the payload sent to the ConsumerURL.
type ResponseError ¶
func (*ResponseError) String ¶
func (r *ResponseError) String() string
type ResponsePayload ¶
type ResponsePayload struct { // ID is the ID of the response. It should match the ID of the request but is not enforced. ID int64 `json:"id"` Host string `json:"host"` Result any `json:"result,omitempty"` Error *ResponseError `json:"error,omitempty"` }
ResponsePayload is the payload received from the ConsumerURL. The Result field is an interface{} so that different methods can define the contract according to their needs.
type VirtualMediaParams ¶
PowerGetParams are the parameters options used when getting the power state.
Click to show internal directories.
Click to hide internal directories.