ivdsdisk

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 (
	// 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}
)
View Source
var (
	// import guard
	GoPackage = "dcom/vds"
)

Functions

func DiskServerHandle

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

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 (o *ClearFlagsRequest) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ClearFlagsRequest) UnmarshalNDR

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

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 (o *ClearFlagsResponse) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ClearFlagsResponse) UnmarshalNDR

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

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 (o *ConvertStyleRequest) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ConvertStyleRequest) UnmarshalNDR

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

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 (o *ConvertStyleResponse) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ConvertStyleResponse) UnmarshalNDR

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

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

func NewDiskClient(ctx context.Context, cc dcerpc.Conn, opts ...dcerpc.Option) (DiskClient, error)

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

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

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

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

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 (o *GetPackRequest) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*GetPackRequest) UnmarshalNDR

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

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 (o *GetPackResponse) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*GetPackResponse) UnmarshalNDR

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

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"`
	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 (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 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 (o *QueryExtentsRequest) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*QueryExtentsRequest) UnmarshalNDR

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

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 (o *QueryExtentsResponse) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*QueryExtentsResponse) UnmarshalNDR

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

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 (o *SetFlagsRequest) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*SetFlagsRequest) UnmarshalNDR

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

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

func (*SetFlagsResponse) MarshalNDR

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

func (*SetFlagsResponse) UnmarshalNDR

func (o *SetFlagsResponse) 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