Documentation
¶
Index ¶
- type APIImplementor
- func (APIImplementor) AddTargetPortal(portal *TargetPortal) error
- func (APIImplementor) ConnectTarget(portal *TargetPortal, iqn string, authType string, chapUser string, ...) error
- func (APIImplementor) DisconnectTarget(portal *TargetPortal, iqn string) error
- func (APIImplementor) DiscoverTargetPortal(portal *TargetPortal) ([]string, error)
- func (APIImplementor) GetTargetDisks(portal *TargetPortal, iqn string) ([]string, error)
- func (APIImplementor) ListTargetPortals() ([]TargetPortal, error)
- func (APIImplementor) RemoveTargetPortal(portal *TargetPortal) error
- func (APIImplementor) SetMutualChapSecret(mutualChapSecret string) error
- type TargetPortal
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.
Click to show internal directories.
Click to hide internal directories.