iclusterfirewall

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// IClusterFirewall interface identifier f1d6c29c-8fbe-4691-8724-f6d8deaeafc8
	ClusterFirewallIID = &dcom.IID{Data1: 0xf1d6c29c, Data2: 0x8fbe, Data3: 0x4691, Data4: []byte{0x87, 0x24, 0xf6, 0xd8, 0xde, 0xae, 0xaf, 0xc8}}
	// Syntax UUID
	ClusterFirewallSyntaxUUID = &uuid.UUID{TimeLow: 0xf1d6c29c, TimeMid: 0x8fbe, TimeHiAndVersion: 0x4691, ClockSeqHiAndReserved: 0x87, ClockSeqLow: 0x24, Node: [6]uint8{0xf6, 0xd8, 0xde, 0xae, 0xaf, 0xc8}}
	// Syntax ID
	ClusterFirewallSyntaxV0_0 = &dcerpc.SyntaxID{IfUUID: ClusterFirewallSyntaxUUID, IfVersionMajor: 0, IfVersionMinor: 0}
)
View Source
var (
	// import guard
	GoPackage = "dcom/csvp"
)

Functions

func ClusterFirewallServerHandle

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

func NewClusterFirewallServerHandle

func NewClusterFirewallServerHandle(o ClusterFirewallServer) dcerpc.ServerHandle

func RegisterClusterFirewallServer

func RegisterClusterFirewallServer(conn dcerpc.Conn, o ClusterFirewallServer, opts ...dcerpc.Option)

Types

type ClusterFirewallClient

