Documentation ¶
Index ¶
- Constants
- func IsExist(f string) bool
- type ISCSITarget
- type NvmeofTarget
- type NvmeoftgtTarget
- func (t *NvmeoftgtTarget) AddNvmeofSubsystem(volId, tgtNqn, path, initiator string) (string, error)
- func (t *NvmeoftgtTarget) CreateNvmeofTarget(volId, tgtNqn, path, initiator, transtype string) error
- func (t *NvmeoftgtTarget) GetNvmeofSubsystem(nqn string) (string, error)
- func (t *NvmeoftgtTarget) GetNvmeofTarget(nqn, transtype string) (bool, error)
- func (t *NvmeoftgtTarget) Getnamespaceid(volId string) string
- func (t *NvmeoftgtTarget) RemoveNvmeofPort(nqn, transtype string) error
- func (t *NvmeoftgtTarget) RemoveNvmeofSubsystem(volId, nqn string) error
- func (t *NvmeoftgtTarget) RemoveNvmeofTarget(volId, nqn, transtype 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 ¶
Types ¶
type ISCSITarget ¶
type ISCSITarget interface { CreateISCSITarget(volId, tgtIqn, path, hostIp, initiator string, chapAuth []string) error GetISCSITarget(iqn string) int RemoveISCSITarget(volId, iqn, hostIp string) error GetLun(path string) int }
func NewISCSITarget ¶
func NewISCSITarget(bip, tgtConfDir string) ISCSITarget
type NvmeofTarget ¶ added in v0.5.1
type NvmeofTarget interface { AddNvmeofSubsystem(volId, tgtNqn, path, initiator string) (string, error) RemoveNvmeofSubsystem(volId, nqn string) error GetNvmeofSubsystem(nqn string) (string, error) CreateNvmeofTarget(volId, tgtIqn, path, initiator, transtype string) error GetNvmeofTarget(nqn, transtype string) (bool, error) RemoveNvmeofTarget(volId, nqn, transtype string) error }
func NewNvmeofTarget ¶ added in v0.5.1
func NewNvmeofTarget(bip, tgtConfDir string) NvmeofTarget
type NvmeoftgtTarget ¶ added in v0.5.1
func (*NvmeoftgtTarget) AddNvmeofSubsystem ¶ added in v0.5.4
func (t *NvmeoftgtTarget) AddNvmeofSubsystem(volId, tgtNqn, path, initiator string) (string, error)
func (*NvmeoftgtTarget) CreateNvmeofTarget ¶ added in v0.5.1
func (t *NvmeoftgtTarget) CreateNvmeofTarget(volId, tgtNqn, path, initiator, transtype string) error
func (*NvmeoftgtTarget) GetNvmeofSubsystem ¶ added in v0.5.4
func (t *NvmeoftgtTarget) GetNvmeofSubsystem(nqn string) (string, error)
func (*NvmeoftgtTarget) GetNvmeofTarget ¶ added in v0.5.1
func (t *NvmeoftgtTarget) GetNvmeofTarget(nqn, transtype string) (bool, error)
func (*NvmeoftgtTarget) Getnamespaceid ¶ added in v0.5.1
func (t *NvmeoftgtTarget) Getnamespaceid(volId string) string
func (*NvmeoftgtTarget) RemoveNvmeofPort ¶ added in v0.5.4
func (t *NvmeoftgtTarget) RemoveNvmeofPort(nqn, transtype string) error
func (*NvmeoftgtTarget) RemoveNvmeofSubsystem ¶ added in v0.5.4
func (t *NvmeoftgtTarget) RemoveNvmeofSubsystem(volId, nqn string) error
func (*NvmeoftgtTarget) RemoveNvmeofTarget ¶ added in v0.5.1
func (t *NvmeoftgtTarget) RemoveNvmeofTarget(volId, nqn, transtype 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.