iclusterlogex

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// IClusterLogEx interface identifier bd7c23c2-c805-457c-8f86-d17fe6b9d19f
	ClusterLogExIID = &dcom.IID{Data1: 0xbd7c23c2, Data2: 0xc805, Data3: 0x457c, Data4: []byte{0x8f, 0x86, 0xd1, 0x7f, 0xe6, 0xb9, 0xd1, 0x9f}}
	// Syntax UUID
	ClusterLogExSyntaxUUID = &uuid.UUID{TimeLow: 0xbd7c23c2, TimeMid: 0xc805, TimeHiAndVersion: 0x457c, ClockSeqHiAndReserved: 0x8f, ClockSeqLow: 0x86, Node: [6]uint8{0xd1, 0x7f, 0xe6, 0xb9, 0xd1, 0x9f}}
	// Syntax ID
	ClusterLogExSyntaxV0_0 = &dcerpc.SyntaxID{IfUUID: ClusterLogExSyntaxUUID, IfVersionMajor: 0, IfVersionMinor: 0}
)
View Source
var (
	// import guard
	GoPackage = "dcom/csvp"
)

Functions

func ClusterLogExServerHandle

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

func NewClusterLogExServerHandle

func NewClusterLogExServerHandle(o ClusterLogExServer) dcerpc.ServerHandle

func RegisterClusterLogExServer

func RegisterClusterLogExServer(conn dcerpc.Conn, o ClusterLogExServer, opts ...dcerpc.Option)

Types

type ClusterLogExClient

