iwbembackuprestoreex

package
v1.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 29, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// IWbemBackupRestoreEx interface identifier a359dec5-e813-4834-8a2a-ba7f1d777d76
	BackupRestoreExIID = &dcom.IID{Data1: 0xa359dec5, Data2: 0xe813, Data3: 0x4834, Data4: []byte{0x8a, 0x2a, 0xba, 0x7f, 0x1d, 0x77, 0x7d, 0x76}}
	// Syntax UUID
	BackupRestoreExSyntaxUUID = &uuid.UUID{TimeLow: 0xa359dec5, TimeMid: 0xe813, TimeHiAndVersion: 0x4834, ClockSeqHiAndReserved: 0x8a, ClockSeqLow: 0x2a, Node: [6]uint8{0xba, 0x7f, 0x1d, 0x77, 0x7d, 0x76}}
	// Syntax ID
	BackupRestoreExSyntaxV0_0 = &dcerpc.SyntaxID{IfUUID: BackupRestoreExSyntaxUUID, IfVersionMajor: 0, IfVersionMinor: 0}
)
View Source
var (
	// import guard
	GoPackage = "dcom/wmi"
)

Functions

func BackupRestoreExServerHandle

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

func NewBackupRestoreExServerHandle

func NewBackupRestoreExServerHandle(o BackupRestoreExServer) dcerpc.ServerHandle

func RegisterBackupRestoreExServer

func RegisterBackupRestoreExServer(conn dcerpc.Conn, o BackupRestoreExServer, opts ...dcerpc.Option)

Types

type BackupRestoreExClient

type BackupRestoreExClient interface {

	// IWbemBackupRestore retrieval method.
	BackupRestore() iwbembackuprestore.BackupRestoreClient

	// On the IWbemBackupRestoreEx::Pause method invocation, the server MUST set the IsServerPaused
	// flag to True and MUST persist the CIM database in a consistent state.
	//
	// This method has no parameters.
	//
	// Return Values: This method MUST return an HRESULT value that MUST indicate the status
	// of the method call. The server MUST return WBEM_S_NO_ERROR (specified in section
	// 2.2.11) to indicate the successful completion of the method.
	//
	// If Pause is called and the IsServerPaused flag is set to True, the server MUST return
	// WBEM_E_INVALID_OPERATION. In case of any other failure, the server MUST return an
	// HRESULT whose S (severity) bit is set as specified in [MS-ERREF] section 2.1. The
	// actual HRESULT value is implementation dependent.
	//
	// The IWbemBackupRestoreEx::Pause method MUST be called on the interface that is obtained
	// from the DCOM Remote Protocol activation of the CLSID_WbemBackupRestore interface,
	// as specified in this section.
	Pause(context.Context, *PauseRequest, ...dcerpc.CallOption) (*PauseResponse, error)

	// On the IWbemBackupRestoreEx::Resume method invocation, the server MUST set the IsServerPaused
	// flag to False.
	//
	// This method has no parameters.
	//
	// Return Values: This method MUST return an HRESULT value that MUST indicate the status
	// of the method call. The server MUST return a WBEM_S_NO_ERROR (specified in section
	// 2.2.11) to indicate the successful completion of the method.
	//
	// If Resume is called and the IsServerPaused flag is set to False, the server MUST
	// return WBEM_E_INVALID_OPERATION.
	//
	// In case of any other failure, the server MUST return an HRESULT whose S (severity)
	// bit is set as specified in [MS-ERREF] section 2.1. The actual HRESULT value is implementation
	// dependent.
	Resume(context.Context, *ResumeRequest, ...dcerpc.CallOption) (*ResumeResponse, error)

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

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

IWbemBackupRestoreEx interface.

func NewBackupRestoreExClient

func NewBackupRestoreExClient(ctx context.Context, cc dcerpc.Conn, opts ...dcerpc.Option) (BackupRestoreExClient, error)

type BackupRestoreExServer

type BackupRestoreExServer interface {

	// IWbemBackupRestore base class.
	iwbembackuprestore.BackupRestoreServer

	// On the IWbemBackupRestoreEx::Pause method invocation, the server MUST set the IsServerPaused
	// flag to True and MUST persist the CIM database in a consistent state.
	//
	// This method has no parameters.
	//
	// Return Values: This method MUST return an HRESULT value that MUST indicate the status
	// of the method call. The server MUST return WBEM_S_NO_ERROR (specified in section
	// 2.2.11) to indicate the successful completion of the method.
	//
	// If Pause is called and the IsServerPaused flag is set to True, the server MUST return
	// WBEM_E_INVALID_OPERATION. In case of any other failure, the server MUST return an
	// HRESULT whose S (severity) bit is set as specified in [MS-ERREF] section 2.1. The
	// actual HRESULT value is implementation dependent.
	//
	// The IWbemBackupRestoreEx::Pause method MUST be called on the interface that is obtained
	// from the DCOM Remote Protocol activation of the CLSID_WbemBackupRestore interface,
	// as specified in this section.
	Pause(context.Context, *PauseRequest) (*PauseResponse, error)

	// On the IWbemBackupRestoreEx::Resume method invocation, the server MUST set the IsServerPaused
	// flag to False.
	//
	// This method has no parameters.
	//
	// Return Values: This method MUST return an HRESULT value that MUST indicate the status
	// of the method call. The server MUST return a WBEM_S_NO_ERROR (specified in section
	// 2.2.11) to indicate the successful completion of the method.
	//
	// If Resume is called and the IsServerPaused flag is set to False, the server MUST
	// return WBEM_E_INVALID_OPERATION.
	//
	// In case of any other failure, the server MUST return an HRESULT whose S (severity)
	// bit is set as specified in [MS-ERREF] section 2.1. The actual HRESULT value is implementation
	// dependent.
	Resume(context.Context, *ResumeRequest) (*ResumeResponse, error)
}

IWbemBackupRestoreEx server interface.

type PauseRequest

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

PauseRequest structure represents the Pause operation request

func (*PauseRequest) MarshalNDR

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

func (*PauseRequest) UnmarshalNDR

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

type PauseResponse

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

PauseResponse structure represents the Pause operation response

func (*PauseResponse) MarshalNDR

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

func (*PauseResponse) UnmarshalNDR

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

type ResumeRequest

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

ResumeRequest structure represents the Resume operation request

func (*ResumeRequest) MarshalNDR

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

func (*ResumeRequest) UnmarshalNDR

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

type ResumeResponse

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

ResumeResponse structure represents the Resume operation response

func (*ResumeResponse) MarshalNDR

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

func (*ResumeResponse) UnmarshalNDR

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