frontend

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package frontend implememnts the FrontEnd APIs (host facing) of the storage Server

Package frontend implememnts the FrontEnd APIs (host facing) of the storage Server

Index

Constants

This section is empty.

Variables

View Source
var PluginFrontendNvme exServer

PluginFrontendNvme is the server that we export to load dynamically at runtime

Functions

This section is empty.

Types

type GetVersionResult

type GetVersionResult struct {
	Version string `json:"version"`
	Fields  struct {
		Major  int    `json:"major"`
		Minor  int    `json:"minor"`
		Patch  int    `json:"patch"`
		Suffix string `json:"suffix"`
	} `json:"fields"`
}

GetVersionResult represents a Marvell get version result

type MrvlNvmCreateSubsystemParams

type MrvlNvmCreateSubsystemParams struct {
	Subnqn        string `json:"subnqn"`
	Mn            string `json:"mn"`
	Sn            string `json:"sn"`
	MaxNamespaces int    `json:"max_namespaces"`
	MinCtrlrID    int    `json:"min_ctrlr_id"`
	MaxCtrlrID    int    `json:"max_ctrlr_id"`
}

MrvlNvmCreateSubsystemParams represents the parameters to a Marvell create subsystem request

type MrvlNvmCreateSubsystemResult

type MrvlNvmCreateSubsystemResult struct {
	Status int `json:"status"`
}

MrvlNvmCreateSubsystemResult represents a Marvell create subsystem result

type MrvlNvmCtrlrAttachNsParams

type MrvlNvmCtrlrAttachNsParams struct {
	Subnqn       string `json:"subnqn"`
	CtrlrID      int    `json:"ctrlr_id"`
	NsInstanceID int    `json:"ns_instance_id"`
}

MrvlNvmCtrlrAttachNsParams represents the parameters to a Marvell controller attach namespace request

type MrvlNvmCtrlrAttachNsResult

type MrvlNvmCtrlrAttachNsResult struct {
	Status int `json:"status"`
}

MrvlNvmCtrlrAttachNsResult represents a Marvell controller attach namespace result

type MrvlNvmCtrlrDetachNsParams

type MrvlNvmCtrlrDetachNsParams struct {
	Subnqn       string `json:"subnqn"`
	CtrlrID      int    `json:"ctrlr_id"`
	NsInstanceID int    `json:"ns_instance_id"`
}

MrvlNvmCtrlrDetachNsParams represents the parameters to a Marvell controller detach namespace request

type MrvlNvmCtrlrDetachNsResult

type MrvlNvmCtrlrDetachNsResult struct {
	Status int `json:"status"`
}

MrvlNvmCtrlrDetachNsResult represents a Marvell controller detach namespace result

type MrvlNvmCtrlrGetNsStatsParams

type MrvlNvmCtrlrGetNsStatsParams struct {
	Subnqn       string `json:"subnqn"`
	CtrlrID      int    `json:"ctrlr_id"`
	NsInstanceID int    `json:"ns_instance_id"`
}

MrvlNvmCtrlrGetNsStatsParams represents the parameters to a Marvell get namespace status request

type MrvlNvmCtrlrGetNsStatsResult

type MrvlNvmCtrlrGetNsStatsResult struct {
	Status                int `json:"status"`
	NumReadCmds           int `json:"num_read_cmds"`
	NumReadBytes          int `json:"num_read_bytes"`
	NumWriteCmds          int `json:"num_write_cmds"`
	NumWriteBytes         int `json:"num_write_bytes"`
	NumErrors             int `json:"num_errors"`
	TotalReadLatencyInUs  int `json:"total_read_latency_in_us"`
	TotalWriteLatencyInUs int `json:"total_write_latency_in_us"`
	StatsTimeWindowInUs   int `json:"stats_time_window_in_us"`
}

MrvlNvmCtrlrGetNsStatsResult represents a Marvell get namespace status result

type MrvlNvmDeInitResult

type MrvlNvmDeInitResult struct {
	Status int `json:"status"`
}

MrvlNvmDeInitResult represents a Marvell de-init result

type MrvlNvmDeleteSubsystemParams

type MrvlNvmDeleteSubsystemParams struct {
	Subnqn string `json:"subnqn"`
}

