Documentation ¶
Index ¶
- Variables
- func DiskServerHandle(ctx context.Context, o DiskServer, opNum int, r ndr.Reader) (dcerpc.Operation, error)
- func NewDiskServerHandle(o DiskServer) dcerpc.ServerHandle
- func RegisterDiskServer(conn dcerpc.Conn, o DiskServer, opts ...dcerpc.Option)
- type ClearFlagsRequest
- type ClearFlagsResponse
- type ConvertStyleRequest
- type ConvertStyleResponse
- type DiskClient
- type DiskServer
- type GetIdentificationDataRequest
- type GetIdentificationDataResponse
- type GetPackRequest
- type GetPackResponse
- type GetPropertiesRequest
- type GetPropertiesResponse
- type QueryExtentsRequest
- type QueryExtentsResponse
- type SetFlagsRequest
- type SetFlagsResponse
Constants ¶
This section is empty.
Variables ¶
var ( // IVdsDisk interface identifier 07e5c822-f00c-47a1-8fce-b244da56fd06 DiskIID = &dcom.IID{Data1: 0x07e5c822, Data2: 0xf00c, Data3: 0x47a1, Data4: []byte{0x8f, 0xce, 0xb2, 0x44, 0xda, 0x56, 0xfd, 0x06}} // Syntax UUID DiskSyntaxUUID = &uuid.UUID{TimeLow: 0x7e5c822, TimeMid: 0xf00c, TimeHiAndVersion: 0x47a1, ClockSeqHiAndReserved: 0x8f, ClockSeqLow: 0xce, Node: [6]uint8{0xb2, 0x44, 0xda, 0x56, 0xfd, 0x6}} // Syntax ID DiskSyntaxV0_0 = &dcerpc.SyntaxID{IfUUID: DiskSyntaxUUID, IfVersionMajor: 0, IfVersionMinor: 0} )
var (
// import guard
GoPackage = "dcom/vds"
)
Functions ¶
func DiskServerHandle ¶
func NewDiskServerHandle ¶
func NewDiskServerHandle(o DiskServer) dcerpc.ServerHandle
func RegisterDiskServer ¶
func RegisterDiskServer(conn dcerpc.Conn, o DiskServer, opts ...dcerpc.Option)
Types ¶
type ClearFlagsRequest ¶
type ClearFlagsRequest struct { // This: ORPCTHIS structure that is used to send ORPC extension data to the server. This *dcom.ORPCThis `idl:"name:This" json:"this"` Flags uint32 `idl:"name:ulFlags" json:"flags"` }
ClearFlagsRequest structure represents the ClearFlags operation request
func (*ClearFlagsRequest) MarshalNDR ¶
func (*ClearFlagsRequest) UnmarshalNDR ¶
type ClearFlagsResponse ¶
type ClearFlagsResponse 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 ClearFlags return value. Return int32 `idl:"name:Return" json:"return"` }
ClearFlagsResponse structure represents the ClearFlags operation response
func (*ClearFlagsResponse) MarshalNDR ¶
func (*ClearFlagsResponse) UnmarshalNDR ¶
type ConvertStyleRequest ¶
type ConvertStyleRequest struct { // This: ORPCTHIS structure that is used to send ORPC extension data to the server. This *dcom.ORPCThis `idl:"name:This" json:"this"` // NewStyle: A value from the VDS_PARTITION_STYLE enumeration that indicates the new // partitioning format. NewStyle vds.PartitionStyle `idl:"name:NewStyle" json:"new_style"` }
ConvertStyleRequest structure represents the ConvertStyle operation request
func (*ConvertStyleRequest) MarshalNDR ¶
func (*ConvertStyleRequest) UnmarshalNDR ¶
type ConvertStyleResponse ¶
type ConvertStyleResponse 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 ConvertStyle return value. Return int32 `idl:"name:Return" json:"return"` }
ConvertStyleResponse structure represents the ConvertStyle operation response
func (*ConvertStyleResponse) MarshalNDR ¶
func (*ConvertStyleResponse) UnmarshalNDR ¶
type DiskClient ¶
type DiskClient interface { // IUnknown retrieval method. Unknown() iunknown.UnknownClient // GetProperties operation. GetProperties(context.Context, *GetPropertiesRequest, ...dcerpc.CallOption) (*GetPropertiesResponse, error) // GetPack operation. GetPack(context.Context, *GetPackRequest, ...dcerpc.CallOption) (*GetPackResponse, error) // The GetIdentificationData method retrieves information that uniquely identifies a // disk. // // 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. GetIdentificationData(context.Context, *GetIdentificationDataRequest, ...dcerpc.CallOption) (*GetIdentificationDataResponse, error) // QueryExtents operation. QueryExtents(context.Context, *QueryExtentsRequest, ...dcerpc.CallOption) (*QueryExtentsResponse, error) // The ConvertStyle method converts a disk's partitioning format. // // 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. ConvertStyle(context.Context, *ConvertStyleRequest, ...dcerpc.CallOption) (*ConvertStyleResponse, error) // SetFlags operation. SetFlags(context.Context, *SetFlagsRequest, ...dcerpc.CallOption) (*SetFlagsResponse, error) // ClearFlags operation. ClearFlags(context.Context, *ClearFlagsRequest, ...dcerpc.CallOption) (*ClearFlagsResponse, error) // AlterContext alters the client context. AlterContext(context.Context, ...dcerpc.Option) error // IPID sets the object interface identifier. IPID(context.Context, *dcom.IPID) DiskClient }
IVdsDisk interface.
func NewDiskClient ¶
type DiskServer ¶
type DiskServer interface { // IUnknown base class. iunknown.UnknownServer // GetProperties operation. GetProperties(context.Context, *GetPropertiesRequest) (*GetPropertiesResponse, error) // GetPack operation. GetPack(context.Context, *GetPackRequest) (*GetPackResponse, error) // The GetIdentificationData method retrieves information that uniquely identifies a // disk. // // 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. GetIdentificationData(context.Context, *GetIdentificationDataRequest) (*GetIdentificationDataResponse, error) // QueryExtents operation. QueryExtents(context.Context, *QueryExtentsRequest) (*QueryExtentsResponse, error) // The ConvertStyle method converts a disk's partitioning format. // // 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. ConvertStyle(context.Context, *ConvertStyleRequest) (*ConvertStyleResponse, error) // SetFlags operation. SetFlags(context.Context, *SetFlagsRequest) (*SetFlagsResponse, error) // ClearFlags operation. ClearFlags(context.Context, *ClearFlagsRequest) (*ClearFlagsResponse, error) }
IVdsDisk server interface.
type GetIdentificationDataRequest ¶
type GetIdentificationDataRequest struct { // This: ORPCTHIS structure that is used to send ORPC extension data to the server. This *dcom.ORPCThis `idl:"name:This" json:"this"` }
GetIdentificationDataRequest structure represents the GetIdentificationData operation request
func (*GetIdentificationDataRequest) MarshalNDR ¶
func (*GetIdentificationDataRequest) UnmarshalNDR ¶
type GetIdentificationDataResponse ¶
type GetIdentificationDataResponse struct { // That: ORPCTHAT structure that is used to return ORPC extension data to the client. That *dcom.ORPCThat `idl:"name:That" json:"that"` // pLunInfo: A pointer to a VDS_LUN_INFORMATION structure that, if the operation is // successfully completed, receives the LUN information for the disk. LUNInfo *vds.LUNInformation `idl:"name:pLunInfo" json:"lun_info"` // Return: The GetIdentificationData return value. Return int32 `idl:"name:Return" json:"return"` }
GetIdentificationDataResponse structure represents the GetIdentificationData operation response
func (*GetIdentificationDataResponse) MarshalNDR ¶
func (*GetIdentificationDataResponse) UnmarshalNDR ¶
type GetPackRequest ¶
type GetPackRequest struct { // This: ORPCTHIS structure that is used to send ORPC extension data to the server. This *dcom.ORPCThis `idl:"name:This" json:"this"` }
GetPackRequest structure represents the GetPack operation request
func (*GetPackRequest) MarshalNDR ¶
func (*GetPackRequest) UnmarshalNDR ¶
type GetPackResponse ¶
type GetPackResponse struct { // That: ORPCTHAT structure that is used to return ORPC extension data to the client. That *dcom.ORPCThat `idl:"name:That" json:"that"` Pack *vds.Pack `idl:"name:ppPack" json:"pack"` // Return: The GetPack return value. Return int32 `idl:"name:Return" json:"return"` }
GetPackResponse structure represents the GetPack operation response
func (*GetPackResponse) MarshalNDR ¶
func (*GetPackResponse) UnmarshalNDR ¶
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 (*GetPropertiesRequest) UnmarshalNDR ¶
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"` DiskProperties *vds.DiskProperty `idl:"name:pDiskProperties" json:"disk_properties"` // Return: The GetProperties return value. Return int32 `idl:"name:Return" json:"return"` }
GetPropertiesResponse structure represents the GetProperties operation response
func (*GetPropertiesResponse) MarshalNDR ¶
func (*GetPropertiesResponse) UnmarshalNDR ¶
type QueryExtentsRequest ¶
type QueryExtentsRequest struct { // This: ORPCTHIS structure that is used to send ORPC extension data to the server. This *dcom.ORPCThis `idl:"name:This" json:"this"` }
QueryExtentsRequest structure represents the QueryExtents operation request
func (*QueryExtentsRequest) MarshalNDR ¶
func (*QueryExtentsRequest) UnmarshalNDR ¶
type QueryExtentsResponse ¶
type QueryExtentsResponse struct { // That: ORPCTHAT structure that is used to return ORPC extension data to the client. That *dcom.ORPCThat `idl:"name:That" json:"that"` ExtentArray []*vds.DiskExtent `idl:"name:ppExtentArray;size_is:(, plNumberOfExtents)" json:"extent_array"` NumberOfExtents int32 `idl:"name:plNumberOfExtents" json:"number_of_extents"` // Return: The QueryExtents return value. Return int32 `idl:"name:Return" json:"return"` }
QueryExtentsResponse structure represents the QueryExtents operation response
func (*QueryExtentsResponse) MarshalNDR ¶
func (*QueryExtentsResponse) UnmarshalNDR ¶
type SetFlagsRequest ¶
type SetFlagsRequest struct { // This: ORPCTHIS structure that is used to send ORPC extension data to the server. This *dcom.ORPCThis `idl:"name:This" json:"this"` Flags uint32 `idl:"name:ulFlags" json:"flags"` }
SetFlagsRequest structure represents the SetFlags operation request
func (*SetFlagsRequest) MarshalNDR ¶
func (*SetFlagsRequest) UnmarshalNDR ¶
type SetFlagsResponse ¶
type SetFlagsResponse 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 SetFlags return value. Return int32 `idl:"name:Return" json:"return"` }
SetFlagsResponse structure represents the SetFlags operation response