Documentation ¶
Index ¶
- Variables
- func NewServiceISCSIServerHandle(o ServiceISCSIServer) dcerpc.ServerHandle
- func RegisterServiceISCSIServer(conn dcerpc.Conn, o ServiceISCSIServer, opts ...dcerpc.Option)
- func ServiceISCSIServerHandle(ctx context.Context, o ServiceISCSIServer, opNum int, r ndr.Reader) (dcerpc.Operation, error)
- type GetInitiatorNameRequest
- type GetInitiatorNameResponse
- type QueryInitiatorAdaptersRequest
- type QueryInitiatorAdaptersResponse
- type ServiceISCSIClient
- type ServiceISCSIServer
- type SetInitiatorSharedSecretRequest
- type SetInitiatorSharedSecretResponse
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)
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 (*GetInitiatorNameRequest) UnmarshalNDR ¶
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 (*GetInitiatorNameResponse) UnmarshalNDR ¶
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 ¶
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) // 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 ¶
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) // 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 { dcom.ORPCThis `idl:"name:This" json:"this"` // 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"` // in GUID_NULL. Callers MUST pass in GUID_NULL. TargetID *vds.ObjectID `idl:"name:targetId" json:"target_id"` }This *
SetInitiatorSharedSecretRequest structure represents the SetInitiatorSharedSecret operation request
func (*SetInitiatorSharedSecretRequest) MarshalNDR ¶
func (*SetInitiatorSharedSecretRequest) UnmarshalNDR ¶
type SetInitiatorSharedSecretResponse ¶
type SetInitiatorSharedSecretResponse struct { dcom.ORPCThat `idl:"name:That" json:"that"` Return int32 `idl:"name:Return" json:"return"` }That *
SetInitiatorSharedSecretResponse structure represents the SetInitiatorSharedSecret operation response
func (*SetInitiatorSharedSecretResponse) MarshalNDR ¶
func (*SetInitiatorSharedSecretResponse) UnmarshalNDR ¶
Click to show internal directories.
Click to hide internal directories.