MrvlNvmDeleteSubsystemParams represents the parameters to a Marvell delete subsystem request

type MrvlNvmDeleteSubsystemResult

type MrvlNvmDeleteSubsystemResult struct {
	Status int `json:"status"`
}

MrvlNvmDeleteSubsystemResult represents a Marvell delete subsystem result

type MrvlNvmGetCtrlrInfoParams

type MrvlNvmGetCtrlrInfoParams struct {
	Subnqn  string `json:"subnqn"`
	CtrlrID int    `json:"ctrlr_id"`
}

MrvlNvmGetCtrlrInfoParams represents the parameters to a Marvell get controller info request

type MrvlNvmGetCtrlrInfoResult

type MrvlNvmGetCtrlrInfoResult struct {
	Status        int    `json:"status"`
	PcieDomainID  int    `json:"pcie_domain_id"`
	PfID          int    `json:"pf_id"`
	VfID          int    `json:"vf_id"`
	CtrlrID       int    `json:"ctrlr_id"`
	MaxNsq        int    `json:"max_nsq"`
	MaxNcq        int    `json:"max_ncq"`
	Mqes          int    `json:"mqes"`
	IeeeOui       string `json:"ieee_oui"`
	Cmic          int    `json:"cmic"`
	Nn            int    `json:"nn"`
	ActiveNsCount int    `json:"active_ns_count"`
	ActiveNsq     int    `json:"active_nsq"`
	ActiveNcq     int    `json:"active_ncq"`
	Mdts          int    `json:"mdts"`
	Sqes          int    `json:"sqes"`
	Cqes          int    `json:"cqes"`
}

MrvlNvmGetCtrlrInfoResult represents a Marvell get controller info result

type MrvlNvmGetCtrlrStatsParams

type MrvlNvmGetCtrlrStatsParams struct {
	Subnqn  string `json:"subnqn"`
	CtrlrID int    `json:"ctrlr_id"`
}

MrvlNvmGetCtrlrStatsParams represents the parameters to a Marvell get controller status request

type MrvlNvmGetCtrlrStatsResult

type MrvlNvmGetCtrlrStatsResult struct {
	Status                int `json:"status"`
	NumAdminCmds          int `json:"num_admin_cmds"`
	NumAdminCmdErrors     int `json:"num_admin_cmd_errors"`
	NumAsyncEvents        int `json:"num_async_events"`
	NumReadCmds           int `json:"num_read_cmds"`
	NumReadBytes          int `json:"num_read_bytes"`
	NumWriteCmds          int `json:"num_write_cmds"`
	NumWriteBytes         int `json:"num_write_bytes"`
	NumErrors             int `json:"num_errors"`
	TotalReadLatencyInUs  int `json:"total_read_latency_in_us"`
	TotalWriteLatencyInUs int `json:"total_write_latency_in_us"`
	StatsTimeWindowInUs   int `json:"Stats_time_window_in_us"`
}

MrvlNvmGetCtrlrStatsResult represents a Marvell get controller status result

type MrvlNvmGetNsInfoParams

type MrvlNvmGetNsInfoParams struct {
	SubNqn       string `json:"subnqn"`
	NsInstanceID int    `json:"ns_instance_id"`
}

MrvlNvmGetNsInfoParams represents the parameters to a Marvell get namespace info request

type MrvlNvmGetNsInfoResult

type MrvlNvmGetNsInfoResult struct {
	Status      int    `json:"status"`
	Nguid       string `json:"nguid"`
	Eui64       string `json:"eui64"`
	UUID        string `json:"uuid"`
	Nmic        int    `json:"nmic"`
	Bdev        string `json:"bdev"`
	NumCtrlrs   int    `json:"num_ctrlrs"`
	CtrlrIDList []struct {
		CtrlrID int `json:"ctrlr_id"`
	} `json:"ctrlr_id_list"`
}

MrvlNvmGetNsInfoResult represents the a Marvell get namespace info result

type MrvlNvmGetNsStatsParams

type MrvlNvmGetNsStatsParams struct {
	SubNqn       string `json:"subnqn"`
	NsInstanceID int    `json:"ns_instance_id"`
}

MrvlNvmGetNsStatsParams represents the parameters to a Marvell get namespace status request