type ClusterLogExClient interface {

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

	// The GenerateClusterLog method writes a file that contains diagnostic information
	// about failover clusters for the server on which it executes. The content and format
	// of the file are implementation-specific, but SHOULD contain diagnostic information.
	//
	// 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. |
	//	+-------------------+--------------------------+
	//
	// 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.
	GenerateClusterLog(context.Context, *GenerateClusterLogRequest, ...dcerpc.CallOption) (*GenerateClusterLogResponse, error)

	// The GenerateClusterHealthLog method<47> generates the health log file on cluster
	// nodes. The content and format of the file is implementation-specific but SHOULD contain
	// diagnostic information.
	//
	// Return Values: Return values are the same as the return values for the GenerateClusterLog
	// method specified in section 3.12.4.1.
	//
	//	+-------------------+--------------------------+
	//	|      RETURN       |                          |
	//	|    VALUE/CODE     |       DESCRIPTION        |
	//	|                   |                          |
	//	+-------------------+--------------------------+
	//	+-------------------+--------------------------+
	//	| 0x00000000 S_OK   | The call was successful. |
	//	+-------------------+--------------------------+
	//
	// 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.
	GenerateClusterHealthLog(context.Context, *GenerateClusterHealthLogRequest, ...dcerpc.CallOption) (*GenerateClusterHealthLogResponse, error)

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

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

IClusterLogEx interface.

func NewClusterLogExClient

func NewClusterLogExClient(ctx context.Context, cc dcerpc.Conn, opts ...dcerpc.Option) (ClusterLogExClient, error)

type ClusterLogExServer

type ClusterLogExServer interface {

	// IUnknown base class.
	iunknown.UnknownServer

	// The GenerateClusterLog method writes a file that contains diagnostic information
	// about failover clusters for the server on which it executes. The content and format
	// of the file are implementation-specific, but SHOULD contain diagnostic information.
	//
	// 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. |
	//	+-------------------+--------------------------+
	//
	// 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.
	GenerateClusterLog(context.Context, *GenerateClusterLogRequest) (*GenerateClusterLogResponse, error)

	// The GenerateClusterHealthLog method<47> generates the health log file on cluster
	// nodes. The content and format of the file is implementation-specific but SHOULD contain
	// diagnostic information.
	//
	// Return Values: Return values are the same as the return values for the GenerateClusterLog
	// method specified in section 3.12.4.1.
	//
	//	+-------------------+--------------------------+
	//	|      RETURN       |                          |
	//	|    VALUE/CODE     |       DESCRIPTION        |
	//	|                   |                          |
	//	+-------------------+--------------------------+
	//	+-------------------+--------------------------+
	//	| 0x00000000 S_OK   | The call was successful. |
	//	+-------------------+--------------------------+
	//
	// 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.
	GenerateClusterHealthLog(context.Context, *GenerateClusterHealthLogRequest) (*GenerateClusterHealthLogResponse, error)
}

IClusterLogEx server interface.

type GenerateClusterHealthLogRequest

type GenerateClusterHealthLogRequest struct {
	// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
	This *dcom.ORPCThis `idl:"name:This" json:"this"`
	// SpanMinutes: A value, in minutes, that indicates those values that SHOULD be in the
	// log. Events that occurred in the range of Now to (Now – SpanMinutes) MUST be in
	// the log and no others. If ClusterLogFlagLocalTime is set in the Flags field, Now
	// is the GMT on the server; otherwise, it is the local time on the server.
	SpanMinutes uint32                `idl:"name:SpanMinutes" json:"span_minutes"`
	Flags       csvp.ClusterLogExFlag `idl:"name:flags" json:"flags"`
}

GenerateClusterHealthLogRequest structure represents the GenerateClusterHealthLog operation request

func (*GenerateClusterHealthLogRequest) MarshalNDR

func (*GenerateClusterHealthLogRequest) UnmarshalNDR

type GenerateClusterHealthLogResponse

type GenerateClusterHealthLogResponse struct {
	// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
	That *dcom.ORPCThat `idl:"name:That" json:"that"`
	// LogFilePath: Has the same meaning as parameter LogFilePath for the GenerateClusterLog
	// method specified in section 3.12.4.1.
	LogFilePath *oaut.String `idl:"name:LogFilePath" json:"log_file_path"`
	// Return: The GenerateClusterHealthLog return value.
	Return int32 `idl:"name:Return" json:"return"`
}

GenerateClusterHealthLogResponse structure represents the GenerateClusterHealthLog operation response

func (*GenerateClusterHealthLogResponse) MarshalNDR

func (*GenerateClusterHealthLogResponse) UnmarshalNDR

type GenerateClusterLogRequest

type GenerateClusterLogRequest struct {
	// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
	This        *dcom.ORPCThis        `idl:"name:This" json:"this"`
	SpanMinutes uint32                `idl:"name:SpanMinutes" json:"span_minutes"`
	Flags       csvp.ClusterLogExFlag `idl:"name:flags" json:"flags"`
}

GenerateClusterLogRequest structure represents the GenerateClusterLog operation request

func (*GenerateClusterLogRequest) MarshalNDR

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

func (*GenerateClusterLogRequest) UnmarshalNDR

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

type GenerateClusterLogResponse

type GenerateClusterLogResponse struct {
	// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
	That *dcom.ORPCThat `idl:"name:That" json:"that"`
	// LogFilePath: Upon successful completion of this method, the server MUST set this
	// parameter to the location where the server has exposed a file containing the diagnostic
	// log data. The path is relative to the machine and starts with a share name. The format
	// is "<share>\<filename>" where <share> is a share name, and <filename> is the name
	// of the file or device. The LogFilePath parameter MUST form a valid UncPath if "\\<servername>\"
	// is prepended to its contents. On unsuccessful completion of this method, the client
	// MUST ignore this value.
	LogFilePath *oaut.String `idl:"name:LogFilePath" json:"log_file_path"`
	// Return: The GenerateClusterLog return value.
	Return int32 `idl:"name:Return" json:"return"`
}

GenerateClusterLogResponse structure represents the GenerateClusterLog operation response

func (*GenerateClusterLogResponse) MarshalNDR

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

func (*GenerateClusterLogResponse) UnmarshalNDR

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