iscsi

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthTypeToString

func AuthTypeToString(authType internal.AuthenticationType) (string, error)

Types

type API

type API interface {
	AddTargetPortal(portal *iscsi.TargetPortal) error
	DiscoverTargetPortal(portal *iscsi.TargetPortal) ([]string, error)
	ListTargetPortals() ([]iscsi.TargetPortal, error)
	RemoveTargetPortal(portal *iscsi.TargetPortal) error
	ConnectTarget(portal *iscsi.TargetPortal, iqn string, authType string,
		chapUser string, chapSecret string) error
	DisconnectTarget(portal *iscsi.TargetPortal, iqn string) error
	GetTargetDisks(portal *iscsi.TargetPortal, iqn string) ([]string, error)
	SetMutualChapSecret(mutualChapSecret string) error
}

type Server

type Server struct {
	// contains filtered or unexported fields
}

func NewServer

func NewServer(hostAPI API) (*Server, error)

func (*Server) AddTargetPortal

func (s *Server) AddTargetPortal(context context.Context, request *internal.AddTargetPortalRequest, version apiversion.Version) (*internal.AddTargetPortalResponse, error)

func (*Server) ConnectTarget

func (*Server) DisconnectTarget

func (s *Server) DisconnectTarget(context context.Context, request *internal.DisconnectTargetRequest, version apiversion.Version) (*internal.DisconnectTargetResponse, error)

func (*Server) DiscoverTargetPortal

func (*Server) GetTargetDisks

func (s *Server) GetTargetDisks(context context.Context, request *internal.GetTargetDisksRequest, version apiversion.Version) (*internal.GetTargetDisksResponse, error)

func (*Server) ListTargetPortals

func (*Server) RemoveTargetPortal

func (*Server) SetMutualChapSecret

func (*Server) VersionedAPIs

func (s *Server) VersionedAPIs() []*srvtypes.VersionedAPI

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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