type ClusterFirewallClient interface {

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

	// The InitializeAdapterConfiguration method initializes the server Firewall State to
	// process subsequent calls of GetNextAdapterFirewallConfiguration.
	//
	// This method is called at least once before GetNextAdapterFirewallConfiguration.
	//
	// 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.
	InitializeAdapterConfiguration(context.Context, *InitializeAdapterConfigurationRequest, ...dcerpc.CallOption) (*InitializeAdapterConfigurationResponse, error)

	// The GetNextAdapterFirewallConfiguration method returns information about a specific
	// network adapter attached to the system.
	//
	// 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.                                                         |
	//	+-------------------------+----------------------------------------------------------------------------------+
	//	| 0x80070057 E_INVALIDARG | The value the client specified in idx is greater than or equal                   |
	//	|                         | to the cRetAdapters value returned by the previous call to                       |
	//	|                         | InitializeAdapterConfiguration.                                                  |
	//	+-------------------------+----------------------------------------------------------------------------------+
	//	| 0x8000FFFF E_UNEXPECTED | InitializeAdapterConfiguration has not yet been called.                          |
	//	+-------------------------+----------------------------------------------------------------------------------+
	//
	// 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.
	//
	// The server returns the following information to the client:
	//
	// * The output parameters set to the values specified previously.
	GetNextAdapterFirewallConfiguration(context.Context, *GetNextAdapterFirewallConfigurationRequest, ...dcerpc.CallOption) (*GetNextAdapterFirewallConfigurationResponse, error)

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

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

IClusterFirewall interface.

func NewClusterFirewallClient

func NewClusterFirewallClient(ctx context.Context, cc dcerpc.Conn, opts ...dcerpc.Option) (ClusterFirewallClient, error)

type ClusterFirewallServer

type ClusterFirewallServer interface {

	// IUnknown base class.
	iunknown.UnknownServer

	// The InitializeAdapterConfiguration method initializes the server Firewall State to
	// process subsequent calls of GetNextAdapterFirewallConfiguration.
	//
	// This method is called at least once before GetNextAdapterFirewallConfiguration.
	//
	// 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.
	InitializeAdapterConfiguration(context.Context, *InitializeAdapterConfigurationRequest) (*InitializeAdapterConfigurationResponse, error)

	// The GetNextAdapterFirewallConfiguration method returns information about a specific
	// network adapter attached to the system.
	//
	// 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.                                                         |
	//	+-------------------------+----------------------------------------------------------------------------------+
	//	| 0x80070057 E_INVALIDARG | The value the client specified in idx is greater than or equal                   |
	//	|                         | to the cRetAdapters value returned by the previous call to                       |
	//	|                         | InitializeAdapterConfiguration.                                                  |
	//	+-------------------------+----------------------------------------------------------------------------------+
	//	| 0x8000FFFF E_UNEXPECTED | InitializeAdapterConfiguration has not yet been called.                          |
	//	+-------------------------+----------------------------------------------------------------------------------+
	//
	// 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.
	//
	// The server returns the following information to the client:
	//
	// * The output parameters set to the values specified previously.
	GetNextAdapterFirewallConfiguration(context.Context, *GetNextAdapterFirewallConfigurationRequest) (*GetNextAdapterFirewallConfigurationResponse, error)
}

IClusterFirewall server interface.

type GetNextAdapterFirewallConfigurationRequest

type GetNextAdapterFirewallConfigurationRequest struct {
	// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
	This *dcom.ORPCThis `idl:"name:This" json:"this"`
	// idx: A 32-bit unsigned integer that indicates the index of the adapter information
	// to retrieve. The server MUST fail this method with error 0x80070057 (E_INVALIDARG)
	// if idx is greater than or equal to the cRetAdapters value returned by the previous
	// call to InitializeAdapterConfiguration (Opnum 3).
	Index uint32 `idl:"name:idx" json:"index"`
}

GetNextAdapterFirewallConfigurationRequest structure represents the GetNextAdapterFirewallConfiguration operation request

func (*GetNextAdapterFirewallConfigurationRequest) MarshalNDR

func (*GetNextAdapterFirewallConfigurationRequest) UnmarshalNDR

type GetNextAdapterFirewallConfigurationResponse

type GetNextAdapterFirewallConfigurationResponse struct {
	// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
	That *dcom.ORPCThat `idl:"name:That" json:"that"`
	// adapterId: A GUID that uniquely identifies the network adapter on the system. Upon
	// successful completion of this method, the server MUST set this value. If the method
	// fails, the client MUST ignore this value.
	AdapterID *dtyp.GUID `idl:"name:adapterId" json:"adapter_id"`
	// adapterProfile: The firewall profile assigned to the network adapter. Upon successful
	// completion of this method, the server MUST set this value to one of the specified
	// values of CLUSTER_NETWORK_PROFILE. If the method fails, the client MUST ignore this
	// value.
	AdapterProfile csvp.ClusterNetworkProfile `idl:"name:adapterProfile" json:"adapter_profile"`
	// serverRulesEnabled: An output parameter that indicates whether the server is suitable
	// for server-to-server failover cluster communication. Upon successful completion of
	// this method, the server MUST set this value to TRUE if the server is suitable or
	// to FALSE if the server is not suitable. When the server firewall enforces policies
	// specified in [MS-FASP], the server sets this value to TRUE if the group of rules
	// with the localized name "Failover Clusters" is enabled. If the method fails, the
	// client MUST ignore this value.
	//
	//	+----------------+------------------------------------------------------------------+
	//	|                |                                                                  |
	//	|     VALUE      |                             MEANING                              |
	//	|                |                                                                  |
	//	+----------------+------------------------------------------------------------------+
	//	+----------------+------------------------------------------------------------------+
	//	| TRUE -128 — -1 | Firewall settings allow the traffic specified previously.        |
	//	+----------------+------------------------------------------------------------------+
	//	| FALSE 0        | Firewall settings do not allow the traffic specified previously. |
	//	+----------------+------------------------------------------------------------------+
	//	| TRUE 1 — 128   | Firewall settings allow the traffic specified previously.        |
	//	+----------------+------------------------------------------------------------------+
	ServerRulesEnabled bool `idl:"name:serverRulesEnabled" json:"server_rules_enabled"`
	// managementRulesEnabled: An output parameter that indicates whether the server is
	// compatible with the failover cluster management components. Upon successful completion
	// of this method, the server MUST set this value to TRUE if the server is compatible
	// or to FALSE if the server is not compatible. When the server firewall enforces policies
	// specified in [MS-FASP], the server SHOULD set this value to TRUE if the group of
	// rules with the localized name "Failover Cluster Manager" is enabled. If the method
	// fails, the client MUST ignore this value.
	//
	//	+----------------+------------------------------------------------------------------+
	//	|                |                                                                  |
	//	|     VALUE      |                             MEANING                              |
	//	|                |                                                                  |
	//	+----------------+------------------------------------------------------------------+
	//	+----------------+------------------------------------------------------------------+
	//	| TRUE -128 — -1 | Firewall settings allow the traffic specified previously.        |
	//	+----------------+------------------------------------------------------------------+
	//	| FALSE 0        | Firewall settings do not allow the traffic specified previously. |
	//	+----------------+------------------------------------------------------------------+
	//	| TRUE 1 — 128   | Firewall settings allow the traffic specified previously.        |
	//	+----------------+------------------------------------------------------------------+
	ManagementRulesEnabled bool `idl:"name:managementRulesEnabled" json:"management_rules_enabled"`
	// commonRulesEnabled: An output parameter that indicates whether the server is compatible
	// with the failover cluster components common to failover cluster management and server-to-server
	// failover cluster communications. Upon successful completion of this method, the server
	// MUST set this value to TRUE if the server is compatible or to FALSE if the server
	// is not compatible. When the server firewall enforces policies specified in [MS-FASP],
	// the server SHOULD set this value to TRUE if the group of rules with the localized
	// name "Failover Cluster Common" is enabled. If the method fails, the client MUST ignore
	// this value.
	//
	//	+----------------+------------------------------------------------------------------+
	//	|                |                                                                  |
	//	|     VALUE      |                             MEANING                              |
	//	|                |                                                                  |
	//	+----------------+------------------------------------------------------------------+
	//	+----------------+------------------------------------------------------------------+
	//	| TRUE -128 — -1 | Firewall settings allow the traffic specified previously.        |
	//	+----------------+------------------------------------------------------------------+
	//	| FALSE 0        | Firewall settings do not allow the traffic specified previously. |
	//	+----------------+------------------------------------------------------------------+
	//	| TRUE 1 — 128   | Firewall settings allow the traffic specified previously.        |
	//	+----------------+------------------------------------------------------------------+
	CommonRulesEnabled bool `idl:"name:commonRulesEnabled" json:"common_rules_enabled"`
	// Return: The GetNextAdapterFirewallConfiguration return value.
	Return int32 `idl:"name:Return" json:"return"`
}

GetNextAdapterFirewallConfigurationResponse structure represents the GetNextAdapterFirewallConfiguration operation response

func (*GetNextAdapterFirewallConfigurationResponse) MarshalNDR

func (*GetNextAdapterFirewallConfigurationResponse) UnmarshalNDR

type InitializeAdapterConfigurationRequest

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

InitializeAdapterConfigurationRequest structure represents the InitializeAdapterConfiguration operation request

func (*InitializeAdapterConfigurationRequest) MarshalNDR

func (*InitializeAdapterConfigurationRequest) UnmarshalNDR

type InitializeAdapterConfigurationResponse

type InitializeAdapterConfigurationResponse struct {
	// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
	That *dcom.ORPCThat `idl:"name:That" json:"that"`
	// cRetAdapters: A pointer to an unsigned 32-bit integer indicating the number of adapters
	// in the network adapter index of the Firewall State. Upon successful completion of
	// this method, the server MUST set this value. If the method fails, the client MUST
	// ignore this value.
	ReturnAdaptersCount uint32 `idl:"name:cRetAdapters" json:"return_adapters_count"`
	// Return: The InitializeAdapterConfiguration return value.
	Return int32 `idl:"name:Return" json:"return"`
}

InitializeAdapterConfigurationResponse structure represents the InitializeAdapterConfiguration operation response

func (*InitializeAdapterConfigurationResponse) MarshalNDR

func (*InitializeAdapterConfigurationResponse) UnmarshalNDR

Jump to

Keyboard shortcuts

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