scanner

package
v4.12.0 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package scanner provides options for scan device

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FCLunInfo

type FCLunInfo struct {
	WWPN    string
	HostLUN string
}

FCLunInfo represents Fibre Channel logical unit information for scanning.

type FCScanner

type FCScanner struct{}

FCScanner implements Interface for Fibre Channel devices.

func (*FCScanner) Scan

func (s *FCScanner) Scan(ctx context.Context, lunInfo interface{}) error

Scan scans Fibre Channel devices and makes them available to the host.

type Factory

type Factory interface {
	Scan(ctx context.Context, publishInfo *manage.ControllerPublishInfo) error
}

Factory defines the interface for creating scanners based on protocol type.

func GetFactory

func GetFactory() Factory

GetFactory returns the singleton scanner factory instance.

type ISCSILunInfo

type ISCSILunInfo struct {
	Portal  string
	IQN     string
	HostLUN string
}

ISCSILunInfo represents iSCSI logical unit information for scanning.

type ISCSIScanner

type ISCSIScanner struct{}

ISCSIScanner implements Interface for iSCSI devices.

func (*ISCSIScanner) Scan

func (s *ISCSIScanner) Scan(ctx context.Context, lunInfo interface{}) error

Scan scans iSCSI devices and makes them available to the host.

type Interface

type Interface interface {
	Scan(ctx context.Context, lunInfo interface{}) error
}

Interface defines the interface for scanning storage devices.

Jump to

Keyboard shortcuts

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