iclustercleanup

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// IClusterCleanup interface identifier d6105110-8917-41a5-aa32-8e0aa2933dc9
	ClusterCleanupIID = &dcom.IID{Data1: 0xd6105110, Data2: 0x8917, Data3: 0x41a5, Data4: []byte{0xaa, 0x32, 0x8e, 0x0a, 0xa2, 0x93, 0x3d, 0xc9}}
	// Syntax UUID
	ClusterCleanupSyntaxUUID = &uuid.UUID{TimeLow: 0xd6105110, TimeMid: 0x8917, TimeHiAndVersion: 0x41a5, ClockSeqHiAndReserved: 0xaa, ClockSeqLow: 0x32, Node: [6]uint8{0x8e, 0xa, 0xa2, 0x93, 0x3d, 0xc9}}
	// Syntax ID
	ClusterCleanupSyntaxV0_0 = &dcerpc.SyntaxID{IfUUID: ClusterCleanupSyntaxUUID, IfVersionMajor: 0, IfVersionMinor: 0}
)
View Source
var (
	// import guard
	GoPackage = "dcom/csvp"
)

Functions

func ClusterCleanupServerHandle

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

func NewClusterCleanupServerHandle

func NewClusterCleanupServerHandle(o ClusterCleanupServer) dcerpc.ServerHandle

func RegisterClusterCleanupServer

func RegisterClusterCleanupServer(conn dcerpc.Conn, o ClusterCleanupServer, opts ...dcerpc.Option)

Types

type CleanupEvictedNodeRequest

type CleanupEvictedNodeRequest struct {
	// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
	This *dcom.ORPCThis `idl:"name:This" json:"this"`
	// DelayBeforeCleanup: The number of milliseconds that the server MUST delay before
	// cleanup is started on the target server. If this value is zero, the server is cleaned
	// up immediately.
	DelayBeforeCleanup uint32 `idl:"name:DelayBeforeCleanup" json:"delay_before_cleanup"`
	// TimeOut: The number of milliseconds that the server MUST wait for cleanup to complete.
	// This time-out is independent of the preceding delay; therefore, if DelayBeforeCleanup
	// is greater than TimeOut, this method will time out. However, after cleanup is initiated,
	// cleanup will run to completion regardless of the method waiting.
	Timeout uint32 `idl:"name:TimeOut" json:"timeout"`
	// Flags: A set of bit flags specifying the requested actions to be taken during cleanup.
	// This parameter MUST be set to at least one of the following values.
	//
	//	+----------------------------------------------------------+----------------------------------------------------------------------+
	//	|                                                          |                                                                      |
	//	|                          VALUE                           |                               MEANING                                |
	//	|                                                          |                                                                      |
	//	+----------------------------------------------------------+----------------------------------------------------------------------+
	//	+----------------------------------------------------------+----------------------------------------------------------------------+
	//	| CLUSTERCLEANUP_STOP_CLUSTER_SERVICE 0x00000000           | Issue a stop command to the cluster service and wait for it to stop. |
	//	+----------------------------------------------------------+----------------------------------------------------------------------+
	//	| CLUSTERCLEANUP_DONT_STOP_CLUSTER_SERVICE 0x00000001      | Do not issue a stop command to the cluster service.                  |
	//	+----------------------------------------------------------+----------------------------------------------------------------------+
	//	| CLUSTERCLEANUP_DONT_WAIT_CLUSTER_SERVICE_STOP 0x00000002 | Do not wait for the cluster service to stop.                         |
	//	+----------------------------------------------------------+----------------------------------------------------------------------+
	Flags uint32 `idl:"name:Flags" json:"flags"`
}

CleanupEvictedNodeRequest structure represents the CleanUpEvictedNode operation request

func (*CleanupEvictedNodeRequest) MarshalNDR

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

func (*CleanupEvictedNodeRequest) UnmarshalNDR

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

type CleanupEvictedNodeResponse

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

