Documentation ¶
Index ¶
- Variables
- func ClusterUpdateServerHandle(ctx context.Context, o ClusterUpdateServer, opNum int, r ndr.Reader) (dcerpc.Operation, error)
- func NewClusterUpdateServerHandle(o ClusterUpdateServer) dcerpc.ServerHandle
- func RegisterClusterUpdateServer(conn dcerpc.Conn, o ClusterUpdateServer, opts ...dcerpc.Option)
- type ClusterUpdateClient
- type ClusterUpdateServer
- type CountRequest
- type CountResponse
- type GetUpdatesRequest
- type GetUpdatesResponse
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // IClusterUpdate interface identifier e3c9b851-c442-432b-8fc6-a7faafc09d3b ClusterUpdateIID = &dcom.IID{Data1: 0xe3c9b851, Data2: 0xc442, Data3: 0x432b, Data4: []byte{0x8f, 0xc6, 0xa7, 0xfa, 0xaf, 0xc0, 0x9d, 0x3b}} // Syntax UUID ClusterUpdateSyntaxUUID = &uuid.UUID{TimeLow: 0xe3c9b851, TimeMid: 0xc442, TimeHiAndVersion: 0x432b, ClockSeqHiAndReserved: 0x8f, ClockSeqLow: 0xc6, Node: [6]uint8{0xa7, 0xfa, 0xaf, 0xc0, 0x9d, 0x3b}} // Syntax ID ClusterUpdateSyntaxV0_0 = &dcerpc.SyntaxID{IfUUID: ClusterUpdateSyntaxUUID, IfVersionMajor: 0, IfVersionMinor: 0} )
View Source
var (
// import guard
GoPackage = "dcom/csvp"
)
Functions ¶
func NewClusterUpdateServerHandle ¶
func NewClusterUpdateServerHandle(o ClusterUpdateServer) dcerpc.ServerHandle
func RegisterClusterUpdateServer ¶
func RegisterClusterUpdateServer(conn dcerpc.Conn, o ClusterUpdateServer, opts ...dcerpc.Option)
Types ¶
type ClusterUpdateClient ¶
type ClusterUpdateClient interface { // IUnknown retrieval method. Unknown() iunknown.UnknownClient // The GetUpdates method queries the local server for all of the updates that are installed // on the local server. // // 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. GetUpdates(context.Context, *GetUpdatesRequest, ...dcerpc.CallOption) (*GetUpdatesResponse, error) // The Count method returns the number of updates that are installed on the local server. // // 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 4. Count(context.Context, *CountRequest, ...dcerpc.CallOption) (*CountResponse, error) // AlterContext alters the client context. AlterContext(context.Context, ...dcerpc.Option) error // IPID sets the object interface identifier. IPID(context.Context, *dcom.IPID) ClusterUpdateClient }
IClusterUpdate interface.
func NewClusterUpdateClient ¶
type ClusterUpdateServer ¶
type ClusterUpdateServer interface { // IUnknown base class. iunknown.UnknownServer // The GetUpdates method queries the local server for all of the updates that are installed // on the local server. // // 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. GetUpdates(context.Context, *GetUpdatesRequest) (*GetUpdatesResponse, error) // The Count method returns the number of updates that are installed on the local server. // // 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 4. Count(context.Context, *CountRequest) (*CountResponse, error) }
IClusterUpdate server interface.
type CountRequest ¶
type CountRequest struct { // This: ORPCTHIS structure that is used to send ORPC extension data to the server. This *dcom.ORPCThis `idl:"name:This" json:"this"` }
CountRequest structure represents the Count operation request
func (*CountRequest) MarshalNDR ¶
func (*CountRequest) UnmarshalNDR ¶
type CountResponse ¶
type CountResponse struct { // That: ORPCTHAT structure that is used to return ORPC extension data to the client. That *dcom.ORPCThat `idl:"name:That" json:"that"` // Count: A value indicating the number of updates installed on the local server. Count int32 `idl:"name:Count" json:"count"` // Return: The Count return value. Return int32 `idl:"name:Return" json:"return"` }
CountResponse structure represents the Count operation response
func (*CountResponse) MarshalNDR ¶
func (*CountResponse) UnmarshalNDR ¶
type GetUpdatesRequest ¶
type GetUpdatesRequest struct { // This: ORPCTHIS structure that is used to send ORPC extension data to the server. This *dcom.ORPCThis `idl:"name:This" json:"this"` }
GetUpdatesRequest structure represents the GetUpdates operation request
func (*GetUpdatesRequest) MarshalNDR ¶
func (*GetUpdatesRequest) UnmarshalNDR ¶
type GetUpdatesResponse ¶
type GetUpdatesResponse struct { // That: ORPCTHAT structure that is used to return ORPC extension data to the client. That *dcom.ORPCThat `idl:"name:That" json:"that"` // UpdateCount: Upon successful completion of the method, the server MUST set this parameter // to the number of updates in the ClusterUpdates collection. UpdateCount uint32 `idl:"name:UpdateCount" json:"update_count"` // updates: Upon successful completion of this method, the server MUST set this parameter // to a null-terminated Unicode string containing XML representing the contents of the // ClusterUpdates collection. The XML is formatted as follows: // // The XML string starts with an XML tag with the name "updates" that has an attribute // with the name "version" with a value set to 1.0. // // <updates version="1.0"> // // * "id", with text containing the value of *ClusterUpdate.Id*. // // * "title", with text containing the value of *ClusterUpdate.Title*. // // * "description", with text containing the value of *ClusterUpdate.Description*. // // * "supportUrl", with text containing the value of *ClusterUpdate.SupportUrl*. // // * "knowledgebase", with a child "articleId" XML element for each entry in the *ClusterUpdate.ArticleIds* // collection. If the *ClusterUpdate.ArticleIds* collection is empty, then the "knowledgebase" // element MUST be an empty XML element. Otherwise, the child XML elements are as follows: // // * "articleId", with text containing the value of one entry from the *ClusterUpdate.ArticleIds* // collection. // // * "securityBulletin", with a child XML element for each entry in the *ClusterUpdate.SecurityBulletins* // collection. If the *ClusterUpdate.SecurityBulletins* collection is empty, then the // "securityBulletin" element MUST be an empty XML element. Otherwise, the child XML // elements are as follows: // // * "bulletinId", with text containing the value of one entry from the *ClusterUpdate.SecurityBulletins* // collection. // // * "superseded", with a child XML element for each entry in the *ClusterUpdate.UpdateIds* // collection. If the *ClusterUpdate.UpdateIds* collection is empty, then the "superseded" // element MUST be an empty XML element. Otherwise, the child XML elements are as follows: // // * "updateId", with text containing the value of one entry from the *ClusterUpdate.UpdateIds* // collection. // // The XML string concludes with an XML close tag with the name "updates". Updates *oaut.String `idl:"name:updates" json:"updates"` // Return: The GetUpdates return value. Return int32 `idl:"name:Return" json:"return"` }
GetUpdatesResponse structure represents the GetUpdates operation response
func (*GetUpdatesResponse) MarshalNDR ¶
func (*GetUpdatesResponse) UnmarshalNDR ¶
Click to show internal directories.
Click to hide internal directories.