iscsi

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIImplementor

type APIImplementor struct{}

func New

func New() APIImplementor

func (APIImplementor) AddTargetPortal

func (APIImplementor) AddTargetPortal(portal *TargetPortal) error

func (APIImplementor) ConnectTarget

func (APIImplementor) ConnectTarget(portal *TargetPortal, iqn string,
	authType string, chapUser string, chapSecret string) error

func (APIImplementor) DisconnectTarget

func (APIImplementor) DisconnectTarget(portal *TargetPortal, iqn string) error

func (APIImplementor) DiscoverTargetPortal

func (APIImplementor) DiscoverTargetPortal(portal *TargetPortal) ([]string, error)

func (APIImplementor) GetTargetDisks

func (APIImplementor) GetTargetDisks(portal *TargetPortal, iqn string) ([]string, error)

func (APIImplementor) ListTargetPortals

func (APIImplementor) ListTargetPortals() ([]TargetPortal, error)

func (APIImplementor) RemoveTargetPortal

func (APIImplementor) RemoveTargetPortal(portal *TargetPortal) error

func (APIImplementor) SetMutualChapSecret

func (APIImplementor) SetMutualChapSecret(mutualChapSecret string) error

type TargetPortal

type TargetPortal struct {
	Address string `json:"TargetPortalAddress"`
	Port    uint32 `json:"TargetPortalPortNumber"`
}

TargetPortal is an address and port pair for a specific iSCSI storage target. JSON field names are the WMI MSFT_iSCSITargetPortal field names.

Jump to

Keyboard shortcuts

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