Documentation ¶
Index ¶
- func AuthTypeToString(authType internal.AuthenticationType) (string, error)
- type API
- type Server
- func (s *Server) AddTargetPortal(context context.Context, request *internal.AddTargetPortalRequest, ...) (*internal.AddTargetPortalResponse, error)
- func (s *Server) ConnectTarget(context context.Context, req *internal.ConnectTargetRequest, ...) (*internal.ConnectTargetResponse, error)
- func (s *Server) DisconnectTarget(context context.Context, request *internal.DisconnectTargetRequest, ...) (*internal.DisconnectTargetResponse, error)
- func (s *Server) DiscoverTargetPortal(context context.Context, request *internal.DiscoverTargetPortalRequest, ...) (*internal.DiscoverTargetPortalResponse, error)
- func (s *Server) GetTargetDisks(context context.Context, request *internal.GetTargetDisksRequest, ...) (*internal.GetTargetDisksResponse, error)
- func (s *Server) ListTargetPortals(context context.Context, request *internal.ListTargetPortalsRequest, ...) (*internal.ListTargetPortalsResponse, error)
- func (s *Server) RemoveTargetPortal(context context.Context, request *internal.RemoveTargetPortalRequest, ...) (*internal.RemoveTargetPortalResponse, error)
- func (s *Server) SetMutualChapSecret(context context.Context, request *internal.SetMutualChapSecretRequest, ...) (*internal.SetMutualChapSecretResponse, error)
- func (s *Server) VersionedAPIs() []*srvtypes.VersionedAPI
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 (*Server) AddTargetPortal ¶
func (s *Server) AddTargetPortal(context context.Context, request *internal.AddTargetPortalRequest, version apiversion.Version) (*internal.AddTargetPortalResponse, error)
func (*Server) ConnectTarget ¶
func (s *Server) ConnectTarget(context context.Context, req *internal.ConnectTargetRequest, version apiversion.Version) (*internal.ConnectTargetResponse, error)
func (*Server) DisconnectTarget ¶
func (s *Server) DisconnectTarget(context context.Context, request *internal.DisconnectTargetRequest, version apiversion.Version) (*internal.DisconnectTargetResponse, error)
func (*Server) DiscoverTargetPortal ¶
func (s *Server) DiscoverTargetPortal(context context.Context, request *internal.DiscoverTargetPortalRequest, version apiversion.Version) (*internal.DiscoverTargetPortalResponse, error)
func (*Server) GetTargetDisks ¶
func (s *Server) GetTargetDisks(context context.Context, request *internal.GetTargetDisksRequest, version apiversion.Version) (*internal.GetTargetDisksResponse, error)
func (*Server) ListTargetPortals ¶
func (s *Server) ListTargetPortals(context context.Context, request *internal.ListTargetPortalsRequest, version apiversion.Version) (*internal.ListTargetPortalsResponse, error)
func (*Server) RemoveTargetPortal ¶
func (s *Server) RemoveTargetPortal(context context.Context, request *internal.RemoveTargetPortalRequest, version apiversion.Version) (*internal.RemoveTargetPortalResponse, error)
func (*Server) SetMutualChapSecret ¶
func (s *Server) SetMutualChapSecret(context context.Context, request *internal.SetMutualChapSecretRequest, version apiversion.Version) (*internal.SetMutualChapSecretResponse, error)
func (*Server) VersionedAPIs ¶
func (s *Server) VersionedAPIs() []*srvtypes.VersionedAPI
Click to show internal directories.
Click to hide internal directories.