ivdsdiskonline

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: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// IVdsDiskOnline interface identifier 90681b1d-6a7f-48e8-9061-31b7aa125322
	DiskOnlineIID = &dcom.IID{Data1: 0x90681b1d, Data2: 0x6a7f, Data3: 0x48e8, Data4: []byte{0x90, 0x61, 0x31, 0xb7, 0xaa, 0x12, 0x53, 0x22}}
	// Syntax UUID
	DiskOnlineSyntaxUUID = &uuid.UUID{TimeLow: 0x90681b1d, TimeMid: 0x6a7f, TimeHiAndVersion: 0x48e8, ClockSeqHiAndReserved: 0x90, ClockSeqLow: 0x61, Node: [6]uint8{0x31, 0xb7, 0xaa, 0x12, 0x53, 0x22}}
	// Syntax ID
	DiskOnlineSyntaxV0_0 = &dcerpc.SyntaxID{IfUUID: DiskOnlineSyntaxUUID, IfVersionMajor: 0, IfVersionMinor: 0}
)
View Source
var (
	// import guard
	GoPackage = "dcom/vds"
)

Functions

func DiskOnlineServerHandle

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

func NewDiskOnlineServerHandle

func NewDiskOnlineServerHandle(o DiskOnlineServer) dcerpc.ServerHandle

func RegisterDiskOnlineServer

func RegisterDiskOnlineServer(conn dcerpc.Conn, o DiskOnlineServer, opts ...dcerpc.Option)

Types

type DiskOnlineClient

type DiskOnlineClient interface {

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

	// Online operation.
	Online(context.Context, *OnlineRequest, ...dcerpc.CallOption) (*OnlineResponse, error)

	// The Offline method brings a disk to the offline state. An offline disk exposes no
	// volume devices.
	//
	// This method has no parameters.
	//
	// 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.
	//
	// ERROR_SUCCESS(0x00000000)
	Offline(context.Context, *OfflineRequest, ...dcerpc.CallOption) (*OfflineResponse, error)

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

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

IVdsDiskOnline interface.

func NewDiskOnlineClient

func NewDiskOnlineClient(ctx context.Context, cc dcerpc.Conn, opts ...dcerpc.Option) (DiskOnlineClient, error)

type DiskOnlineServer

type DiskOnlineServer interface {

	// IUnknown base class.
	iunknown.UnknownServer

	// Online operation.
	Online(context.Context, *OnlineRequest) (*OnlineResponse, error)

	// The Offline method brings a disk to the offline state. An offline disk exposes no
	// volume devices.
	//
	// This method has no parameters.
	//
	// 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.
	//
	// ERROR_SUCCESS(0x00000000)
	Offline(context.Context, *OfflineRequest) (*OfflineResponse, error)
}

IVdsDiskOnline server interface.

type OfflineRequest

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

OfflineRequest structure represents the Offline operation request

func (*OfflineRequest) MarshalNDR

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

func (*OfflineRequest) UnmarshalNDR

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

type OfflineResponse

type OfflineResponse 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 Offline return value.
	Return int32 `idl:"name:Return" json:"return"`
}

OfflineResponse structure represents the Offline operation response

func (*OfflineResponse) MarshalNDR

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

func (*OfflineResponse) UnmarshalNDR

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

type OnlineRequest

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

OnlineRequest structure represents the Online operation request

func (*OnlineRequest) MarshalNDR

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

func (*OnlineRequest) UnmarshalNDR

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

type OnlineResponse

type OnlineResponse 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 Online return value.
	Return int32 `idl:"name:Return" json:"return"`
}

OnlineResponse structure represents the Online operation response

func (*OnlineResponse) MarshalNDR

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

func (*OnlineResponse) UnmarshalNDR

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