Documentation ¶
Index ¶
- Variables
- func DiskOnlineServerHandle(ctx context.Context, o DiskOnlineServer, opNum int, r ndr.Reader) (dcerpc.Operation, error)
- func NewDiskOnlineServerHandle(o DiskOnlineServer) dcerpc.ServerHandle
- func RegisterDiskOnlineServer(conn dcerpc.Conn, o DiskOnlineServer, opts ...dcerpc.Option)
- type DiskOnlineClient
- type DiskOnlineServer
- type OfflineRequest
- type OfflineResponse
- type OnlineRequest
- type OnlineResponse
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 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 ¶
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 (*OfflineRequest) UnmarshalNDR ¶
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 (*OfflineResponse) UnmarshalNDR ¶
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 (*OnlineRequest) UnmarshalNDR ¶
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 (*OnlineResponse) UnmarshalNDR ¶
Click to show internal directories.
Click to hide internal directories.