type MrvlNvmGetNsStatsResult

type MrvlNvmGetNsStatsResult struct {
	Status                int `json:"status"`
	NumReadCmds           int `json:"num_read_cmds"`
	NumReadBytes          int `json:"num_read_bytes"`
	NumWriteCmds          int `json:"num_write_cmds"`
	NumWriteBytes         int `json:"num_write_bytes"`
	NumErrors             int `json:"num_errors"`
	TotalReadLatencyInUs  int `json:"total_read_latency_in_us"`
	TotalWriteLatencyInUs int `json:"total_write_latency_in_us"`
	StatsTimeWindowInUs   int `json:"Stats_time_window_in_us"`
}

MrvlNvmGetNsStatsResult represents a Marvell get namespace status result

type MrvlNvmGetSubsysInfoParams

type MrvlNvmGetSubsysInfoParams struct {
	Subnqn string `json:"subnqn"`
}

MrvlNvmGetSubsysInfoParams represents the parameters to a Marvell get subsystem info request

type MrvlNvmGetSubsysInfoResult

type MrvlNvmGetSubsysInfoResult struct {
	Status     int `json:"status"`
	SubsysList []struct {
		Subnqn         string `json:"subnqn"`
		Mn             string `json:"mn"`
		Sn             string `json:"sn"`
		MaxNamespaces  int    `json:"max_namespaces"`
		MinCtrlrID     int    `json:"min_ctrlr_id"`
		MaxCtrlrID     int    `json:"max_ctrlr_id"`
		NumNs          int    `json:"num_ns"`
		NumTotalCtrlr  int    `json:"num_total_ctrlr"`
		NumActiveCtrlr int    `json:"num_active_ctrlr"`
		NsList         []struct {
			NsInstanceID int    `json:"ns_instance_id"`
			Bdev         string `json:"bdev"`
			CtrlrIDList  []struct {
				CtrlrID int `json:"ctrlr_id"`
			} `json:"ctrlr_id_list"`
		} `json:"ns_list"`
	} `json:"subsys_list"`
}

MrvlNvmGetSubsysInfoResult represents a Marvell get subsystem info result

type MrvlNvmGetSubsysListResult

type MrvlNvmGetSubsysListResult struct {
	Status     int `json:"status"`
	SubsysList []struct {
		Subnqn string `json:"subnqn"`
	} `json:"subsys_list"`
}

MrvlNvmGetSubsysListResult represents a Marvell subsystem list result

type MrvlNvmNsGetCtrlrListParams

type MrvlNvmNsGetCtrlrListParams struct {
	SubNqn       string `json:"subnqn"`
	NsInstanceID int    `json:"ns_instance_id"`
}

MrvlNvmNsGetCtrlrListParams represents the parameters to a Marvell get namespace controller list request

type MrvlNvmNsGetCtrlrListResult

type MrvlNvmNsGetCtrlrListResult struct {
	Status      int `json:"status"`
	CtrlrIDList []struct {
		CtrlrID int `json:"ctrlr_id"`
	} `json:"ctrlr_id_list"`
}

MrvlNvmNsGetCtrlrListResult represents a Marvell get namespace controller list result

type MrvlNvmSubsysAllocNsParams

type MrvlNvmSubsysAllocNsParams struct {
	Subnqn      string `json:"subnqn"`
	Nguid       string `json:"nguid"`
	Eui64       string `json:"eui64"`
	UUID        string `json:"uuid"`
	ShareEnable int    `json:"share_enable"`
	Bdev        string `json:"bdev"`
}

MrvlNvmSubsysAllocNsParams represents the parameters to a Marvell get subsystem allocate namespace request

type MrvlNvmSubsysAllocNsResult

type MrvlNvmSubsysAllocNsResult struct {
	Status       int `json:"status"`
	NsInstanceID int `json:"ns_instance_id"`
}

MrvlNvmSubsysAllocNsResult represents a Marvell get subsystem alloc namespace result

type MrvlNvmSubsysCreateCtrlrParams