CleanupEvictedNodeResponse structure represents the CleanUpEvictedNode operation response

func (*CleanupEvictedNodeResponse) MarshalNDR

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

func (*CleanupEvictedNodeResponse) UnmarshalNDR

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

type ClearPRRequest

type ClearPRRequest struct {
	// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
	This *dcom.ORPCThis `idl:"name:This" json:"this"`
	// DeviceNumber:  The number of the disk to act on.
	DeviceNumber uint32 `idl:"name:DeviceNumber" json:"device_number"`
}

ClearPRRequest structure represents the ClearPR operation request

func (*ClearPRRequest) MarshalNDR

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

func (*ClearPRRequest) UnmarshalNDR

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

type ClearPRResponse

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

ClearPRResponse structure represents the ClearPR operation response

func (*ClearPRResponse) MarshalNDR

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

func (*ClearPRResponse) UnmarshalNDR

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

type ClusterCleanupClient

type ClusterCleanupClient interface {

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

	// The CleanUpEvictedNode method removes all persistent artifacts that exist on the
	// server after it is evicted from a cluster.
	//
	// This method is idempotent. After it is invoked, the target server can no longer be
	// a server for the Failover Cluster: Cluster Management Remote Protocol (ClusAPI) ([MS-CMRP])
	// until the server is reconfigured as a member of a cluster by using implementation-specific
	// methods between servers.
	//
	// Return Values: A signed 32-bit value that indicates return status. If the method
	// returns a negative value, it has failed. Zero or positive values indicate success,
	// with the lower 16 bits in positive nonzero values containing warnings or flags defined
	// in the method implementation. For more information about Win32 error codes and HRESULT
	// values, see [MS-ERREF] sections 2.2 and 2.1.
	//
	//	+-------------------------+---------------------------------------------------------------------------+
	//	|         RETURN          |                                                                           |
	//	|       VALUE/CODE        |                                DESCRIPTION                                |
	//	|                         |                                                                           |
	//	+-------------------------+---------------------------------------------------------------------------+
	//	+-------------------------+---------------------------------------------------------------------------+
	//	| 0x00000000 S_OK         | The call was successful.                                                  |
	//	+-------------------------+---------------------------------------------------------------------------+
	//	| 0x80070102 WAIT_TIMEOUT | The Cleanup Timer (section 3.8.2.2) expired before cleanup was completed. |
	//	+-------------------------+---------------------------------------------------------------------------+
	//
	// Exceptions Thrown: No exceptions are thrown beyond those thrown by the underlying
	// RPC protocol [MS-RPCE].
	//
	// The opnum field value for this method is 3.
	CleanupEvictedNode(context.Context, *CleanupEvictedNodeRequest, ...dcerpc.CallOption) (*CleanupEvictedNodeResponse, error)

	// The ClearPR method performs a SCSI PERSISTENT RESERVE OUT command (see [SPC-3] section
	// 6.12) with a REGISTER AND IGNORE EXISTING KEY action, followed by a CLEAR action.
	//
	// Return Values:  A signed 32-bit value that indicates return status. If the method
	// returns a negative value, it has failed. Zero or positive values indicate success,
	// with the lower 16 bits in positive nonzero values containing warnings or flags defined
	// in the method implementation. For more information about Win32 error codes and HRESULT
	// values, see [MS-ERREF] sections 2.2 and 2.1.
	//
	//	+---------------------------------+--------------------------+
	//	|             RETURN              |                          |
	//	|           VALUE/CODE            |       DESCRIPTION        |
	//	|                                 |                          |
	//	+---------------------------------+--------------------------+
	//	+---------------------------------+--------------------------+
	//	| 0x00000000 S_OK                 | The call was successful. |
	//	+---------------------------------+--------------------------+
	//	| 0x80070002 ERROR_FILE_NOT_FOUND | The disk was not found.  |
	//	+---------------------------------+--------------------------+
	//
	// Exceptions Thrown: No exceptions are thrown beyond those thrown by the underlying
	// RPC protocol [MS-RPCE].
	//
	// The opnum field value for this method is 4.
	ClearPR(context.Context, *ClearPRRequest, ...dcerpc.CallOption) (*ClearPRResponse, error)

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

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

IClusterCleanup interface.

func NewClusterCleanupClient

func NewClusterCleanupClient(ctx context.Context, cc dcerpc.Conn, opts ...dcerpc.Option) (ClusterCleanupClient, error)

type ClusterCleanupServer

type ClusterCleanupServer interface {

	// IUnknown base class.
	iunknown.UnknownServer

	// The CleanUpEvictedNode method removes all persistent artifacts that exist on the
	// server after it is evicted from a cluster.
	//
	// This method is idempotent. After it is invoked, the target server can no longer be
	// a server for the Failover Cluster: Cluster Management Remote Protocol (ClusAPI) ([MS-CMRP])
	// until the server is reconfigured as a member of a cluster by using implementation-specific
	// methods between servers.
	//
	// Return Values: A signed 32-bit value that indicates return status. If the method
	// returns a negative value, it has failed. Zero or positive values indicate success,
	// with the lower 16 bits in positive nonzero values containing warnings or flags defined
	// in the method implementation. For more information about Win32 error codes and HRESULT
	// values, see [MS-ERREF] sections 2.2 and 2.1.
	//
	//	+-------------------------+---------------------------------------------------------------------------+
	//	|         RETURN          |                                                                           |
	//	|       VALUE/CODE        |                                DESCRIPTION                                |
	//	|                         |                                                                           |
	//	+-------------------------+---------------------------------------------------------------------------+
	//	+-------------------------+---------------------------------------------------------------------------+
	//	| 0x00000000 S_OK         | The call was successful.                                                  |
	//	+-------------------------+---------------------------------------------------------------------------+
	//	| 0x80070102 WAIT_TIMEOUT | The Cleanup Timer (section 3.8.2.2) expired before cleanup was completed. |
	//	+-------------------------+---------------------------------------------------------------------------+
	//
	// Exceptions Thrown: No exceptions are thrown beyond those thrown by the underlying
	// RPC protocol [MS-RPCE].
	//
	// The opnum field value for this method is 3.
	CleanupEvictedNode(context.Context, *CleanupEvictedNodeRequest) (*CleanupEvictedNodeResponse, error)

	// The ClearPR method performs a SCSI PERSISTENT RESERVE OUT command (see [SPC-3] section
	// 6.12) with a REGISTER AND IGNORE EXISTING KEY action, followed by a CLEAR action.
	//
	// Return Values:  A signed 32-bit value that indicates return status. If the method
	// returns a negative value, it has failed. Zero or positive values indicate success,
	// with the lower 16 bits in positive nonzero values containing warnings or flags defined
	// in the method implementation. For more information about Win32 error codes and HRESULT
	// values, see [MS-ERREF] sections 2.2 and 2.1.
	//
	//	+---------------------------------+--------------------------+
	//	|             RETURN              |                          |
	//	|           VALUE/CODE            |       DESCRIPTION        |
	//	|                                 |                          |
	//	+---------------------------------+--------------------------+
	//	+---------------------------------+--------------------------+
	//	| 0x00000000 S_OK                 | The call was successful. |
	//	+---------------------------------+--------------------------+
	//	| 0x80070002 ERROR_FILE_NOT_FOUND | The disk was not found.  |
	//	+---------------------------------+--------------------------+
	//
	// Exceptions Thrown: No exceptions are thrown beyond those thrown by the underlying
	// RPC protocol [MS-RPCE].
	//
	// The opnum field value for this method is 4.
	ClearPR(context.Context, *ClearPRRequest) (*ClearPRResponse, error)
}

IClusterCleanup server interface.

Jump to

Keyboard shortcuts

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