Documentation
¶
Index ¶
- Variables
- func NewResourceManagerServerHandle(o ResourceManagerServer) dcerpc.ServerHandle
- func RegisterResourceManagerServer(conn dcerpc.Conn, o ResourceManagerServer, opts ...dcerpc.Option)
- func ResourceManagerServerHandle(ctx context.Context, o ResourceManagerServer, opNum int, r ndr.Reader) (dcerpc.Operation, error)
- type ExportXMLFilesRequest
- type ExportXMLFilesResponse
- type GetCurrentMemoryRequest
- type GetCurrentMemoryResponse
- type GetDependenciesRequest
- type GetDependenciesResponse
- type GetIISAppPoolNamesRequest
- type GetIISAppPoolNamesResponse
- type GetServerNameRequest
- type GetServerNameResponse
- type GetServiceListRequest
- type GetServiceListResponse
- type GetSystemAffinityRequest
- type GetSystemAffinityResponse
- type ImportXMLFilesRequest
- type ImportXMLFilesResponse
- type ResourceManagerClient
- type ResourceManagerServer
- type RestoreXMLFilesRequest
- type RestoreXMLFilesResponse
- type RetrieveEventListRequest
- type RetrieveEventListResponse
- type UnimplementedResourceManagerServer
- func (UnimplementedResourceManagerServer) ExportXMLFiles(context.Context, *ExportXMLFilesRequest) (*ExportXMLFilesResponse, error)
- func (UnimplementedResourceManagerServer) GetCurrentMemory(context.Context, *GetCurrentMemoryRequest) (*GetCurrentMemoryResponse, error)
- func (UnimplementedResourceManagerServer) GetDependencies(context.Context, *GetDependenciesRequest) (*GetDependenciesResponse, error)
- func (UnimplementedResourceManagerServer) GetIISAppPoolNames(context.Context, *GetIISAppPoolNamesRequest) (*GetIISAppPoolNamesResponse, error)
- func (UnimplementedResourceManagerServer) GetServerName(context.Context, *GetServerNameRequest) (*GetServerNameResponse, error)
- func (UnimplementedResourceManagerServer) GetServiceList(context.Context, *GetServiceListRequest) (*GetServiceListResponse, error)
- func (UnimplementedResourceManagerServer) GetSystemAffinity(context.Context, *GetSystemAffinityRequest) (*GetSystemAffinityResponse, error)
- func (UnimplementedResourceManagerServer) ImportXMLFiles(context.Context, *ImportXMLFilesRequest) (*ImportXMLFilesResponse, error)
- func (UnimplementedResourceManagerServer) RestoreXMLFiles(context.Context, *RestoreXMLFilesRequest) (*RestoreXMLFilesResponse, error)
- func (UnimplementedResourceManagerServer) RetrieveEventList(context.Context, *RetrieveEventListRequest) (*RetrieveEventListResponse, error)
Constants ¶
This section is empty.
Variables ¶
var ( // IResourceManager interface identifier c5cebee2-9df5-4cdd-a08c-c2471bc144b4 ResourceManagerIID = &dcom.IID{Data1: 0xc5cebee2, Data2: 0x9df5, Data3: 0x4cdd, Data4: []byte{0xa0, 0x8c, 0xc2, 0x47, 0x1b, 0xc1, 0x44, 0xb4}} // Syntax UUID ResourceManagerSyntaxUUID = &uuid.UUID{TimeLow: 0xc5cebee2, TimeMid: 0x9df5, TimeHiAndVersion: 0x4cdd, ClockSeqHiAndReserved: 0xa0, ClockSeqLow: 0x8c, Node: [6]uint8{0xc2, 0x47, 0x1b, 0xc1, 0x44, 0xb4}} // Syntax ID ResourceManagerSyntaxV0_0 = &dcerpc.SyntaxID{IfUUID: ResourceManagerSyntaxUUID, IfVersionMajor: 0, IfVersionMinor: 0} )
var (
// import guard
GoPackage = "dcom/wsrm"
)
Functions ¶
func NewResourceManagerServerHandle ¶
func NewResourceManagerServerHandle(o ResourceManagerServer) dcerpc.ServerHandle
func RegisterResourceManagerServer ¶
func RegisterResourceManagerServer(conn dcerpc.Conn, o ResourceManagerServer, opts ...dcerpc.Option)
Types ¶
type ExportXMLFilesRequest ¶
type ExportXMLFilesRequest struct {
// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
This *dcom.ORPCThis `idl:"name:This" json:"this"`
}
ExportXMLFilesRequest structure represents the ExportXMLFiles operation request
func (*ExportXMLFilesRequest) MarshalNDR ¶
func (*ExportXMLFilesRequest) UnmarshalNDR ¶
type ExportXMLFilesResponse ¶
type ExportXMLFilesResponse struct {
// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
That *dcom.ORPCThat `idl:"name:That" json:"that"`
// pbstrPMCXml: A pointer to a string that returns process matching criteria (PMC) in
// the form of a ProcessMatchingCriteriaCollection element (section 2.2.5.25). For an
// example, see ProcessMatchingCriteriaCollection example (section 4.2.21).
PMCXML *oaut.String `idl:"name:pbstrPMCXml" json:"pmc_xml"`
// pbstrPolicyXml: A pointer to a string that returns a resource policy in the form
// of a PolicyCollection element (section 2.2.5.22).
PolicyXML *oaut.String `idl:"name:pbstrPolicyXml" json:"policy_xml"`
// pbstrCalendarXml: A pointer to a string that returns a calendar in the form of a
// CalendarsCollection element (section 2.2.5.11). For an example, see CalendarsCollection
// Example (section 4.2.8).
CalendarXML *oaut.String `idl:"name:pbstrCalendarXml" json:"calendar_xml"`
// pbstrConditionalXml: A pointer to a string that returns a condition in the form of
// a ConditionalPolicy element (section 2.2.5.12). For an example, see section 4.2.9.
ConditionalXML *oaut.String `idl:"name:pbstrConditionalXml" json:"conditional_xml"`
// Return: The ExportXMLFiles return value.
Return int32 `idl:"name:Return" json:"return"`
}
ExportXMLFilesResponse structure represents the ExportXMLFiles operation response
func (*ExportXMLFilesResponse) MarshalNDR ¶
func (*ExportXMLFilesResponse) UnmarshalNDR ¶
type GetCurrentMemoryRequest ¶
type GetCurrentMemoryRequest struct {
// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
This *dcom.ORPCThis `idl:"name:This" json:"this"`
}
GetCurrentMemoryRequest structure represents the GetCurrentMemory operation request
func (*GetCurrentMemoryRequest) MarshalNDR ¶
func (*GetCurrentMemoryRequest) UnmarshalNDR ¶
type GetCurrentMemoryResponse ¶
type GetCurrentMemoryResponse struct {
// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
That *dcom.ORPCThat `idl:"name:That" json:"that"`
// pdwCurrMemory: A pointer to a 64-bit unsigned integer that returns the current system
// memory size, in bytes.
CurrentMemory uint64 `idl:"name:pdwCurrMemory" json:"current_memory"`
// Return: The GetCurrentMemory return value.
Return int32 `idl:"name:Return" json:"return"`
}
GetCurrentMemoryResponse structure represents the GetCurrentMemory operation response
func (*GetCurrentMemoryResponse) MarshalNDR ¶
func (*GetCurrentMemoryResponse) UnmarshalNDR ¶
type GetDependenciesRequest ¶
type GetDependenciesRequest struct {
// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
This *dcom.ORPCThis `idl:"name:This" json:"this"`
// bstrObjectName: A string that specifies the name of the object whose dependencies
// are to be returned.
ObjectName *oaut.String `idl:"name:bstrObjectName" json:"object_name"`
// enumObject: An OBJECT_TYPE enumeration (section 2.2.3.6) value that specifies the
// type of object specified in bstrObjectName.
EnumObject wsrm.ObjectType `idl:"name:enumObject" json:"enum_object"`
}
GetDependenciesRequest structure represents the GetDependencies operation request
func (*GetDependenciesRequest) MarshalNDR ¶
func (*GetDependenciesRequest) UnmarshalNDR ¶
type GetDependenciesResponse ¶
type GetDependenciesResponse struct {
// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
That *dcom.ORPCThat `idl:"name:That" json:"that"`
// pbstrDependencyList: A pointer to a string that returns the dependencies for the
// object specified in bstrObjectName, in the form of a DependencyList element (section
// 2.2.5.14). For an example, see section 4.2.11.
DependencyList *oaut.String `idl:"name:pbstrDependencyList" json:"dependency_list"`
// Return: The GetDependencies return value.
Return int32 `idl:"name:Return" json:"return"`
}
GetDependenciesResponse structure represents the GetDependencies operation response
func (*GetDependenciesResponse) MarshalNDR ¶
func (*GetDependenciesResponse) UnmarshalNDR ¶
type GetIISAppPoolNamesRequest ¶
type GetIISAppPoolNamesRequest struct {
// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
This *dcom.ORPCThis `idl:"name:This" json:"this"`
}
GetIISAppPoolNamesRequest structure represents the GetIISAppPoolNames operation request
func (*GetIISAppPoolNamesRequest) MarshalNDR ¶
func (*GetIISAppPoolNamesRequest) UnmarshalNDR ¶
type GetIISAppPoolNamesResponse ¶
type GetIISAppPoolNamesResponse struct {
// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
That *dcom.ORPCThat `idl:"name:That" json:"that"`
// pbstrIISAppPoolList: A pointer to a string in the format of the AppPoolList element
// (section 2.2.5.6) that returns an IIS application pool list structure.
IISAppPoolList *oaut.String `idl:"name:pbstrIISAppPoolList" json:"iis_app_pool_list"`
// pbstrSystemDirectory: A pointer to a string that returns implementation-specific
// system directory information.<32>
SystemDirectory *oaut.String `idl:"name:pbstrSystemDirectory" json:"system_directory"`
// Return: The GetIISAppPoolNames return value.
Return int32 `idl:"name:Return" json:"return"`
}
GetIISAppPoolNamesResponse structure represents the GetIISAppPoolNames operation response
func (*GetIISAppPoolNamesResponse) MarshalNDR ¶
func (*GetIISAppPoolNamesResponse) UnmarshalNDR ¶
type GetServerNameRequest ¶
type GetServerNameRequest struct {
// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
This *dcom.ORPCThis `idl:"name:This" json:"this"`
}
GetServerNameRequest structure represents the GetServerName operation request
func (*GetServerNameRequest) MarshalNDR ¶
func (*GetServerNameRequest) UnmarshalNDR ¶
type GetServerNameResponse ¶
type GetServerNameResponse struct {
// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
That *dcom.ORPCThat `idl:"name:That" json:"that"`
// pbstrServerName: A pointer to a string that returns the server name.
ServerName *oaut.String `idl:"name:pbstrServerName" json:"server_name"`
// Return: The GetServerName return value.
Return int32 `idl:"name:Return" json:"return"`
}
GetServerNameResponse structure represents the GetServerName operation response
func (*GetServerNameResponse) MarshalNDR ¶
func (*GetServerNameResponse) UnmarshalNDR ¶
type GetServiceListRequest ¶
type GetServiceListRequest struct {
// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
This *dcom.ORPCThis `idl:"name:This" json:"this"`
}
GetServiceListRequest structure represents the GetServiceList operation request
func (*GetServiceListRequest) MarshalNDR ¶
func (*GetServiceListRequest) UnmarshalNDR ¶
type GetServiceListResponse ¶
type GetServiceListResponse struct {
// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
That *dcom.ORPCThat `idl:"name:That" json:"that"`
// pbstrServiceList: A pointer to a string that returns a list of services, in the form
// of a ServiceList element (section 2.2.5.28). For an example, see section 4.2.23.
ServiceList *oaut.String `idl:"name:pbstrServiceList" json:"service_list"`
// Return: The GetServiceList return value.
Return int32 `idl:"name:Return" json:"return"`
}
GetServiceListResponse structure represents the GetServiceList operation response
func (*GetServiceListResponse) MarshalNDR ¶
func (*GetServiceListResponse) UnmarshalNDR ¶
type GetSystemAffinityRequest ¶
type GetSystemAffinityRequest struct {
// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
This *dcom.ORPCThis `idl:"name:This" json:"this"`
}
GetSystemAffinityRequest structure represents the GetSystemAffinity operation request
func (*GetSystemAffinityRequest) MarshalNDR ¶
func (*GetSystemAffinityRequest) UnmarshalNDR ¶
type GetSystemAffinityResponse ¶
type GetSystemAffinityResponse struct {
// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
That *dcom.ORPCThat `idl:"name:That" json:"that"`
// pdwSysAffinity: A pointer to a 64-bit unsigned integer that returns a processor affinity
// information structure, which is a bit vector where each bit represents the processors
// that are configured into a system.
SystemAffinity uint64 `idl:"name:pdwSysAffinity" json:"system_affinity"`
// Return: The GetSystemAffinity return value.
Return int32 `idl:"name:Return" json:"return"`
}
GetSystemAffinityResponse structure represents the GetSystemAffinity operation response
func (*GetSystemAffinityResponse) MarshalNDR ¶
func (*GetSystemAffinityResponse) UnmarshalNDR ¶
type ImportXMLFilesRequest ¶
type ImportXMLFilesRequest struct {
// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
This *dcom.ORPCThis `idl:"name:This" json:"this"`
// bstrPMCXml: A string that specifies the PMCs to be loaded by the server, in the form
// of a ProcessMatchingCriteriaCollection element (section 2.2.5.25). For an example,
// see ProcessMatchingCriteriaCollection example (section 4.2.21). This parameter is
// ignored if it is NULL.
PMCXML *oaut.String `idl:"name:bstrPMCXml" json:"pmc_xml"`
// bstrPolicyXml: A string that specifies resource policies to be loaded by the server,
// in the form of a PolicyCollection element (section 2.2.5.22). This parameter is ignored
// if it is NULL.
PolicyXML *oaut.String `idl:"name:bstrPolicyXml" json:"policy_xml"`
// bstrCalendarXml: A string that specifies calendars to be loaded by the server, in
// the form of a CalendarsCollection element (section 2.2.5.11). For an example, see
// CalendarsCollection example (section 4.2.8). This parameter is ignored if it is NULL.
CalendarXML *oaut.String `idl:"name:bstrCalendarXml" json:"calendar_xml"`
// bstrConditionalXml: A string that specifies conditions to be loaded by the server,
// in the form of a ConditionalPolicy element (section 2.2.5.12). For an example, see
// section 4.2.9. This parameter is ignored if it is NULL.
ConditionalXML *oaut.String `idl:"name:bstrConditionalXml" json:"conditional_xml"`
}
ImportXMLFilesRequest structure represents the ImportXMLFiles operation request
func (*ImportXMLFilesRequest) MarshalNDR ¶
func (*ImportXMLFilesRequest) UnmarshalNDR ¶
type ImportXMLFilesResponse ¶
type ImportXMLFilesResponse 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 ImportXMLFiles return value.
Return int32 `idl:"name:Return" json:"return"`
}
ImportXMLFilesResponse structure represents the ImportXMLFiles operation response
func (*ImportXMLFilesResponse) MarshalNDR ¶
func (*ImportXMLFilesResponse) UnmarshalNDR ¶
type ResourceManagerClient ¶
type ResourceManagerClient interface {
// IDispatch retrieval method.
Dispatch() idispatch.DispatchClient
// The RetrieveEventList method is not implemented and always returns an error.
//
// Return Values: This method returns E_NOTIMPL, unless a parameter error is found.
//
// +----------------------+-----------------------------------+
// | RETURN | |
// | VALUE/CODE | DESCRIPTION |
// | | |
// +----------------------+-----------------------------------+
// +----------------------+-----------------------------------+
// | 0x80004001 E_NOTIMPL | This function is not implemented. |
// +----------------------+-----------------------------------+
//
// Additional IResourceManager interface methods are specified in section 3.2.4.1.
RetrieveEventList(context.Context, *RetrieveEventListRequest, ...dcerpc.CallOption) (*RetrieveEventListResponse, error)
// The GetSystemAffinity method gets the processor affinity of the system.
//
// Return Values: This method returns 0x00000000 for success or a negative HRESULT value
// (in the following table or in [MS-ERREF] section 2.1.1) if an error occurs.
//
// +-------------------+-----------------------+
// | RETURN | |
// | VALUE/CODE | DESCRIPTION |
// | | |
// +-------------------+-----------------------+
// +-------------------+-----------------------+
// | 0x00000000 S_OK | Operation successful. |
// +-------------------+-----------------------+
//
// Additional IResourceManager interface methods are specified in section 3.2.4.1.
GetSystemAffinity(context.Context, *GetSystemAffinityRequest, ...dcerpc.CallOption) (*GetSystemAffinityResponse, error)
// The ImportXMLFiles method loads a specified WSRM configuration.
//
// Return Values: This method returns 0x00000000 for success or a negative HRESULT value
// (in the following table or in [MS-ERREF] section 2.1.1) if an error occurs.
//
// +--------------------------------------+----------------------------------------------------------------------------------+
// | RETURN | |
// | VALUE/CODE | DESCRIPTION |
// | | |
// +--------------------------------------+----------------------------------------------------------------------------------+
// +--------------------------------------+----------------------------------------------------------------------------------+
// | 0x00000000 S_OK | Operation successful. |
// +--------------------------------------+----------------------------------------------------------------------------------+
// | 0x80070057 E_INVALIDARG | One or more arguments are invalid. |
// +--------------------------------------+----------------------------------------------------------------------------------+
// | 0xC1FF0070 WRM_ERR_TAGS_NOT_IN_ORDER | The XML data that is maintained by the management service is invalid or cannot |
// | | be processed.<27> |
// +--------------------------------------+----------------------------------------------------------------------------------+
//
// The ImportXMLFiles method can be used to manage system resources by importing a valid
// RAP.
//
// Additional IResourceManager interface methods are specified in section 3.2.4.1.
ImportXMLFiles(context.Context, *ImportXMLFilesRequest, ...dcerpc.CallOption) (*ImportXMLFilesResponse, error)
// The ExportXMLFiles method saves the current WSRM configuration.<28>
//
// Return Values: This method returns 0x00000000 for success or a negative HRESULT value
// (in the following table or in [MS-ERREF] section 2.1.1) if an error occurs.
//
// +--------------------------------------+----------------------------------------------------------------------------------+
// | RETURN | |
// | VALUE/CODE | DESCRIPTION |
// | | |
// +--------------------------------------+----------------------------------------------------------------------------------+
// +--------------------------------------+----------------------------------------------------------------------------------+
// | 0xC1FF0070 WRM_ERR_TAGS_NOT_IN_ORDER | The XML data that is maintained by the management service is invalid or cannot |
// | | be processed.<29> |
// +--------------------------------------+----------------------------------------------------------------------------------+
// | 0x00000000 S_OK | Operation successful. |
// +--------------------------------------+----------------------------------------------------------------------------------+
//
// Additional IResourceManager interface methods are specified in section 3.2.4.1.
ExportXMLFiles(context.Context, *ExportXMLFilesRequest, ...dcerpc.CallOption) (*ExportXMLFilesResponse, error)
// The RestoreXMLFiles method restores the WSRM configuration to a specified state.
//
// Return Values: This method returns 0x00000000 for success or a negative HRESULT value
// (in the following table or in [MS-ERREF] section 2.1.1) if an error occurs.
//
// +--------------------------------------+----------------------------------------------------------------------------------+
// | RETURN | |
// | VALUE/CODE | DESCRIPTION |
// | | |
// +--------------------------------------+----------------------------------------------------------------------------------+
// +--------------------------------------+----------------------------------------------------------------------------------+
// | 0x00000000 S_OK | Operation successful. |
// +--------------------------------------+----------------------------------------------------------------------------------+
// | 0xC1FF0070 WRM_ERR_TAGS_NOT_IN_ORDER | The XML data that is maintained by the management service is invalid or cannot |
// | | be processed.<31> |
// +--------------------------------------+----------------------------------------------------------------------------------+
// | 0x80070057 E_INVALIDARG | One or more arguments are invalid. |
// +--------------------------------------+----------------------------------------------------------------------------------+
//
// This method can be used to reset the WSRM server state to a known value in case some
// data becomes corrupted and the server cannot proceed.
//
// Additional IResourceManager interface methods are specified in section 3.2.4.1.
RestoreXMLFiles(context.Context, *RestoreXMLFilesRequest, ...dcerpc.CallOption) (*RestoreXMLFilesResponse, error)
// The GetDependencies method returns a list of WSRM objects that are being used or
// that depend on a specified object.
//
// Return Values: This method returns 0x00000000 for success or a negative HRESULT value
// (in the following table or in [MS-ERREF] section 2.1.1) if an error occurs.
//
// +----------------------------------------------+----------------------------------------------------------------------------------+
// | RETURN | |
// | VALUE/CODE | DESCRIPTION |
// | | |
// +----------------------------------------------+----------------------------------------------------------------------------------+
// +----------------------------------------------+----------------------------------------------------------------------------------+
// | 0x00000000 S_OK | Operation successful. |
// +----------------------------------------------+----------------------------------------------------------------------------------+
// | 0xC1FF006F WRM_ERR_ID_VALUE | The specified name contains characters that are invalid. The name cannot |
// | | start with a hyphen ("-") and cannot contain spaces or any of the following |
// | | characters: \ / ? * | : < > " , ;. |
// +----------------------------------------------+----------------------------------------------------------------------------------+
// | 0x80004005 E_FAIL | Either an object with the specified name and type was not found or its |
// | | dependency list could not be created. |
// +----------------------------------------------+----------------------------------------------------------------------------------+
// | 0xC1FF0271 WRM_ERR_CAL_UNKNOWN_SCHEDULE | A calendar name or an invalid schedule name was passed in bstrObjectName for |
// | | OBJECT_SCHEDULE enumObject. |
// +----------------------------------------------+----------------------------------------------------------------------------------+
// | 0xC1FF013A WRM_ERR_DEPENDENCIES_FOR_RESIDUAL | This is a residual PMC and is a part of all policies. All processes that do |
// | | not match any of the PMC specified by a user in a policy automatically match to |
// | | residual PMC. |
// +----------------------------------------------+----------------------------------------------------------------------------------+
//
// The server SHOULD process this method call as follows:
//
// * If a PMC object is specified, this method MUST return a list of policies that make
// use of the PMC.
//
// * If a resource policy object ( e371cc74-bf4c-4870-8afe-5062cc628b4f#gt_3731cbe9-91f2-49a8-b63f-6f5f7b69b05a
// ) is specified, this method MUST return a list of calendar ( e371cc74-bf4c-4870-8afe-5062cc628b4f#gt_7204b2ed-dcef-4434-be15-6451f92d03fb
// ) events, conditions, and schedules that make use of the resource policy ( e371cc74-bf4c-4870-8afe-5062cc628b4f#gt_559b0a4d-161b-4664-9c10-4fab98b97f1f
// ).
//
// * If a schedule object is specified, this method MUST return a list of calendar events
// making use of the schedule.
//
// * If a calendar object is specified, this method MUST return WRM_ERR_CAL_UNKNOWN_SCHEDULE.
//
// Additional IResourceManager interface methods are specified in section 3.2.4.1.
GetDependencies(context.Context, *GetDependenciesRequest, ...dcerpc.CallOption) (*GetDependenciesResponse, error)
// The GetServiceList method provides a list of services that are registered with the
// server and are not excluded by the exclusion list. This list of services is expected
// to be used for defining process matching criteria (PMC).
//
// Return Values: This method returns 0x00000000 for success or a negative HRESULT value
// (in the following table or in [MS-ERREF] section 2.1.1) if an error occurs.
//
// +-------------------+-----------------------+
// | RETURN | |
// | VALUE/CODE | DESCRIPTION |
// | | |
// +-------------------+-----------------------+
// +-------------------+-----------------------+
// | 0x00000000 S_OK | Operation successful. |
// +-------------------+-----------------------+
//
// Additional IResourceManager interface methods are specified in section 3.2.4.1.
GetServiceList(context.Context, *GetServiceListRequest, ...dcerpc.CallOption) (*GetServiceListResponse, error)
// The GetIISAppPoolNames method returns a list of all the application pools on the
// WSRM server that are defined by and known to the IIS server.
//
// Return Values: This method returns 0x00000000 for success or a negative HRESULT value
// (in the following table or in [MS-ERREF] section 2.1.1) if an error occurs.
//
// +-------------------+-----------------------+
// | RETURN | |
// | VALUE/CODE | DESCRIPTION |
// | | |
// +-------------------+-----------------------+
// +-------------------+-----------------------+
// | 0x00000000 S_OK | Operation successful. |
// +-------------------+-----------------------+
//
// Additional IResourceManager interface methods are specified in section 3.2.4.1.
GetIISAppPoolNames(context.Context, *GetIISAppPoolNamesRequest, ...dcerpc.CallOption) (*GetIISAppPoolNamesResponse, error)
// The GetServerName method returns the server name.
//
// Return Values: This method returns 0x00000000 for success or a negative HRESULT value
// (in the following table or in [MS-ERREF] section 2.1.1) if an error occurs.<33>
//
// +-------------------+-----------------------+
// | RETURN | |
// | VALUE/CODE | DESCRIPTION |
// | | |
// +-------------------+-----------------------+
// +-------------------+-----------------------+
// | 0x00000000 S_OK | Operation successful. |
// +-------------------+-----------------------+
//
// Additional IResourceManager interface methods are specified in section 3.2.4.1.
GetServerName(context.Context, *GetServerNameRequest, ...dcerpc.CallOption) (*GetServerNameResponse, error)
// The GetCurrentMemory method determines the total amount of physical memory in the
// system.
//
// Return Values: This method returns 0x00000001 for success or 0x00000000 if an error
// occurs.
//
// +-------------------+-----------------------+
// | RETURN | |
// | VALUE/CODE | DESCRIPTION |
// | | |
// +-------------------+-----------------------+
// +-------------------+-----------------------+
// | 0x00000000 | An error occurred. |
// +-------------------+-----------------------+
// | 0x00000001 S_OK | Operation successful. |
// +-------------------+-----------------------+
//
// Additional IResourceManager interface methods are specified in section 3.2.4.1.
GetCurrentMemory(context.Context, *GetCurrentMemoryRequest, ...dcerpc.CallOption) (*GetCurrentMemoryResponse, error)
// AlterContext alters the client context.
AlterContext(context.Context, ...dcerpc.Option) error
// Conn returns the client connection (unsafe)
Conn() dcerpc.Conn
// IPID sets the object interface identifier.
IPID(context.Context, *dcom.IPID) ResourceManagerClient
}
IResourceManager interface.
type ResourceManagerServer ¶
type ResourceManagerServer interface {
// IDispatch base class.
idispatch.DispatchServer
// The RetrieveEventList method is not implemented and always returns an error.
//
// Return Values: This method returns E_NOTIMPL, unless a parameter error is found.
//
// +----------------------+-----------------------------------+
// | RETURN | |
// | VALUE/CODE | DESCRIPTION |
// | | |
// +----------------------+-----------------------------------+
// +----------------------+-----------------------------------+
// | 0x80004001 E_NOTIMPL | This function is not implemented. |
// +----------------------+-----------------------------------+
//
// Additional IResourceManager interface methods are specified in section 3.2.4.1.
RetrieveEventList(context.Context, *RetrieveEventListRequest) (*RetrieveEventListResponse, error)
// The GetSystemAffinity method gets the processor affinity of the system.
//
// Return Values: This method returns 0x00000000 for success or a negative HRESULT value
// (in the following table or in [MS-ERREF] section 2.1.1) if an error occurs.
//
// +-------------------+-----------------------+
// | RETURN | |
// | VALUE/CODE | DESCRIPTION |
// | | |
// +-------------------+-----------------------+
// +-------------------+-----------------------+
// | 0x00000000 S_OK | Operation successful. |
// +-------------------+-----------------------+
//
// Additional IResourceManager interface methods are specified in section 3.2.4.1.
GetSystemAffinity(context.Context, *GetSystemAffinityRequest) (*GetSystemAffinityResponse, error)
// The ImportXMLFiles method loads a specified WSRM configuration.
//
// Return Values: This method returns 0x00000000 for success or a negative HRESULT value
// (in the following table or in [MS-ERREF] section 2.1.1) if an error occurs.
//
// +--------------------------------------+----------------------------------------------------------------------------------+
// | RETURN | |
// | VALUE/CODE | DESCRIPTION |
// | | |
// +--------------------------------------+----------------------------------------------------------------------------------+
// +--------------------------------------+----------------------------------------------------------------------------------+
// | 0x00000000 S_OK | Operation successful. |
// +--------------------------------------+----------------------------------------------------------------------------------+
// | 0x80070057 E_INVALIDARG | One or more arguments are invalid. |
// +--------------------------------------+----------------------------------------------------------------------------------+
// | 0xC1FF0070 WRM_ERR_TAGS_NOT_IN_ORDER | The XML data that is maintained by the management service is invalid or cannot |
// | | be processed.<27> |
// +--------------------------------------+----------------------------------------------------------------------------------+
//
// The ImportXMLFiles method can be used to manage system resources by importing a valid
// RAP.
//
// Additional IResourceManager interface methods are specified in section 3.2.4.1.
ImportXMLFiles(context.Context, *ImportXMLFilesRequest) (*ImportXMLFilesResponse, error)
// The ExportXMLFiles method saves the current WSRM configuration.<28>
//
// Return Values: This method returns 0x00000000 for success or a negative HRESULT value
// (in the following table or in [MS-ERREF] section 2.1.1) if an error occurs.
//
// +--------------------------------------+----------------------------------------------------------------------------------+
// | RETURN | |
// | VALUE/CODE | DESCRIPTION |
// | | |
// +--------------------------------------+----------------------------------------------------------------------------------+
// +--------------------------------------+----------------------------------------------------------------------------------+
// | 0xC1FF0070 WRM_ERR_TAGS_NOT_IN_ORDER | The XML data that is maintained by the management service is invalid or cannot |
// | | be processed.<29> |
// +--------------------------------------+----------------------------------------------------------------------------------+
// | 0x00000000 S_OK | Operation successful. |
// +--------------------------------------+----------------------------------------------------------------------------------+
//
// Additional IResourceManager interface methods are specified in section 3.2.4.1.
ExportXMLFiles(context.Context, *ExportXMLFilesRequest) (*ExportXMLFilesResponse, error)
// The RestoreXMLFiles method restores the WSRM configuration to a specified state.
//
// Return Values: This method returns 0x00000000 for success or a negative HRESULT value
// (in the following table or in [MS-ERREF] section 2.1.1) if an error occurs.
//
// +--------------------------------------+----------------------------------------------------------------------------------+
// | RETURN | |
// | VALUE/CODE | DESCRIPTION |
// | | |
// +--------------------------------------+----------------------------------------------------------------------------------+
// +--------------------------------------+----------------------------------------------------------------------------------+
// | 0x00000000 S_OK | Operation successful. |
// +--------------------------------------+----------------------------------------------------------------------------------+
// | 0xC1FF0070 WRM_ERR_TAGS_NOT_IN_ORDER | The XML data that is maintained by the management service is invalid or cannot |
// | | be processed.<31> |
// +--------------------------------------+----------------------------------------------------------------------------------+
// | 0x80070057 E_INVALIDARG | One or more arguments are invalid. |
// +--------------------------------------+----------------------------------------------------------------------------------+
//
// This method can be used to reset the WSRM server state to a known value in case some
// data becomes corrupted and the server cannot proceed.
//
// Additional IResourceManager interface methods are specified in section 3.2.4.1.
RestoreXMLFiles(context.Context, *RestoreXMLFilesRequest) (*RestoreXMLFilesResponse, error)
// The GetDependencies method returns a list of WSRM objects that are being used or
// that depend on a specified object.
//
// Return Values: This method returns 0x00000000 for success or a negative HRESULT value
// (in the following table or in [MS-ERREF] section 2.1.1) if an error occurs.
//
// +----------------------------------------------+----------------------------------------------------------------------------------+
// | RETURN | |
// | VALUE/CODE | DESCRIPTION |
// | | |
// +----------------------------------------------+----------------------------------------------------------------------------------+
// +----------------------------------------------+----------------------------------------------------------------------------------+
// | 0x00000000 S_OK | Operation successful. |
// +----------------------------------------------+----------------------------------------------------------------------------------+
// | 0xC1FF006F WRM_ERR_ID_VALUE | The specified name contains characters that are invalid. The name cannot |
// | | start with a hyphen ("-") and cannot contain spaces or any of the following |
// | | characters: \ / ? * | : < > " , ;. |
// +----------------------------------------------+----------------------------------------------------------------------------------+
// | 0x80004005 E_FAIL | Either an object with the specified name and type was not found or its |
// | | dependency list could not be created. |
// +----------------------------------------------+----------------------------------------------------------------------------------+
// | 0xC1FF0271 WRM_ERR_CAL_UNKNOWN_SCHEDULE | A calendar name or an invalid schedule name was passed in bstrObjectName for |
// | | OBJECT_SCHEDULE enumObject. |
// +----------------------------------------------+----------------------------------------------------------------------------------+
// | 0xC1FF013A WRM_ERR_DEPENDENCIES_FOR_RESIDUAL | This is a residual PMC and is a part of all policies. All processes that do |
// | | not match any of the PMC specified by a user in a policy automatically match to |
// | | residual PMC. |
// +----------------------------------------------+----------------------------------------------------------------------------------+
//
// The server SHOULD process this method call as follows:
//
// * If a PMC object is specified, this method MUST return a list of policies that make
// use of the PMC.
//
// * If a resource policy object ( e371cc74-bf4c-4870-8afe-5062cc628b4f#gt_3731cbe9-91f2-49a8-b63f-6f5f7b69b05a
// ) is specified, this method MUST return a list of calendar ( e371cc74-bf4c-4870-8afe-5062cc628b4f#gt_7204b2ed-dcef-4434-be15-6451f92d03fb
// ) events, conditions, and schedules that make use of the resource policy ( e371cc74-bf4c-4870-8afe-5062cc628b4f#gt_559b0a4d-161b-4664-9c10-4fab98b97f1f
// ).
//
// * If a schedule object is specified, this method MUST return a list of calendar events
// making use of the schedule.
//
// * If a calendar object is specified, this method MUST return WRM_ERR_CAL_UNKNOWN_SCHEDULE.
//
// Additional IResourceManager interface methods are specified in section 3.2.4.1.
GetDependencies(context.Context, *GetDependenciesRequest) (*GetDependenciesResponse, error)
// The GetServiceList method provides a list of services that are registered with the
// server and are not excluded by the exclusion list. This list of services is expected
// to be used for defining process matching criteria (PMC).
//
// Return Values: This method returns 0x00000000 for success or a negative HRESULT value
// (in the following table or in [MS-ERREF] section 2.1.1) if an error occurs.
//
// +-------------------+-----------------------+
// | RETURN | |
// | VALUE/CODE | DESCRIPTION |
// | | |
// +-------------------+-----------------------+
// +-------------------+-----------------------+
// | 0x00000000 S_OK | Operation successful. |
// +-------------------+-----------------------+
//
// Additional IResourceManager interface methods are specified in section 3.2.4.1.
GetServiceList(context.Context, *GetServiceListRequest) (*GetServiceListResponse, error)
// The GetIISAppPoolNames method returns a list of all the application pools on the
// WSRM server that are defined by and known to the IIS server.
//
// Return Values: This method returns 0x00000000 for success or a negative HRESULT value
// (in the following table or in [MS-ERREF] section 2.1.1) if an error occurs.
//
// +-------------------+-----------------------+
// | RETURN | |
// | VALUE/CODE | DESCRIPTION |
// | | |
// +-------------------+-----------------------+
// +-------------------+-----------------------+
// | 0x00000000 S_OK | Operation successful. |
// +-------------------+-----------------------+
//
// Additional IResourceManager interface methods are specified in section 3.2.4.1.
GetIISAppPoolNames(context.Context, *GetIISAppPoolNamesRequest) (*GetIISAppPoolNamesResponse, error)
// The GetServerName method returns the server name.
//
// Return Values: This method returns 0x00000000 for success or a negative HRESULT value
// (in the following table or in [MS-ERREF] section 2.1.1) if an error occurs.<33>
//
// +-------------------+-----------------------+
// | RETURN | |
// | VALUE/CODE | DESCRIPTION |
// | | |
// +-------------------+-----------------------+
// +-------------------+-----------------------+
// | 0x00000000 S_OK | Operation successful. |
// +-------------------+-----------------------+
//
// Additional IResourceManager interface methods are specified in section 3.2.4.1.
GetServerName(context.Context, *GetServerNameRequest) (*GetServerNameResponse, error)
// The GetCurrentMemory method determines the total amount of physical memory in the
// system.
//
// Return Values: This method returns 0x00000001 for success or 0x00000000 if an error
// occurs.
//
// +-------------------+-----------------------+
// | RETURN | |
// | VALUE/CODE | DESCRIPTION |
// | | |
// +-------------------+-----------------------+
// +-------------------+-----------------------+
// | 0x00000000 | An error occurred. |
// +-------------------+-----------------------+
// | 0x00000001 S_OK | Operation successful. |
// +-------------------+-----------------------+
//
// Additional IResourceManager interface methods are specified in section 3.2.4.1.
GetCurrentMemory(context.Context, *GetCurrentMemoryRequest) (*GetCurrentMemoryResponse, error)
}
IResourceManager server interface.
type RestoreXMLFilesRequest ¶
type RestoreXMLFilesRequest struct {
// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
This *dcom.ORPCThis `idl:"name:This" json:"this"`
// enumRestore: A value that specifies the state to restore.
EnumRestore wsrm.RestoreMode `idl:"name:enumRestore" json:"enum_restore"`
}
RestoreXMLFilesRequest structure represents the RestoreXMLFiles operation request
func (*RestoreXMLFilesRequest) MarshalNDR ¶
func (*RestoreXMLFilesRequest) UnmarshalNDR ¶
type RestoreXMLFilesResponse ¶
type RestoreXMLFilesResponse 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 RestoreXMLFiles return value.
Return int32 `idl:"name:Return" json:"return"`
}
RestoreXMLFilesResponse structure represents the RestoreXMLFiles operation response
func (*RestoreXMLFilesResponse) MarshalNDR ¶
func (*RestoreXMLFilesResponse) UnmarshalNDR ¶
type RetrieveEventListRequest ¶
type RetrieveEventListRequest struct {
// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
This *dcom.ORPCThis `idl:"name:This" json:"this"`
}
RetrieveEventListRequest structure represents the RetrieveEventList operation request
func (*RetrieveEventListRequest) MarshalNDR ¶
func (*RetrieveEventListRequest) UnmarshalNDR ¶
type RetrieveEventListResponse ¶
type RetrieveEventListResponse struct {
// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
That *dcom.ORPCThat `idl:"name:That" json:"that"`
// pbstrEventList: Not used.
EventList *oaut.String `idl:"name:pbstrEventList" json:"event_list"`
// Return: The RetrieveEventList return value.
Return int32 `idl:"name:Return" json:"return"`
}
RetrieveEventListResponse structure represents the RetrieveEventList operation response
func (*RetrieveEventListResponse) MarshalNDR ¶
func (*RetrieveEventListResponse) UnmarshalNDR ¶
type UnimplementedResourceManagerServer ¶
type UnimplementedResourceManagerServer struct {
idispatch.UnimplementedDispatchServer
}
Unimplemented IResourceManager
func (UnimplementedResourceManagerServer) ExportXMLFiles ¶
func (UnimplementedResourceManagerServer) ExportXMLFiles(context.Context, *ExportXMLFilesRequest) (*ExportXMLFilesResponse, error)
func (UnimplementedResourceManagerServer) GetCurrentMemory ¶
func (UnimplementedResourceManagerServer) GetCurrentMemory(context.Context, *GetCurrentMemoryRequest) (*GetCurrentMemoryResponse, error)
func (UnimplementedResourceManagerServer) GetDependencies ¶
func (UnimplementedResourceManagerServer) GetDependencies(context.Context, *GetDependenciesRequest) (*GetDependenciesResponse, error)
func (UnimplementedResourceManagerServer) GetIISAppPoolNames ¶
func (UnimplementedResourceManagerServer) GetIISAppPoolNames(context.Context, *GetIISAppPoolNamesRequest) (*GetIISAppPoolNamesResponse, error)
func (UnimplementedResourceManagerServer) GetServerName ¶
func (UnimplementedResourceManagerServer) GetServerName(context.Context, *GetServerNameRequest) (*GetServerNameResponse, error)
func (UnimplementedResourceManagerServer) GetServiceList ¶
func (UnimplementedResourceManagerServer) GetServiceList(context.Context, *GetServiceListRequest) (*GetServiceListResponse, error)
func (UnimplementedResourceManagerServer) GetSystemAffinity ¶
func (UnimplementedResourceManagerServer) GetSystemAffinity(context.Context, *GetSystemAffinityRequest) (*GetSystemAffinityResponse, error)
func (UnimplementedResourceManagerServer) ImportXMLFiles ¶
func (UnimplementedResourceManagerServer) ImportXMLFiles(context.Context, *ImportXMLFilesRequest) (*ImportXMLFilesResponse, error)
func (UnimplementedResourceManagerServer) RestoreXMLFiles ¶
func (UnimplementedResourceManagerServer) RestoreXMLFiles(context.Context, *RestoreXMLFilesRequest) (*RestoreXMLFilesResponse, error)
func (UnimplementedResourceManagerServer) RetrieveEventList ¶
func (UnimplementedResourceManagerServer) RetrieveEventList(context.Context, *RetrieveEventListRequest) (*RetrieveEventListResponse, error)