ifsrmobject

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 13, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// IFsrmObject interface identifier 22bcef93-4a3f-4183-89f9-2f8b8a628aee
	ObjectIID = &dcom.IID{Data1: 0x22bcef93, Data2: 0x4a3f, Data3: 0x4183, Data4: []byte{0x89, 0xf9, 0x2f, 0x8b, 0x8a, 0x62, 0x8a, 0xee}}
	// Syntax UUID
	ObjectSyntaxUUID = &uuid.UUID{TimeLow: 0x22bcef93, TimeMid: 0x4a3f, TimeHiAndVersion: 0x4183, ClockSeqHiAndReserved: 0x89, ClockSeqLow: 0xf9, Node: [6]uint8{0x2f, 0x8b, 0x8a, 0x62, 0x8a, 0xee}}
	// Syntax ID
	ObjectSyntaxV0_0 = &dcerpc.SyntaxID{IfUUID: ObjectSyntaxUUID, IfVersionMajor: 0, IfVersionMinor: 0}
)
View Source
var (
	// import guard
	GoPackage = "dcom/fsrm"
)

Functions

func NewObjectServerHandle

func NewObjectServerHandle(o ObjectServer) dcerpc.ServerHandle

func ObjectServerHandle

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

func RegisterObjectServer

func RegisterObjectServer(conn dcerpc.Conn, o ObjectServer, opts ...dcerpc.Option)

Types

type CommitRequest

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

CommitRequest structure represents the Commit operation request

func (*CommitRequest) MarshalNDR

func (o *CommitRequest) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*CommitRequest) UnmarshalNDR

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

type CommitResponse

type CommitResponse 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 Commit return value.
	Return int32 `idl:"name:Return" json:"return"`
}

CommitResponse structure represents the Commit operation response

func (*CommitResponse) MarshalNDR

func (o *CommitResponse) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*CommitResponse) UnmarshalNDR

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

type DeleteRequest

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

DeleteRequest structure represents the Delete operation request

func (*DeleteRequest) MarshalNDR

func (o *DeleteRequest) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*DeleteRequest) UnmarshalNDR

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

type DeleteResponse

type DeleteResponse 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 Delete return value.
	Return int32 `idl:"name:Return" json:"return"`
}

DeleteResponse structure represents the Delete operation response

func (*DeleteResponse) MarshalNDR

func (o *DeleteResponse) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*DeleteResponse) UnmarshalNDR

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

type GetDescriptionRequest

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

GetDescriptionRequest structure represents the Description operation request

func (*GetDescriptionRequest) MarshalNDR

func (o *GetDescriptionRequest) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*GetDescriptionRequest) UnmarshalNDR

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

type GetDescriptionResponse

type GetDescriptionResponse struct {
	// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
	That        *dcom.ORPCThat `idl:"name:That" json:"that"`
	Description *oaut.String   `idl:"name:description" json:"description"`
	// Return: The Description return value.
	Return int32 `idl:"name:Return" json:"return"`
}

GetDescriptionResponse structure represents the Description operation response

func (*GetDescriptionResponse) MarshalNDR

func (o *GetDescriptionResponse) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*GetDescriptionResponse) UnmarshalNDR

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

type GetIDRequest

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

GetIDRequest structure represents the Id operation request

func (*GetIDRequest) MarshalNDR

func (o *GetIDRequest) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*GetIDRequest) UnmarshalNDR

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

type GetIDResponse

type GetIDResponse struct {
	// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
	That *dcom.ORPCThat `idl:"name:That" json:"that"`
	ID   *fsrm.ObjectID `idl:"name:id" json:"id"`
	// Return: The Id return value.
	Return int32 `idl:"name:Return" json:"return"`
}

GetIDResponse structure represents the Id operation response

func (*GetIDResponse) MarshalNDR

func (o *GetIDResponse) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*GetIDResponse) UnmarshalNDR

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

type ObjectClient

type ObjectClient interface {

	// IDispatch retrieval method.
	Dispatch() idispatch.DispatchClient

	// Id operation.
	GetID(context.Context, *GetIDRequest, ...dcerpc.CallOption) (*GetIDResponse, error)

	// Description operation.
	GetDescription(context.Context, *GetDescriptionRequest, ...dcerpc.CallOption) (*GetDescriptionResponse, error)

	// Description operation.
	SetDescription(context.Context, *SetDescriptionRequest, ...dcerpc.CallOption) (*SetDescriptionResponse, error)

	// Delete operation.
	Delete(context.Context, *DeleteRequest, ...dcerpc.CallOption) (*DeleteResponse, error)

	// Commit operation.
	Commit(context.Context, *CommitRequest, ...dcerpc.CallOption) (*CommitResponse, error)

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

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

IFsrmObject interface.

func NewObjectClient

func NewObjectClient(ctx context.Context, cc dcerpc.Conn, opts ...dcerpc.Option) (ObjectClient, error)

type ObjectServer

type ObjectServer interface {

	// IDispatch base class.
	idispatch.DispatchServer

	// Id operation.
	GetID(context.Context, *GetIDRequest) (*GetIDResponse, error)

	// Description operation.
	GetDescription(context.Context, *GetDescriptionRequest) (*GetDescriptionResponse, error)

	// Description operation.
	SetDescription(context.Context, *SetDescriptionRequest) (*SetDescriptionResponse, error)

	// Delete operation.
	Delete(context.Context, *DeleteRequest) (*DeleteResponse, error)

	// Commit operation.
	Commit(context.Context, *CommitRequest) (*CommitResponse, error)
}

IFsrmObject server interface.

type SetDescriptionRequest

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

SetDescriptionRequest structure represents the Description operation request

func (*SetDescriptionRequest) MarshalNDR

func (o *SetDescriptionRequest) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*SetDescriptionRequest) UnmarshalNDR

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

type SetDescriptionResponse

type SetDescriptionResponse 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 Description return value.
	Return int32 `idl:"name:Return" json:"return"`
}

SetDescriptionResponse structure represents the Description operation response

func (*SetDescriptionResponse) MarshalNDR

func (o *SetDescriptionResponse) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*SetDescriptionResponse) UnmarshalNDR

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