ivdsserviceiscsi

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// IVdsServiceIscsi interface identifier 14fbe036-3ed7-4e10-90e9-a5ff991aff01
	ServiceISCSIIID = &dcom.IID{Data1: 0x14fbe036, Data2: 0x3ed7, Data3: 0x4e10, Data4: []byte{0x90, 0xe9, 0xa5, 0xff, 0x99, 0x1a, 0xff, 0x01}}
	// Syntax UUID
	ServiceISCSISyntaxUUID = &uuid.UUID{TimeLow: 0x14fbe036, TimeMid: 0x3ed7, TimeHiAndVersion: 0x4e10, ClockSeqHiAndReserved: 0x90, ClockSeqLow: 0xe9, Node: [6]uint8{0xa5, 0xff, 0x99, 0x1a, 0xff, 0x1}}
	// Syntax ID
	ServiceISCSISyntaxV0_0 = &dcerpc.SyntaxID{IfUUID: ServiceISCSISyntaxUUID, IfVersionMajor: 0, IfVersionMinor: 0}
)
View Source
var (
	// import guard
	GoPackage = "dcom/vds"
)

Functions

func NewServiceISCSIServerHandle

func NewServiceISCSIServerHandle(o ServiceISCSIServer) dcerpc.ServerHandle

func RegisterServiceISCSIServer

func RegisterServiceISCSIServer(conn dcerpc.Conn, o ServiceISCSIServer, opts ...dcerpc.Option)

func ServiceISCSIServerHandle

func ServiceISCSIServerHandle(ctx context.Context, o ServiceISCSIServer, opNum int, r ndr.Reader) (dcerpc.Operation, error)

Types

type GetInitiatorNameRequest

type GetInitiatorNameRequest struct {
	// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
	This *dcom.ORPCThis `idl:"name:This" json:"this"`
}

GetInitiatorNameRequest structure represents the GetInitiatorName operation request

func (*GetInitiatorNameRequest) MarshalNDR

func (o *GetInitiatorNameRequest) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*GetInitiatorNameRequest) UnmarshalNDR

func (o *GetInitiatorNameRequest) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type GetInitiatorNameResponse

type GetInitiatorNameResponse struct {
	// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
	That *dcom.ORPCThat `idl:"name:That" json:"that"`
	// ppwszIscsiName: A pointer that, if the operation is successfully completed, receives
	// a null-terminated Unicode string with the iSCSI name.
	ISCSIName string `idl:"name:ppwszIscsiName;string" json:"iscsi_name"`
	// Return: The GetInitiatorName return value.
	Return int32 `idl:"name:Return" json:"return"`
}

GetInitiatorNameResponse structure represents the GetInitiatorName operation response

func (*GetInitiatorNameResponse) MarshalNDR

func (o *GetInitiatorNameResponse) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*GetInitiatorNameResponse) UnmarshalNDR

func (o *GetInitiatorNameResponse) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type QueryInitiatorAdaptersRequest

type QueryInitiatorAdaptersRequest struct {
	// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
	This *dcom.ORPCThis `idl:"name:This" json:"this"`
}

QueryInitiatorAdaptersRequest structure represents the QueryInitiatorAdapters operation request

func (*QueryInitiatorAdaptersRequest) MarshalNDR

func (*QueryInitiatorAdaptersRequest) UnmarshalNDR

func (o *QueryInitiatorAdaptersRequest) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type QueryInitiatorAdaptersResponse

type QueryInitiatorAdaptersResponse struct {
	// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
	That *dcom.ORPCThat `idl:"name:That" json:"that"`
	// ppEnum: A pointer to an IEnumVdsObject interface that, if the operation is successfully
	// completed, receives the IEnumVdsObject interface of the object that contains an enumeration
	// of initiator adapter objects on the server. Callers MUST release the interface when
	// they are done with it.
	Enum *vds.EnumObject `idl:"name:ppEnum" json:"enum"`
	// Return: The QueryInitiatorAdapters return value.
	Return int32 `idl:"name:Return" json:"return"`
}

QueryInitiatorAdaptersResponse structure represents the QueryInitiatorAdapters operation response

func (*QueryInitiatorAdaptersResponse) MarshalNDR

func (*QueryInitiatorAdaptersResponse) UnmarshalNDR

type ServiceISCSIClient

