iscsi

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2023 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) 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%[email protected]/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