Documentation ¶
Overview ¶
Package dphandler ...
Package dphandler ...
Package dphandler ...
Package dphandler ...
Package dphandler ...
Package dphandler ...
Package dphandler ...
Package dphandler ...
Package dphandler ..
Package dphandler ...
Package dphandler ...
Package dphandler ...
Package dphandler ...
Index ¶
- Variables
- func ChangeSettings(ctx iris.Context)
- func CreateEventSubscription(ctx iris.Context)
- func CreateSession(ctx iris.Context)
- func CreateVolume(ctx iris.Context)
- func DeleteEventSubscription(ctx iris.Context)
- func DeleteVolume(ctx iris.Context)
- func GetManagersCollection(ctx iris.Context)
- func GetManagersInfo(ctx iris.Context)
- func GetPluginStartup(ctx iris.Context)
- func GetPluginStatus(ctx iris.Context)
- func GetResource(ctx iris.Context)
- func RedfishEvents(w http.ResponseWriter, r *http.Request)
- func ResetComputerSystem(ctx iris.Context)
- func SetDefaultBootOrder(ctx iris.Context)
- func SimpleUpdate(ctx iris.Context)
- func StartUpdate(ctx iris.Context)
- func TokenValidation(token string) bool
- func Validate(ctx iris.Context)
- func VirtualMediaActions(ctx iris.Context)
- type DeviceClient
- type SimpleUpdatePostBody
- type TokenMap
Constants ¶
This section is empty.
Variables ¶
var ( // In Channel In chan<- interface{} // Out Channel Out <-chan interface{} )
Functions ¶
func ChangeSettings ¶
ChangeSettings is generic function where we can do following operations on different call 1. change bios settings 2. change boot order settings
func CreateEventSubscription ¶
CreateEventSubscription : Subscribes for events
func CreateSession ¶
CreateSession is used to create session for odimra to interact with plugin
func CreateVolume ¶
CreateVolume function is used for creating a volume under storage
func DeleteEventSubscription ¶
DeleteEventSubscription : Delete subscription
func DeleteVolume ¶
DeleteVolume function is used for deleting a volume under storage
func GetManagersCollection ¶
GetManagersCollection Fetches details of the given resource from the device
func GetManagersInfo ¶
GetManagersInfo Fetches details of the given resource from the device
func GetPluginStatus ¶
GetPluginStatus defines the GetPluginStatus iris handler. and returns status
func GetResource ¶
GetResource : Fetches details of the given resource from the device
func RedfishEvents ¶
func RedfishEvents(w http.ResponseWriter, r *http.Request)
RedfishEvents receives the subscribed events from the south bound system Then it will send the received data and ip to publish method RedfishEvents receives the subscribed events from the south bound system Then it will send the received data and ip to publish method
func ResetComputerSystem ¶
ResetComputerSystem : reset computer system
func SetDefaultBootOrder ¶
SetDefaultBootOrder : sets the defult boot order
func TokenValidation ¶
TokenValidation validates sent token with the list of plugin generated tokens
func Validate ¶
Validate does Basic authentication with device and returns UUID of device in response
func VirtualMediaActions ¶
VirtualMediaActions performs insert and eject virtual media operations on the device based on the request
Types ¶
type DeviceClient ¶
type DeviceClient struct { ChangeSettingsOnDevice func(device *dputilities.RedfishDevice, url, method string) (*http.Response, error) DecryptPassword func(password []byte) ([]byte, error) }
DeviceClient struct to call device for the operation
type SimpleUpdatePostBody ¶
type SimpleUpdatePostBody struct { ImageURI string `json:"ImageURI"` Password string `json:"Password,omitempty"` Targets []string `json:"Targets,omitempty"` TransferProtocol string `json:"TransferProtocol,omitempty"` Username string `json:"Username,omitempty"` RedfishOperationApplyTime string `json:"@Redfish.OperationApplyTime,omitempty"` }
SimpleUpdatePostBody struct defines the received request body for update action