impl

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// No authentication is used
	NONE = 0

	// One way CHAP authentication. The target authenticates the initiator.
	ONE_WAY_CHAP = 1

	// Mutual CHAP authentication. The target and initiator authenticate each
	// other.
	MUTUAL_CHAP = 2
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AddTargetPortalRequest

type AddTargetPortalRequest struct {
	// iSCSI Target Portal to register in the initiator
	TargetPortal *TargetPortal
}

type AddTargetPortalResponse

type AddTargetPortalResponse struct {
}

type AuthenticationType

type AuthenticationType uint32

type ConnectTargetRequest

type ConnectTargetRequest struct {
	// Target portal to which the initiator will connect.
	TargetPortal *TargetPortal

	// IQN of the iSCSI Target
	Iqn string

	// Connection authentication type, None by default
	//
	// One Way Chap uses the chap_username and chap_secret
	// fields mentioned below to authenticate the initiator.
	//
	// Mutual Chap uses both the user/secret mentioned below
	// and the Initiator Chap Secret to authenticate the target and initiator.
	AuthType AuthenticationType

	// CHAP Username used to authenticate the initiator
	ChapUsername string

	// CHAP password used to authenticate the initiator
	ChapSecret string
}

type ConnectTargetResponse

type ConnectTargetResponse struct {
}

type DisconnectTargetRequest

type DisconnectTargetRequest struct {
	// Target portal from which initiator will disconnect
	TargetPortal *TargetPortal
	// IQN of the iSCSI Target
	Iqn string
}

type DisconnectTargetResponse

type DisconnectTargetResponse struct {
}

type DiscoverTargetPortalRequest

type DiscoverTargetPortalRequest struct {
	// iSCSI Target Portal on which to initiate discovery
	TargetPortal *TargetPortal
}

type DiscoverTargetPortalResponse

type DiscoverTargetPortalResponse struct {
	// List of discovered IQN addresses
	// follows IQN format: iqn.yyyy-mm.naming-authority:unique-name
	Iqns []string
}

type GetTargetDisksRequest

type GetTargetDisksRequest struct {
	// Target portal whose disks will be queried
	TargetPortal *TargetPortal
	// IQN of the iSCSI Target
	Iqn string
}

type GetTargetDisksResponse

type GetTargetDisksResponse struct {
	// List composed of disk ids (numbers) that are associated with the
	// iSCSI target
	DiskIDs []string
}

type ListTargetPortalsRequest

type ListTargetPortalsRequest struct {
}

type ListTargetPortalsResponse

type ListTargetPortalsResponse struct {
	// A list of Target Portals currently registered in the initiator
	TargetPortals []*TargetPortal
}

type RemoveTargetPortalRequest

type RemoveTargetPortalRequest struct {
	// iSCSI Target Portal
	TargetPortal *TargetPortal
}

type RemoveTargetPortalResponse

type RemoveTargetPortalResponse struct {
}

type SetMutualChapSecretRequest

type SetMutualChapSecretRequest struct {
	// the default CHAP secret that all initiators on this machine (node) use to
	// authenticate the target on mutual CHAP authentication.
	// Must be at least 12 byte long for non-Ipsec connections, at least one
	// byte long for Ipsec connections, and at most 16 bytes long.
	MutualChapSecret string
}

type SetMutualChapSecretResponse

type SetMutualChapSecretResponse struct {
}

type TargetPortal

type TargetPortal struct {
	// iSCSI Target (server) address
	TargetAddress string
	// iSCSI Target port (default iSCSI port is 3260)
	TargetPort uint32
}

type VersionedAPI

type VersionedAPI interface {
	Register(grpcServer *grpc.Server)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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