Documentation ¶
Index ¶
- Variables
- func MutableCollectionServerHandle(ctx context.Context, o MutableCollectionServer, opNum int, r ndr.Reader) (dcerpc.Operation, error)
- func NewMutableCollectionServerHandle(o MutableCollectionServer) dcerpc.ServerHandle
- func RegisterMutableCollectionServer(conn dcerpc.Conn, o MutableCollectionServer, opts ...dcerpc.Option)
- type AddRequest
- type AddResponse
- type CloneRequest
- type CloneResponse
- type MutableCollectionClient
- type MutableCollectionServer
- type RemoveByIDRequest
- type RemoveByIDResponse
- type RemoveRequest
- type RemoveResponse
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // IFsrmMutableCollection interface identifier 1bb617b8-3886-49dc-af82-a6c90fa35dda MutableCollectionIID = &dcom.IID{Data1: 0x1bb617b8, Data2: 0x3886, Data3: 0x49dc, Data4: []byte{0xaf, 0x82, 0xa6, 0xc9, 0x0f, 0xa3, 0x5d, 0xda}} // Syntax UUID MutableCollectionSyntaxUUID = &uuid.UUID{TimeLow: 0x1bb617b8, TimeMid: 0x3886, TimeHiAndVersion: 0x49dc, ClockSeqHiAndReserved: 0xaf, ClockSeqLow: 0x82, Node: [6]uint8{0xa6, 0xc9, 0xf, 0xa3, 0x5d, 0xda}} // Syntax ID MutableCollectionSyntaxV0_0 = &dcerpc.SyntaxID{IfUUID: MutableCollectionSyntaxUUID, IfVersionMajor: 0, IfVersionMinor: 0} )
View Source
var (
// import guard
GoPackage = "dcom/fsrm"
)
Functions ¶
func NewMutableCollectionServerHandle ¶
func NewMutableCollectionServerHandle(o MutableCollectionServer) dcerpc.ServerHandle
func RegisterMutableCollectionServer ¶
func RegisterMutableCollectionServer(conn dcerpc.Conn, o MutableCollectionServer, opts ...dcerpc.Option)
Types ¶
type AddRequest ¶
type AddRequest struct { // This: ORPCTHIS structure that is used to send ORPC extension data to the server. This *dcom.ORPCThis `idl:"name:This" json:"this"` // item: A VARIANT structure that contains the IDispatch interface of the object to // add to the collection of Objects Being Enumerated. Item *oaut.Variant `idl:"name:item" json:"item"` }
AddRequest structure represents the Add operation request
func (*AddRequest) MarshalNDR ¶
func (*AddRequest) UnmarshalNDR ¶
type AddResponse ¶
type AddResponse 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 Add return value. Return int32 `idl:"name:Return" json:"return"` }
AddResponse structure represents the Add operation response
func (*AddResponse) MarshalNDR ¶
func (*AddResponse) UnmarshalNDR ¶
type CloneRequest ¶
type CloneRequest struct { // This: ORPCTHIS structure that is used to send ORPC extension data to the server. This *dcom.ORPCThis `idl:"name:This" json:"this"` }
CloneRequest structure represents the Clone operation request
func (*CloneRequest) MarshalNDR ¶
func (*CloneRequest) UnmarshalNDR ¶
type CloneResponse ¶
type CloneResponse struct { // That: ORPCTHAT structure that is used to return ORPC extension data to the client. That *dcom.ORPCThat `idl:"name:That" json:"that"` // collection: Pointer to an IFsrmMutableCollection interface pointer (section 3.2.4.2.2) // that upon successful completion contains the IFsrmMutableCollection pointer of a // copy of this collection of Objects Being Enumerated. Collection *fsrm.MutableCollection `idl:"name:collection" json:"collection"` // Return: The Clone return value. Return int32 `idl:"name:Return" json:"return"` }
CloneResponse structure represents the Clone operation response
func (*CloneResponse) MarshalNDR ¶
func (*CloneResponse) UnmarshalNDR ¶
type MutableCollectionClient ¶
type MutableCollectionClient interface { // IFsrmCollection retrieval method. Collection() ifsrmcollection.CollectionClient // The Add method adds the specified object to the collection of Objects Being Enumerated. // // Return Values: The method MUST return zero on success, or a nonzero error code on // failure. // // +----------------------------------+----------------------------------------------------------------------------------+ // | RETURN | | // | VALUE/CODE | DESCRIPTION | // | | | // +----------------------------------+----------------------------------------------------------------------------------+ // +----------------------------------+----------------------------------------------------------------------------------+ // | 0x80045303 FSRM_E_ALREADY_EXISTS | The object pointed to by the IDispatch pointer that is contained in the VARIANT | // | | structure already exists in the collection of Objects Being Enumerated. | // +----------------------------------+----------------------------------------------------------------------------------+ // | 0x80070057 E_INVALIDARG | The item parameter is not a value type. | // +----------------------------------+----------------------------------------------------------------------------------+ Add(context.Context, *AddRequest, ...dcerpc.CallOption) (*AddResponse, error) // The Remove method removes an object from the collection of Objects Being Enumerated. // // Return Values: The method MUST return zero on success, or a nonzero error code on // failure. // // +-------------------------+----------------------------------------------------------------------------------+ // | RETURN | | // | VALUE/CODE | DESCRIPTION | // | | | // +-------------------------+----------------------------------------------------------------------------------+ // +-------------------------+----------------------------------------------------------------------------------+ // | 0x80070057 E_INVALIDARG | The index is out of range; the index is less than one or greater than the size | // | | of the collection. | // +-------------------------+----------------------------------------------------------------------------------+ Remove(context.Context, *RemoveRequest, ...dcerpc.CallOption) (*RemoveResponse, error) // The RemoveById method removes from the collection of Objects Being Enumerated the // object whose ID matches the specified id. // // Return Values: The method MUST return zero on success, or a nonzero error code on // failure. // // +-----------------------------+------------------------------------------------------------------+ // | RETURN | | // | VALUE/CODE | DESCRIPTION | // | | | // +-----------------------------+------------------------------------------------------------------+ // +-----------------------------+------------------------------------------------------------------+ // | 0x80045301 FSRM_E_NOT_FOUND | An object with the specified ID was not found in the collection. | // +-----------------------------+------------------------------------------------------------------+ RemoveByID(context.Context, *RemoveByIDRequest, ...dcerpc.CallOption) (*RemoveByIDResponse, error) // The Clone method returns a copy of the collection of Objects Being Enumerated. // // Return Values: The method MUST return a nonzero error code. Upon receiving this message, // the server MUST return E_NOTIMPL. Clone(context.Context, *CloneRequest, ...dcerpc.CallOption) (*CloneResponse, error) // AlterContext alters the client context. AlterContext(context.Context, ...dcerpc.Option) error // IPID sets the object interface identifier. IPID(context.Context, *dcom.IPID) MutableCollectionClient }
IFsrmMutableCollection interface.
type MutableCollectionServer ¶
type MutableCollectionServer interface { // IFsrmCollection base class. ifsrmcollection.CollectionServer // The Add method adds the specified object to the collection of Objects Being Enumerated. // // Return Values: The method MUST return zero on success, or a nonzero error code on // failure. // // +----------------------------------+----------------------------------------------------------------------------------+ // | RETURN | | // | VALUE/CODE | DESCRIPTION | // | | | // +----------------------------------+----------------------------------------------------------------------------------+ // +----------------------------------+----------------------------------------------------------------------------------+ // | 0x80045303 FSRM_E_ALREADY_EXISTS | The object pointed to by the IDispatch pointer that is contained in the VARIANT | // | | structure already exists in the collection of Objects Being Enumerated. | // +----------------------------------+----------------------------------------------------------------------------------+ // | 0x80070057 E_INVALIDARG | The item parameter is not a value type. | // +----------------------------------+----------------------------------------------------------------------------------+ Add(context.Context, *AddRequest) (*AddResponse, error) // The Remove method removes an object from the collection of Objects Being Enumerated. // // Return Values: The method MUST return zero on success, or a nonzero error code on // failure. // // +-------------------------+----------------------------------------------------------------------------------+ // | RETURN | | // | VALUE/CODE | DESCRIPTION | // | | | // +-------------------------+----------------------------------------------------------------------------------+ // +-------------------------+----------------------------------------------------------------------------------+ // | 0x80070057 E_INVALIDARG | The index is out of range; the index is less than one or greater than the size | // | | of the collection. | // +-------------------------+----------------------------------------------------------------------------------+ Remove(context.Context, *RemoveRequest) (*RemoveResponse, error) // The RemoveById method removes from the collection of Objects Being Enumerated the // object whose ID matches the specified id. // // Return Values: The method MUST return zero on success, or a nonzero error code on // failure. // // +-----------------------------+------------------------------------------------------------------+ // | RETURN | | // | VALUE/CODE | DESCRIPTION | // | | | // +-----------------------------+------------------------------------------------------------------+ // +-----------------------------+------------------------------------------------------------------+ // | 0x80045301 FSRM_E_NOT_FOUND | An object with the specified ID was not found in the collection. | // +-----------------------------+------------------------------------------------------------------+ RemoveByID(context.Context, *RemoveByIDRequest) (*RemoveByIDResponse, error) // The Clone method returns a copy of the collection of Objects Being Enumerated. // // Return Values: The method MUST return a nonzero error code. Upon receiving this message, // the server MUST return E_NOTIMPL. Clone(context.Context, *CloneRequest) (*CloneResponse, error) }
IFsrmMutableCollection server interface.
type RemoveByIDRequest ¶
type RemoveByIDRequest struct { // This: ORPCTHIS structure that is used to send ORPC extension data to the server. This *dcom.ORPCThis `idl:"name:This" json:"this"` // id: The ID to match for identifying the object to be removed. ID *fsrm.ObjectID `idl:"name:id" json:"id"` }
RemoveByIDRequest structure represents the RemoveById operation request
func (*RemoveByIDRequest) MarshalNDR ¶
func (*RemoveByIDRequest) UnmarshalNDR ¶
type RemoveByIDResponse ¶
type RemoveByIDResponse 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 RemoveById return value. Return int32 `idl:"name:Return" json:"return"` }
RemoveByIDResponse structure represents the RemoveById operation response
func (*RemoveByIDResponse) MarshalNDR ¶
func (*RemoveByIDResponse) UnmarshalNDR ¶
type RemoveRequest ¶
type RemoveRequest struct { // This: ORPCTHIS structure that is used to send ORPC extension data to the server. This *dcom.ORPCThis `idl:"name:This" json:"this"` // index: Contains the position of the object to remove from the collection of Objects // Being Enumerated. Index int32 `idl:"name:index" json:"index"` }
RemoveRequest structure represents the Remove operation request
func (*RemoveRequest) MarshalNDR ¶
func (*RemoveRequest) UnmarshalNDR ¶
type RemoveResponse ¶
type RemoveResponse 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 Remove return value. Return int32 `idl:"name:Return" json:"return"` }
RemoveResponse structure represents the Remove operation response
func (*RemoveResponse) MarshalNDR ¶
func (*RemoveResponse) UnmarshalNDR ¶
Click to show internal directories.
Click to hide internal directories.