type MrvlNvmSubsysCreateCtrlrParams struct {
	Subnqn       string `json:"subnqn"`
	PcieDomainID int    `json:"pcie_domain_id"`
	PfID         int    `json:"pf_id"`
	VfID         int    `json:"vf_id"`
	CtrlrID      int    `json:"ctrlr_id"`
	MaxNsq       int    `json:"max_nsq"`
	MaxNcq       int    `json:"max_ncq"`
	Mqes         int    `json:"mqes"`
}

MrvlNvmSubsysCreateCtrlrParams represents the parameters to a Marvell create subsystem controller request

type MrvlNvmSubsysCreateCtrlrResult

type MrvlNvmSubsysCreateCtrlrResult struct {
	Status  int `json:"status"`
	CtrlrID int `json:"ctrlr_id"`
}

MrvlNvmSubsysCreateCtrlrResult represents a Marvell create subsystem controller result

type MrvlNvmSubsysGetCtrlrListParams

type MrvlNvmSubsysGetCtrlrListParams struct {
	Subnqn string `json:"subnqn"`
}

MrvlNvmSubsysGetCtrlrListParams represents the parameters to a Marvell get subsystem controller list request

type MrvlNvmSubsysGetCtrlrListResult

type MrvlNvmSubsysGetCtrlrListResult struct {
	Status      int `json:"status"`
	CtrlrIDList []struct {
		CtrlrID int `json:"ctrlr_id"`
	} `json:"ctrlr_id_list"`
}

MrvlNvmSubsysGetCtrlrListResult represents a Marvell get subsystem controller list result

type MrvlNvmSubsysGetNsListParams

type MrvlNvmSubsysGetNsListParams struct {
	Subnqn string `json:"subnqn"`
}

MrvlNvmSubsysGetNsListParams represents the parameters to a Marvell get subsystem namespace list request

type MrvlNvmSubsysGetNsListResult

type MrvlNvmSubsysGetNsListResult struct {
	Status int `json:"status"`
	NsList []struct {
		NsInstanceID int    `json:"ns_instance_id"`
		Bdev         string `json:"bdev"`
		CtrlrIDList  []struct {
			CtrlrID int `json:"ctrlr_id"`
		} `json:"ctrlr_id_list"`
	} `json:"ns_list"`
}

MrvlNvmSubsysGetNsListResult represents a Marvell get subsystem namespace list result

type MrvlNvmSubsysRemoveCtrlrParams

type MrvlNvmSubsysRemoveCtrlrParams struct {
	Subnqn  string `json:"subnqn"`
	CtrlrID int    `json:"ctrlr_id"`
	Force   int    `json:"force"`
}

MrvlNvmSubsysRemoveCtrlrParams represents the parameters to a Marvell remove subsystem controller request

type MrvlNvmSubsysRemoveCtrlrResult

type MrvlNvmSubsysRemoveCtrlrResult struct {
	Status int `json:"status"`
}

MrvlNvmSubsysRemoveCtrlrResult represents a Marvell remove subsystem controller result

type MrvlNvmSubsysUnallocNsParams

type MrvlNvmSubsysUnallocNsParams struct {
	Subnqn       string `json:"subnqn"`
	NsInstanceID int    `json:"ns_instance_id"`
}

MrvlNvmSubsysUnallocNsParams represents the parameters to a Marvell get subsystem unallocate namespace request

type MrvlNvmSubsysUnallocNsResult

type MrvlNvmSubsysUnallocNsResult struct {
	Status int `json:"status"`
}

MrvlNvmSubsysUnallocNsResult represents a Marvell get subsystem unalloc namespace result

type MrvlNvmSubsysUpdateCtrlrParams

type MrvlNvmSubsysUpdateCtrlrParams struct {
	Subnqn  string `json:"subnqn"`
	CtrlrID int    `json:"ctrlr_id"`
	MaxNsq  int    `json:"max_nsq"`
	MaxNcq  int    `json:"max_ncq"`
}

MrvlNvmSubsysUpdateCtrlrParams represents the parameters to a Marvell update subsystem controller request

type MrvlNvmSubsysUpdateCtrlrResult

type MrvlNvmSubsysUpdateCtrlrResult struct {
	Status int `json:"status"`
}

MrvlNvmSubsysUpdateCtrlrResult represents a Marvell update subsystem controller result

Jump to

Keyboard shortcuts

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