Documentation ¶
Overview ¶
Package rfphandler ...
Package rfphandler ...
Package rfphandler ...
Package rfphandler ...
Package rfphandler ...
Package rfphandler ...
Package rfphandler ...
Package rfphandler ...
Package rfphandler ...
Package rfphandler ..
Package rfphandler ...
Package rfphandler ...
Package rfphandler ...
Package rfphandler ...
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 GetDeviceData(uri string, device *rfputilities.RedfishDevice) (int, []byte, map[string]interface{}, error)
- 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 ExternalInterface
- 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 GetDeviceData ¶
func GetDeviceData(uri string, device *rfputilities.RedfishDevice) (int, []byte, map[string]interface{}, error)
GetDeviceData connects with the device and collect the information
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
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 *rfputilities.RedfishDevice, url, method string) (*http.Response, error) DecryptPassword func(password []byte) ([]byte, error) }
DeviceClient struct to call device for the operation
type ExternalInterface ¶
type ExternalInterface struct { TokenValidation func(string) bool GetDeviceData func(string, *rfputilities.RedfishDevice) (int, []byte, map[string]interface{}, error) }
ExternalInterface enables the communicunication with the external functions
func (*ExternalInterface) GetMetricReport ¶
func (e *ExternalInterface) GetMetricReport(ctx iris.Context)
GetMetricReport is for to get metric report from southbound resource