Documentation ¶
Index ¶
- Variables
- func NewServiceUninstallDiskServerHandle(o ServiceUninstallDiskServer) dcerpc.ServerHandle
- func RegisterServiceUninstallDiskServer(conn dcerpc.Conn, o ServiceUninstallDiskServer, opts ...dcerpc.Option)
- func ServiceUninstallDiskServerHandle(ctx context.Context, o ServiceUninstallDiskServer, opNum int, r ndr.Reader) (dcerpc.Operation, error)
- type GetDiskIDFromLUNInfoRequest
- type GetDiskIDFromLUNInfoResponse
- type ServiceUninstallDiskClient
- type ServiceUninstallDiskServer
- type UninstallDisksRequest
- type UninstallDisksResponse
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // IVdsServiceUninstallDisk interface identifier b6b22da8-f903-4be7-b492-c09d875ac9da ServiceUninstallDiskIID = &dcom.IID{Data1: 0xb6b22da8, Data2: 0xf903, Data3: 0x4be7, Data4: []byte{0xb4, 0x92, 0xc0, 0x9d, 0x87, 0x5a, 0xc9, 0xda}} // Syntax UUID ServiceUninstallDiskSyntaxUUID = &uuid.UUID{TimeLow: 0xb6b22da8, TimeMid: 0xf903, TimeHiAndVersion: 0x4be7, ClockSeqHiAndReserved: 0xb4, ClockSeqLow: 0x92, Node: [6]uint8{0xc0, 0x9d, 0x87, 0x5a, 0xc9, 0xda}} // Syntax ID ServiceUninstallDiskSyntaxV0_0 = &dcerpc.SyntaxID{IfUUID: ServiceUninstallDiskSyntaxUUID, IfVersionMajor: 0, IfVersionMinor: 0} )
View Source
var (
// import guard
GoPackage = "dcom/vds"
)
Functions ¶
func NewServiceUninstallDiskServerHandle ¶
func NewServiceUninstallDiskServerHandle(o ServiceUninstallDiskServer) dcerpc.ServerHandle
func RegisterServiceUninstallDiskServer ¶
func RegisterServiceUninstallDiskServer(conn dcerpc.Conn, o ServiceUninstallDiskServer, opts ...dcerpc.Option)
Types ¶
type GetDiskIDFromLUNInfoRequest ¶
type GetDiskIDFromLUNInfoRequest struct { // This: ORPCTHIS structure that is used to send ORPC extension data to the server. This *dcom.ORPCThis `idl:"name:This" json:"this"` // pLunInfo: A pointer to a VDS_LUN_INFORMATION structure that stores the disk's LUN // information. LUNInfo *vds.LUNInformation `idl:"name:pLunInfo" json:"lun_info"` }
GetDiskIDFromLUNInfoRequest structure represents the GetDiskIdFromLunInfo operation request
func (*GetDiskIDFromLUNInfoRequest) MarshalNDR ¶
func (*GetDiskIDFromLUNInfoRequest) UnmarshalNDR ¶
type GetDiskIDFromLUNInfoResponse ¶
type GetDiskIDFromLUNInfoResponse struct { // That: ORPCTHAT structure that is used to return ORPC extension data to the client. That *dcom.ORPCThat `idl:"name:That" json:"that"` // pDiskId: A pointer to a VDS_OBJECT_ID structure that, if the operation is successfully // completed, receives the VDS object ID of the disk object that corresponds to the // LUN information that pLunInfo specifies. DiskID *vds.ObjectID `idl:"name:pDiskId" json:"disk_id"` // Return: The GetDiskIdFromLunInfo return value. Return int32 `idl:"name:Return" json:"return"` }
GetDiskIDFromLUNInfoResponse structure represents the GetDiskIdFromLunInfo operation response
func (*GetDiskIDFromLUNInfoResponse) MarshalNDR ¶
func (*GetDiskIDFromLUNInfoResponse) UnmarshalNDR ¶
type ServiceUninstallDiskClient ¶
type ServiceUninstallDiskClient interface { // IUnknown retrieval method. Unknown() iunknown.UnknownClient // The GetDiskIdFromLunInfo method retrieves the VDS object ID of a disk that corresponds // to a specified LUN information structure. // // 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. GetDiskIDFromLUNInfo(context.Context, *GetDiskIDFromLUNInfoRequest, ...dcerpc.CallOption) (*GetDiskIDFromLUNInfoResponse, error) // The UninstallDisks method uninstalls a specific set of disks when it is given a list // of the VDS object IDs for the disks. All volumes that are contained wholly or partially // on the disks are also uninstalled, and the obsolete mount points are removed. // // 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. UninstallDisks(context.Context, *UninstallDisksRequest, ...dcerpc.CallOption) (*UninstallDisksResponse, error) // AlterContext alters the client context. AlterContext(context.Context, ...dcerpc.Option) error // IPID sets the object interface identifier. IPID(context.Context, *dcom.IPID) ServiceUninstallDiskClient }
IVdsServiceUninstallDisk interface.
type ServiceUninstallDiskServer ¶
type ServiceUninstallDiskServer interface { // IUnknown base class. iunknown.UnknownServer // The GetDiskIdFromLunInfo method retrieves the VDS object ID of a disk that corresponds // to a specified LUN information structure. // // 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. GetDiskIDFromLUNInfo(context.Context, *GetDiskIDFromLUNInfoRequest) (*GetDiskIDFromLUNInfoResponse, error) // The UninstallDisks method uninstalls a specific set of disks when it is given a list // of the VDS object IDs for the disks. All volumes that are contained wholly or partially // on the disks are also uninstalled, and the obsolete mount points are removed. // // 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. UninstallDisks(context.Context, *UninstallDisksRequest) (*UninstallDisksResponse, error) }
IVdsServiceUninstallDisk server interface.
type UninstallDisksRequest ¶
type UninstallDisksRequest struct { // This: ORPCTHIS structure that is used to send ORPC extension data to the server. This *dcom.ORPCThis `idl:"name:This" json:"this"` // pDiskIdArray: A pointer to an array of VDS_OBJECT_ID structures that store the VDS // object IDs of the disks to be uninstalled. DiskIDArray []*vds.ObjectID `idl:"name:pDiskIdArray;size_is:(ulCount)" json:"disk_id_array"` // ulCount: The number of disks that are specified in pDiskIdArray. Count uint32 `idl:"name:ulCount" json:"count"` // bForce: A Boolean that determines whether the volume dismount is forced. Force bool `idl:"name:bForce" json:"force"` }
UninstallDisksRequest structure represents the UninstallDisks operation request
func (*UninstallDisksRequest) MarshalNDR ¶
func (*UninstallDisksRequest) UnmarshalNDR ¶
type UninstallDisksResponse ¶
type UninstallDisksResponse struct { // That: ORPCTHAT structure that is used to return ORPC extension data to the client. That *dcom.ORPCThat `idl:"name:That" json:"that"` // pbReboot: A pointer to a Boolean that, if the operation is successfully completed, // indicates whether the user is required to reboot the remote machine to complete the // uninstall process. Reboot bool `idl:"name:pbReboot" json:"reboot"` // pResults: A pointer to an array of HRESULT values that, if the operation is successfully // completed, receives an HRESULT for each disk uninstall request. There MUST be one // HRESULT value in the array for each disk in pDiskIdArray. If any disk fails to uninstall // properly, the error code for that failure is received in the corresponding entry // in pResults. Results []int32 `idl:"name:pResults;size_is:(ulCount)" json:"results"` // Return: The UninstallDisks return value. Return int32 `idl:"name:Return" json:"return"` }
UninstallDisksResponse structure represents the UninstallDisks operation response
func (*UninstallDisksResponse) MarshalNDR ¶
func (*UninstallDisksResponse) UnmarshalNDR ¶
Click to show internal directories.
Click to hide internal directories.