iscsi

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Device

type Device struct {
	Path string
	URI  *URI
}

func New

func New(p string) (*Device, error)

func (*Device) BaseName

func (d *Device) BaseName() string

func (*Device) Copy added in v1.4.1

func (d *Device) Copy() backend.DiskBackend

func (*Device) FullPath added in v1.4.1

func (d *Device) FullPath() string

func (*Device) IsAvailable

func (d *Device) IsAvailable() (bool, error)

func (*Device) IsLocal

func (d *Device) IsLocal() bool

func (*Device) QdevID

func (d *Device) QdevID() string

func (*Device) Size

func (d *Device) Size() (uint64, error)

type URI

type URI struct {
	Portal     string
	Host       string
	Port       int
	Iqn        string
	UniqueName string
	Lun        int
	User       string
	Pass       string
}

We support iscsi url's on the form iscsi://[<username>%<password>@]<host>[:<port>]/<targetname>/<lun> E.g.: iscsi://client%secret@192.168.0.254/iqn.2018-02.ru.netangels.cvds:mailstorage/0

func ParseURI

func ParseURI(rawuri string) (*URI, error)

Jump to

Keyboard shortcuts

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