Documentation ¶
Index ¶
- Constants
- type ISCSITarget
- type NvmeofTarget
- type NvmeoftgtTarget
- func (t *NvmeoftgtTarget) CreateNvmeofTarget(volId, tgtNqn, path, hostIp, initiator string, chapAuth []string) error
- func (t *NvmeoftgtTarget) GetNvmeofTarget(nqn string) int
- func (t *NvmeoftgtTarget) Getnamespaceid(volId string) string
- func (t *NvmeoftgtTarget) RemoveNvmeofTarget(volId, nqn string) error
- func (*NvmeoftgtTarget) WriteWithIo(name, content string) error
- type Target
Constants ¶
View Source
const (
NvmetDir = "/sys/kernel/config/nvmet"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ISCSITarget ¶
type ISCSITarget interface { CreateISCSITarget(volId, tgtIqn, path, hostIp, initiator string, chapAuth []string) error GetISCSITarget(iqn string) int RemoveISCSITarget(volId, iqn string) error GetLun(path string) int }
func NewISCSITarget ¶
func NewISCSITarget(bip, tgtConfDir string) ISCSITarget
type NvmeofTarget ¶
type NvmeofTarget interface { CreateNvmeofTarget(volId, tgtIqn, path, hostIp, initiator string, chapAuth []string) error GetNvmeofTarget(iqn string) int RemoveNvmeofTarget(volId, iqn string) error }
func NewNvmeofTarget ¶
func NewNvmeofTarget(bip, tgtConfDir string) NvmeofTarget
type NvmeoftgtTarget ¶
func (*NvmeoftgtTarget) CreateNvmeofTarget ¶
func (t *NvmeoftgtTarget) CreateNvmeofTarget(volId, tgtNqn, path, hostIp, initiator string, chapAuth []string) error
func (*NvmeoftgtTarget) GetNvmeofTarget ¶
func (t *NvmeoftgtTarget) GetNvmeofTarget(nqn string) int
func (*NvmeoftgtTarget) Getnamespaceid ¶
func (t *NvmeoftgtTarget) Getnamespaceid(volId string) string
func (*NvmeoftgtTarget) RemoveNvmeofTarget ¶
func (t *NvmeoftgtTarget) RemoveNvmeofTarget(volId, nqn string) error
func (*NvmeoftgtTarget) WriteWithIo ¶
func (*NvmeoftgtTarget) WriteWithIo(name, content string) error
Click to show internal directories.
Click to hide internal directories.