handler

package
v4.7.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2023 License: Apache-2.0 Imports: 10 Imported by: 10 modules, 8 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDevice

func CreateDevice(w http.ResponseWriter, r *http.Request)

Create host device with attributes passed in the body of the http request @APIVersion 1.0.0 @Title CreateDevice @Description attach nimble device for the PublishInfo passed @Accept json @Resource /api/v1/devices @Success 200 {array} Device @Router /api/v1/devices [post]

func CreateFileSystem

func CreateFileSystem(w http.ResponseWriter, r *http.Request)

@APIVersion 1.0.0 @Title CreateFileSystem on device @Description create a filesysten on the device serialnumber=serialnumber @Accept json @Resource /api/v1/devices/{serialNumber}/filesystem/{fileSystem} @Success 200 {array} @Router /api/v1/devices/{serialNumber}/filesystem/{fileSystem} [put]

func CreateMount

func CreateMount(w http.ResponseWriter, r *http.Request)

@APIVersion 1.0.0 @Title CreateMount @Description Mount an attached device with a details passed in the request @Accept json @Resource /api/v1/mounts @Success 200 {array} Mount @Router /api/v1/mounts [post]

func DeleteDevice

func DeleteDevice(w http.ResponseWriter, r *http.Request)

DeleteDevice : disconnect and delete the device from the host @APIVersion 1.0.0 @Title DeleteDevice @Description delete device for device serialnumber=serialnumber @Accept json @Resource /api/v1/devices/{serialNumber} @Success 200 @Router /api/v1/devices/{serialNumber} [delete]

func DeleteMount

func DeleteMount(w http.ResponseWriter, r *http.Request)

@APIVersion 1.0.0 @Title DeleteMount @Description Unmount specified mount point on the host @Accept json @Resource /mounts @Success 200 {array} Mount @Router /api/v1/mounts/{mountId} [delete]

func GetAllDeviceDetails

func GetAllDeviceDetails(w http.ResponseWriter, r *http.Request)

@APIVersion 1.0.0 @Title GetAllDeviceDetails @Description retrieves all devices details on host, optionally with serial filter @Accept json @Resource /api/v1/devices @Success 200 {array} Devices @Router /api/v1/devices/details [get]

func GetAllMountDetails

func GetAllMountDetails(w http.ResponseWriter, r *http.Request)

@APIVersion 1.0.0 @Title GetAllMountDetails @Description retrieves all mount details on host, optionally with serial filter @Accept json @Resource /api/v1/mounts @Success 200 {array} Mounts @Router /api/v1/mounts/details [get]

func GetChapInfo

func GetChapInfo(w http.ResponseWriter, r *http.Request)

@APIVersion 1.0.0 @Title GetChapInfo @Description get iSCSI CHAP info configured on host @Accept json @Resource /api/v1/chap @Success 200 chapi2.ChapInfo @Router /api/v1/chap [get]

func GetDeletingDevices

func GetDeletingDevices(w http.ResponseWriter, r *http.Request)

@APIVersion 1.0.0 @Title GetDeletingDevices @Description get devices in deletion state @Accept json @Resource /api/v1/deletingdevices @Success 200 linux.Recommendation @Router /api/v1/deletingdevices [get]

func GetDevices

func GetDevices(w http.ResponseWriter, r *http.Request)

@APIVersion 1.0.0 @Title GetDevices @Description retrieves all devices on host, optionally with serial filter @Accept json @Resource /api/v1/devices @Success 200 {array} Devices @Router /api/v1/devices [get]

func GetHostInfo

func GetHostInfo(w http.ResponseWriter, r *http.Request)

@APIVersion 1.0.0 @Title GetHostInfo @Description retrieves specific host information @Accept json @Resource /api/v1/hosts @Success 200 Host @Router /api/v1/hosts [get]

func GetHostInitiators

func GetHostInitiators(w http.ResponseWriter, r *http.Request)

@APIVersion 1.0.0 @Title GetHostInitiators @Description get Initiators @Accept json @Resource /api/v1/initiators @Success 200 Initiators @Router /api/v1/initiators [get]

func GetHostNetworks

func GetHostNetworks(w http.ResponseWriter, r *http.Request)

@APIVersion 1.0.0 @Title GetHostNetworks @Description get host networks @Accept json @Resource /api/v1/networks @Success 200 Network @Router /api/v1/networks [get]

func GetHostRecommendations

func GetHostRecommendations(w http.ResponseWriter, r *http.Request)

@APIVersion 1.0.0 @Title GetHostRecommendations @Description get Recommendations for=host id=id @Accept json @Resource /api/v1/recommendations @Success 200 linux.Recommendation @Router /api/v1/recommendations [get]

func GetMounts

func GetMounts(w http.ResponseWriter, r *http.Request)

@APIVersion 1.0.0 @Title GetMounts @Description retrieves all mounts on host, optionally with serial filter @Accept json @Resource /api/v1/mounts @Success 200 {array} Mounts @Router /api/v1/mounts [get]

func GetPartitionsForDevice

func GetPartitionsForDevice(w http.ResponseWriter, r *http.Request)

@APIVersion 1.0.0 @Title GetPartitionsForDevice @Description get all partitions for a Nimble Device fpr host id=id and device serialnumber=serialnumber @Accept json @Resource /api/v1/devices/{serialNumber}/partitions @Success 200 {array} DevicePartitions @Router /api/v1/devices/{serialNumber}/partitions [get]

func OfflineDevice

func OfflineDevice(w http.ResponseWriter, r *http.Request)

@APIVersion 1.0.0 @Title OfflineDevice @Description offline the device on host with specific serialNumber @Accept json @Resource /api/v1/devices/{serialNumber} @Success 200 @Router /api/v1/devices/{serialNumber}/actions/offline [put]

Types

type Response

type Response struct {
	Data interface{} `json:"data,omitempty"`
	Err  interface{} `json:"errors,omitempty"`
}

Response :

Jump to

Keyboard shortcuts

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