type ServiceISCSIClient interface {

	// IUnknown retrieval method.
	Unknown() iunknown.UnknownClient

	// The GetInitiatorName method returns the iSCSI name of the initiator service.
	//
	// Return Values: The method MUST return zero or a non-error HRESULT (as specified in
	// [MS-ERREF]) to indicate success, or return an implementation-specific nonzero error
	// code to indicate failure. For the HRESULT values predefined by the Virtual Disk Service
	// Remote Protocol, see section 2.2.3.
	GetInitiatorName(context.Context, *GetInitiatorNameRequest, ...dcerpc.CallOption) (*GetInitiatorNameResponse, error)

	// The QueryInitiatorAdapters method returns an object that enumerates the iSCSI initiator
	// adapters of the initiator.
	//
	// Return Values: The method MUST return zero or a non-error HRESULT (as specified in
	// [MS-ERREF]) to indicate success, or return an implementation-specific nonzero error
	// code to indicate failure. For the HRESULT values predefined by the Virtual Disk Service
	// Remote Protocol, see section 2.2.3.
	QueryInitiatorAdapters(context.Context, *QueryInitiatorAdaptersRequest, ...dcerpc.CallOption) (*QueryInitiatorAdaptersResponse, error)

	// The SetInitiatorSharedSecret method sets the initiator CHAP shared secret that is
	// used for mutual CHAP authentication when the initiator authenticates the target.
	// For more information on CHAP, see [MS-CHAP].<74>
	//
	// Return Values: The method MUST return zero or a non-error HRESULT (as specified in
	// [MS-ERREF]) to indicate success, or return an implementation-specific nonzero error
	// code to indicate failure. For the HRESULT values predefined by the Virtual Disk Service
	// Remote Protocol, see section 2.2.3.
	SetInitiatorSharedSecret(context.Context, *SetInitiatorSharedSecretRequest, ...dcerpc.CallOption) (*SetInitiatorSharedSecretResponse, error)

	// AlterContext alters the client context.
	AlterContext(context.Context, ...dcerpc.Option) error

	// IPID sets the object interface identifier.
	IPID(context.Context, *dcom.IPID) ServiceISCSIClient
}

IVdsServiceIscsi interface.

func NewServiceISCSIClient

func NewServiceISCSIClient(ctx context.Context, cc dcerpc.Conn, opts ...dcerpc.Option) (ServiceISCSIClient, error)

type ServiceISCSIServer

type ServiceISCSIServer interface {

	// IUnknown base class.
	iunknown.UnknownServer

	// The GetInitiatorName method returns the iSCSI name of the initiator service.
	//
	// Return Values: The method MUST return zero or a non-error HRESULT (as specified in
	// [MS-ERREF]) to indicate success, or return an implementation-specific nonzero error
	// code to indicate failure. For the HRESULT values predefined by the Virtual Disk Service
	// Remote Protocol, see section 2.2.3.
	GetInitiatorName(context.Context, *GetInitiatorNameRequest) (*GetInitiatorNameResponse, error)

	// The QueryInitiatorAdapters method returns an object that enumerates the iSCSI initiator
	// adapters of the initiator.
	//
	// Return Values: The method MUST return zero or a non-error HRESULT (as specified in
	// [MS-ERREF]) to indicate success, or return an implementation-specific nonzero error
	// code to indicate failure. For the HRESULT values predefined by the Virtual Disk Service
	// Remote Protocol, see section 2.2.3.
	QueryInitiatorAdapters(context.Context, *QueryInitiatorAdaptersRequest) (*QueryInitiatorAdaptersResponse, error)

	// The SetInitiatorSharedSecret method sets the initiator CHAP shared secret that is
	// used for mutual CHAP authentication when the initiator authenticates the target.
	// For more information on CHAP, see [MS-CHAP].<74>
	//
	// Return Values: The method MUST return zero or a non-error HRESULT (as specified in
	// [MS-ERREF]) to indicate success, or return an implementation-specific nonzero error
	// code to indicate failure. For the HRESULT values predefined by the Virtual Disk Service
	// Remote Protocol, see section 2.2.3.
	SetInitiatorSharedSecret(context.Context, *SetInitiatorSharedSecretRequest) (*SetInitiatorSharedSecretResponse, error)
}

IVdsServiceIscsi server interface.

type SetInitiatorSharedSecretRequest

type SetInitiatorSharedSecretRequest struct {
	// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
	This *dcom.ORPCThis `idl:"name:This" json:"this"`
	// pInitiatorSharedSecret: A pointer to a VDS_ISCSI_SHARED_SECRET structure that contains
	// the CHAP shared secret that is used for mutual CHAP authentication when the initiator
	// authenticates the target.
	InitiatorSharedSecret *vds.ISCSISharedSecret `idl:"name:pInitiatorSharedSecret;pointer:unique" json:"initiator_shared_secret"`
	// targetId: This parameter is reserved and not used by the protocol. Callers MUST pass
	// in GUID_NULL. Callers MUST pass in GUID_NULL.
	TargetID *vds.ObjectID `idl:"name:targetId" json:"target_id"`
}

SetInitiatorSharedSecretRequest structure represents the SetInitiatorSharedSecret operation request

func (*SetInitiatorSharedSecretRequest) MarshalNDR

func (*SetInitiatorSharedSecretRequest) UnmarshalNDR

type SetInitiatorSharedSecretResponse

type SetInitiatorSharedSecretResponse struct {
	// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
	That *dcom.ORPCThat `idl:"name:That" json:"that"`
	// Return: The SetInitiatorSharedSecret return value.
	Return int32 `idl:"name:Return" json:"return"`
}

SetInitiatorSharedSecretResponse structure represents the SetInitiatorSharedSecret operation response

func (*SetInitiatorSharedSecretResponse) MarshalNDR

func (*SetInitiatorSharedSecretResponse) UnmarshalNDR

Jump to

Keyboard shortcuts

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