ivdsiscsiinitiatoradapter

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// IVdsIscsiInitiatorAdapter interface identifier b07fedd4-1682-4440-9189-a39b55194dc5
	ISCSIInitiatorAdapterIID = &dcom.IID{Data1: 0xb07fedd4, Data2: 0x1682, Data3: 0x4440, Data4: []byte{0x91, 0x89, 0xa3, 0x9b, 0x55, 0x19, 0x4d, 0xc5}}
	// Syntax UUID
	ISCSIInitiatorAdapterSyntaxUUID = &uuid.UUID{TimeLow: 0xb07fedd4, TimeMid: 0x1682, TimeHiAndVersion: 0x4440, ClockSeqHiAndReserved: 0x91, ClockSeqLow: 0x89, Node: [6]uint8{0xa3, 0x9b, 0x55, 0x19, 0x4d, 0xc5}}
	// Syntax ID
	ISCSIInitiatorAdapterSyntaxV0_0 = &dcerpc.SyntaxID{IfUUID: ISCSIInitiatorAdapterSyntaxUUID, IfVersionMajor: 0, IfVersionMinor: 0}
)
View Source
var (
	// import guard
	GoPackage = "dcom/vds"
)

Functions

func ISCSIInitiatorAdapterServerHandle

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

func NewISCSIInitiatorAdapterServerHandle

func NewISCSIInitiatorAdapterServerHandle(o ISCSIInitiatorAdapterServer) dcerpc.ServerHandle

func RegisterISCSIInitiatorAdapterServer

func RegisterISCSIInitiatorAdapterServer(conn dcerpc.Conn, o ISCSIInitiatorAdapterServer, opts ...dcerpc.Option)

Types

type GetPropertiesRequest

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

GetPropertiesRequest structure represents the GetProperties operation request

func (*GetPropertiesRequest) MarshalNDR

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

func (*GetPropertiesRequest) UnmarshalNDR

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

type GetPropertiesResponse

type GetPropertiesResponse struct {
	// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
	That                     *dcom.ORPCThat                     `idl:"name:That" json:"that"`
	InitiatorAdapterProperty *vds.ISCSIInitiatorAdapterProperty `idl:"name:pInitiatorAdapterProp" json:"initiator_adapter_property"`
	// Return: The GetProperties return value.
	Return int32 `idl:"name:Return" json:"return"`
}

GetPropertiesResponse structure represents the GetProperties operation response

func (*GetPropertiesResponse) MarshalNDR

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

func (*GetPropertiesResponse) UnmarshalNDR

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

type ISCSIInitiatorAdapterClient

type ISCSIInitiatorAdapterClient interface {

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

	// GetProperties operation.
	GetProperties(context.Context, *GetPropertiesRequest, ...dcerpc.CallOption) (*GetPropertiesResponse, error)

	// The QueryInitiatorPortals method returns an object that enumerates the iSCSI initiator
	// portals of the initiator adapter.
	//
	// Return Values: The method MUST return zero or a nonerror 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.
	QueryInitiatorPortals(context.Context, *QueryInitiatorPortalsRequest, ...dcerpc.CallOption) (*QueryInitiatorPortalsResponse, error)

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

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

IVdsIscsiInitiatorAdapter interface.

func NewISCSIInitiatorAdapterClient

func NewISCSIInitiatorAdapterClient(ctx context.Context, cc dcerpc.Conn, opts ...dcerpc.Option) (ISCSIInitiatorAdapterClient, error)

type ISCSIInitiatorAdapterServer

type ISCSIInitiatorAdapterServer interface {

	// IUnknown base class.
	iunknown.UnknownServer

	// GetProperties operation.
	GetProperties(context.Context, *GetPropertiesRequest) (*GetPropertiesResponse, error)

	// The QueryInitiatorPortals method returns an object that enumerates the iSCSI initiator
	// portals of the initiator adapter.
	//
	// Return Values: The method MUST return zero or a nonerror 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.
	QueryInitiatorPortals(context.Context, *QueryInitiatorPortalsRequest) (*QueryInitiatorPortalsResponse, error)
}

IVdsIscsiInitiatorAdapter server interface.

type QueryInitiatorPortalsRequest

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

QueryInitiatorPortalsRequest structure represents the QueryInitiatorPortals operation request

func (*QueryInitiatorPortalsRequest) MarshalNDR

func (*QueryInitiatorPortalsRequest) UnmarshalNDR

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

type QueryInitiatorPortalsResponse

type QueryInitiatorPortalsResponse 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 containing an enumeration
	// of initiator portal objects in the initiator adapter. Callers MUST release the interface
	// when they are done with it.
	Enum *vds.EnumObject `idl:"name:ppEnum" json:"enum"`
	// Return: The QueryInitiatorPortals return value.
	Return int32 `idl:"name:Return" json:"return"`
}

QueryInitiatorPortalsResponse structure represents the QueryInitiatorPortals operation response

func (*QueryInitiatorPortalsResponse) MarshalNDR

func (*QueryInitiatorPortalsResponse) UnmarshalNDR

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

Jump to

Keyboard shortcuts

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