ivdsvolumeshrink

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 (
	// IVdsVolumeShrink interface identifier d68168c9-82a2-4f85-b6e9-74707c49a58f
	VolumeShrinkIID = &dcom.IID{Data1: 0xd68168c9, Data2: 0x82a2, Data3: 0x4f85, Data4: []byte{0xb6, 0xe9, 0x74, 0x70, 0x7c, 0x49, 0xa5, 0x8f}}
	// Syntax UUID
	VolumeShrinkSyntaxUUID = &uuid.UUID{TimeLow: 0xd68168c9, TimeMid: 0x82a2, TimeHiAndVersion: 0x4f85, ClockSeqHiAndReserved: 0xb6, ClockSeqLow: 0xe9, Node: [6]uint8{0x74, 0x70, 0x7c, 0x49, 0xa5, 0x8f}}
	// Syntax ID
	VolumeShrinkSyntaxV0_0 = &dcerpc.SyntaxID{IfUUID: VolumeShrinkSyntaxUUID, IfVersionMajor: 0, IfVersionMinor: 0}
)
View Source
var (
	// import guard
	GoPackage = "dcom/vds"
)

Functions

func NewVolumeShrinkServerHandle

func NewVolumeShrinkServerHandle(o VolumeShrinkServer) dcerpc.ServerHandle

func RegisterVolumeShrinkServer

func RegisterVolumeShrinkServer(conn dcerpc.Conn, o VolumeShrinkServer, opts ...dcerpc.Option)

func VolumeShrinkServerHandle

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

Types

type QueryMaxReclaimableBytesRequest

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

QueryMaxReclaimableBytesRequest structure represents the QueryMaxReclaimableBytes operation request

func (*QueryMaxReclaimableBytesRequest) MarshalNDR

func (*QueryMaxReclaimableBytesRequest) UnmarshalNDR

type QueryMaxReclaimableBytesResponse

type QueryMaxReclaimableBytesResponse struct {
	// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
	That *dcom.ORPCThat `idl:"name:That" json:"that"`
	// pullMaxNumberOfReclaimableBytes: A pointer to a variable that, if the operation is
	// successfully completed, receives the maximum number of bytes that can be reclaimed
	// from the current volume. This number is always a multiple of the file system cluster
	// size, which is in turn a multiple of the disk sector size.
	PullMaxNumberOfReclaimableBytes uint64 `idl:"name:pullMaxNumberOfReclaimableBytes" json:"pull_max_number_of_reclaimable_bytes"`
	// Return: The QueryMaxReclaimableBytes return value.
	Return int32 `idl:"name:Return" json:"return"`
}

QueryMaxReclaimableBytesResponse structure represents the QueryMaxReclaimableBytes operation response

func (*QueryMaxReclaimableBytesResponse) MarshalNDR

func (*QueryMaxReclaimableBytesResponse) UnmarshalNDR

type ShrinkRequest

type ShrinkRequest struct {
	// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
	This                            *dcom.ORPCThis `idl:"name:This" json:"this"`
	DesiredNumberOfReclaimableBytes uint64         `idl:"name:ullDesiredNumberOfReclaimableBytes" json:"desired_number_of_reclaimable_bytes"`
	MinNumberOfReclaimableBytes     uint64         `idl:"name:ullMinNumberOfReclaimableBytes" json:"min_number_of_reclaimable_bytes"`
}

ShrinkRequest structure represents the Shrink operation request

func (*ShrinkRequest) MarshalNDR

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

func (*ShrinkRequest) UnmarshalNDR

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

type ShrinkResponse

type ShrinkResponse struct {
	// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
	That  *dcom.ORPCThat `idl:"name:That" json:"that"`
	Async *vds.Async     `idl:"name:ppAsync" json:"async"`
	// Return: The Shrink return value.
	Return int32 `idl:"name:Return" json:"return"`
}

ShrinkResponse structure represents the Shrink operation response

func (*ShrinkResponse) MarshalNDR

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

func (*ShrinkResponse) UnmarshalNDR

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

type VolumeShrinkClient

type VolumeShrinkClient interface {

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

	// The QueryMaxReclaimableBytes method retrieves the maximum number of bytes that can
	// be reclaimed from the current volume.
	//
	// 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.
	QueryMaxReclaimableBytes(context.Context, *QueryMaxReclaimableBytesRequest, ...dcerpc.CallOption) (*QueryMaxReclaimableBytesResponse, error)

	// Shrink operation.
	Shrink(context.Context, *ShrinkRequest, ...dcerpc.CallOption) (*ShrinkResponse, error)

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

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

IVdsVolumeShrink interface.

func NewVolumeShrinkClient

func NewVolumeShrinkClient(ctx context.Context, cc dcerpc.Conn, opts ...dcerpc.Option) (VolumeShrinkClient, error)

type VolumeShrinkServer

type VolumeShrinkServer interface {

	// IUnknown base class.
	iunknown.UnknownServer

	// The QueryMaxReclaimableBytes method retrieves the maximum number of bytes that can
	// be reclaimed from the current volume.
	//
	// 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.
	QueryMaxReclaimableBytes(context.Context, *QueryMaxReclaimableBytesRequest) (*QueryMaxReclaimableBytesResponse, error)

	// Shrink operation.
	Shrink(context.Context, *ShrinkRequest) (*ShrinkResponse, error)
}

IVdsVolumeShrink server interface.

Jump to

Keyboard shortcuts

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