ifsrmmutablecollection

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 (
	// 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 MutableCollectionServerHandle

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

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 (o *AddRequest) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*AddRequest) UnmarshalNDR

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

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 (o *AddResponse) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*AddResponse) UnmarshalNDR

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

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 (o *CloneRequest) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*CloneRequest) UnmarshalNDR

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

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 (o *CloneResponse) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*CloneResponse) UnmarshalNDR

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

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.

func NewMutableCollectionClient

func NewMutableCollectionClient(ctx context.Context, cc dcerpc.Conn, opts ...dcerpc.Option) (MutableCollectionClient, error)

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 (o *RemoveByIDRequest) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*RemoveByIDRequest) UnmarshalNDR

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

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 (o *RemoveByIDResponse) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*RemoveByIDResponse) UnmarshalNDR

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

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 (o *RemoveRequest) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*RemoveRequest) UnmarshalNDR

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

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 (o *RemoveResponse) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*RemoveResponse) UnmarshalNDR

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