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 ¶ added in v0.5.1
type NvmeofTarget interface {
CreateNvmeofTarget(volId, tgtIqn, path, hostIp, initiator string, chapAuth []string) error
GetNvmeofTarget(iqn string) int
RemoveNvmeofTarget(volId, iqn string) error
}
func NewNvmeofTarget ¶ added in v0.5.1
func NewNvmeofTarget(bip, tgtConfDir string) NvmeofTarget
type NvmeoftgtTarget ¶ added in v0.5.1
func (*NvmeoftgtTarget) CreateNvmeofTarget ¶ added in v0.5.1
func (t *NvmeoftgtTarget) CreateNvmeofTarget(volId, tgtNqn, path, hostIp, initiator string, chapAuth []string) error
func (*NvmeoftgtTarget) GetNvmeofTarget ¶ added in v0.5.1
func (t *NvmeoftgtTarget) GetNvmeofTarget(nqn string) int
func (*NvmeoftgtTarget) Getnamespaceid ¶ added in v0.5.1
func (t *NvmeoftgtTarget) Getnamespaceid(volId string) string
func (*NvmeoftgtTarget) RemoveNvmeofTarget ¶ added in v0.5.1
func (t *NvmeoftgtTarget) RemoveNvmeofTarget(volId, nqn string) error
func (*NvmeoftgtTarget) WriteWithIo ¶ added in v0.5.1
func (*NvmeoftgtTarget) WriteWithIo(name, content string) error
Click to show internal directories.
Click to hide internal directories.