Documentation ¶
Index ¶
- Variables
- func EndpointMapper(ctx context.Context, addr string, opts ...dcerpc.Option) dcerpc.Option
- func EpmServerHandle(ctx context.Context, o EpmServer, opNum int, r ndr.Reader) (dcerpc.Operation, error)
- func NewEpmServerHandle(o EpmServer) dcerpc.ServerHandle
- func NewMapper(ctx context.Context, addr string, opts ...dcerpc.Option) dcerpc.EndpointMapper
- func RegisterEpmServer(conn dcerpc.Conn, o EpmServer, opts ...dcerpc.Option)
- type DeleteRequest
- type DeleteResponse
- type Entry
- type EpmClient
- type EpmServer
- type InquireObjectRequest
- type InquireObjectResponse
- type InsertRequest
- type InsertResponse
- type LookupHandle
- type LookupHandleFreeRequest
- type LookupHandleFreeResponse
- type LookupRequest
- type LookupResponse
- type ManagementDeleteRequest
- type ManagementDeleteResponse
- type MapRequest
- type MapResponse
- type Mapper
Constants ¶
This section is empty.
Variables ¶
var ( // Syntax UUID EpmSyntaxUUID = &uuid.UUID{TimeLow: 0xe1af8308, TimeMid: 0x5d1f, TimeHiAndVersion: 0x11c9, ClockSeqHiAndReserved: 0x91, ClockSeqLow: 0xa4, Node: [6]uint8{0x8, 0x0, 0x2b, 0x14, 0xa0, 0xfa}} // Syntax ID EpmSyntaxV3_0 = &dcerpc.SyntaxID{IfUUID: EpmSyntaxUUID, IfVersionMajor: 3, IfVersionMinor: 0} )
var (
// import guard
GoPackage = "epm"
)
var MaxAnnotationSize = 64
MaxAnnotationSize represents the ept_max_annotation_size RPC constant
Functions ¶
func EndpointMapper ¶
func EpmServerHandle ¶
func NewEpmServerHandle ¶
func NewEpmServerHandle(o EpmServer) dcerpc.ServerHandle
Types ¶
type DeleteRequest ¶
type DeleteRequest struct { EntriesLength uint32 `idl:"name:num_ents" json:"entries_length"` Entries []*Entry `idl:"name:entries;size_is:(num_ents)" json:"entries"` }
DeleteRequest structure represents the ept_delete operation request
func (*DeleteRequest) MarshalNDR ¶
func (*DeleteRequest) UnmarshalNDR ¶
type DeleteResponse ¶
type DeleteResponse struct {
Status uint32 `idl:"name:status" json:"status"`
}
DeleteResponse structure represents the ept_delete operation response
func (*DeleteResponse) MarshalNDR ¶
func (*DeleteResponse) UnmarshalNDR ¶
type Entry ¶
type Entry struct { Object *dtyp.GUID `idl:"name:object" json:"object"` Tower *dcetypes.Tower `idl:"name:tower" json:"tower"` Annotation string `idl:"name:annotation;string" json:"annotation"` }
Entry structure represents ept_entry_t RPC structure.
type EpmClient ¶
type EpmClient interface { // ept_insert operation. Insert(context.Context, *InsertRequest, ...dcerpc.CallOption) (*InsertResponse, error) // ept_delete operation. Delete(context.Context, *DeleteRequest, ...dcerpc.CallOption) (*DeleteResponse, error) // ept_lookup operation. Lookup(context.Context, *LookupRequest, ...dcerpc.CallOption) (*LookupResponse, error) // ept_map operation. Map(context.Context, *MapRequest, ...dcerpc.CallOption) (*MapResponse, error) // ept_lookup_handle_free operation. LookupHandleFree(context.Context, *LookupHandleFreeRequest, ...dcerpc.CallOption) (*LookupHandleFreeResponse, error) // ept_inq_object operation. InquireObject(context.Context, *InquireObjectRequest, ...dcerpc.CallOption) (*InquireObjectResponse, error) // ept_mgmt_delete operation. ManagementDelete(context.Context, *ManagementDeleteRequest, ...dcerpc.CallOption) (*ManagementDeleteResponse, error) // AlterContext alters the client context. AlterContext(context.Context, ...dcerpc.Option) error // Conn returns the client connection (unsafe) Conn() dcerpc.Conn }
epm interface.
type EpmServer ¶
type EpmServer interface { // ept_insert operation. Insert(context.Context, *InsertRequest) (*InsertResponse, error) // ept_delete operation. Delete(context.Context, *DeleteRequest) (*DeleteResponse, error) // ept_lookup operation. Lookup(context.Context, *LookupRequest) (*LookupResponse, error) // ept_map operation. Map(context.Context, *MapRequest) (*MapResponse, error) // ept_lookup_handle_free operation. LookupHandleFree(context.Context, *LookupHandleFreeRequest) (*LookupHandleFreeResponse, error) // ept_inq_object operation. InquireObject(context.Context, *InquireObjectRequest) (*InquireObjectResponse, error) // ept_mgmt_delete operation. ManagementDelete(context.Context, *ManagementDeleteRequest) (*ManagementDeleteResponse, error) }
epm server interface.
type InquireObjectRequest ¶
type InquireObjectRequest struct { }
InquireObjectRequest structure represents the ept_inq_object operation request
func (*InquireObjectRequest) MarshalNDR ¶
func (*InquireObjectRequest) UnmarshalNDR ¶
type InquireObjectResponse ¶
type InquireObjectResponse struct { Object *dtyp.GUID `idl:"name:ept_object" json:"object"` Status uint32 `idl:"name:status" json:"status"` }
InquireObjectResponse structure represents the ept_inq_object operation response
func (*InquireObjectResponse) MarshalNDR ¶
func (*InquireObjectResponse) UnmarshalNDR ¶
type InsertRequest ¶
type InsertRequest struct { EntriesLength uint32 `idl:"name:num_ents" json:"entries_length"` Entries []*Entry `idl:"name:entries;size_is:(num_ents)" json:"entries"` Replace bool `idl:"name:replace" json:"replace"` }
InsertRequest structure represents the ept_insert operation request
func (*InsertRequest) MarshalNDR ¶
func (*InsertRequest) UnmarshalNDR ¶
type InsertResponse ¶
type InsertResponse struct {
Status uint32 `idl:"name:status" json:"status"`
}
InsertResponse structure represents the ept_insert operation response
func (*InsertResponse) MarshalNDR ¶
func (*InsertResponse) UnmarshalNDR ¶
type LookupHandle ¶
type LookupHandle dcetypes.ContextHandle
LookupHandle structure represents ept_lookup_handle_t RPC structure.
func (*LookupHandle) ContextHandle ¶
func (o *LookupHandle) ContextHandle() *dcetypes.ContextHandle
func (*LookupHandle) MarshalNDR ¶
func (*LookupHandle) UnmarshalNDR ¶
type LookupHandleFreeRequest ¶
type LookupHandleFreeRequest struct {
EntryHandle *LookupHandle `idl:"name:entry_handle" json:"entry_handle"`
}
LookupHandleFreeRequest structure represents the ept_lookup_handle_free operation request
func (*LookupHandleFreeRequest) MarshalNDR ¶
func (*LookupHandleFreeRequest) UnmarshalNDR ¶
type LookupHandleFreeResponse ¶
type LookupHandleFreeResponse struct { EntryHandle *LookupHandle `idl:"name:entry_handle" json:"entry_handle"` Status uint32 `idl:"name:status" json:"status"` }
LookupHandleFreeResponse structure represents the ept_lookup_handle_free operation response
func (*LookupHandleFreeResponse) MarshalNDR ¶
func (*LookupHandleFreeResponse) UnmarshalNDR ¶
type LookupRequest ¶
type LookupRequest struct { InquiryType uint32 `idl:"name:inquiry_type" json:"inquiry_type"` Object *dtyp.GUID `idl:"name:object" json:"object"` InterfaceID *dcetypes.InterfaceID `idl:"name:interface_id" json:"interface_id"` VersOption uint32 `idl:"name:vers_option" json:"vers_option"` EntryHandle *LookupHandle `idl:"name:entry_handle" json:"entry_handle"` MaxEntries uint32 `idl:"name:max_ents" json:"max_entries"` }
LookupRequest structure represents the ept_lookup operation request
func (*LookupRequest) MarshalNDR ¶
func (*LookupRequest) UnmarshalNDR ¶
type LookupResponse ¶
type LookupResponse struct { EntryHandle *LookupHandle `idl:"name:entry_handle" json:"entry_handle"` EntriesLength uint32 `idl:"name:num_ents" json:"entries_length"` Entries []*Entry `idl:"name:entries;size_is:(max_ents);length_is:(num_ents)" json:"entries"` Status uint32 `idl:"name:status" json:"status"` }
LookupResponse structure represents the ept_lookup operation response
func (*LookupResponse) MarshalNDR ¶
func (*LookupResponse) UnmarshalNDR ¶
type ManagementDeleteRequest ¶
type ManagementDeleteRequest struct { ObjectSpeced bool `idl:"name:object_speced" json:"object_speced"` Object *dtyp.GUID `idl:"name:object" json:"object"` Tower *dcetypes.Tower `idl:"name:tower" json:"tower"` }
ManagementDeleteRequest structure represents the ept_mgmt_delete operation request
func (*ManagementDeleteRequest) MarshalNDR ¶
func (*ManagementDeleteRequest) UnmarshalNDR ¶
type ManagementDeleteResponse ¶
type ManagementDeleteResponse struct {
Status uint32 `idl:"name:status" json:"status"`
}
ManagementDeleteResponse structure represents the ept_mgmt_delete operation response
func (*ManagementDeleteResponse) MarshalNDR ¶
func (*ManagementDeleteResponse) UnmarshalNDR ¶
type MapRequest ¶
type MapRequest struct { Object *dtyp.GUID `idl:"name:object" json:"object"` MapTower *dcetypes.Tower `idl:"name:map_tower" json:"map_tower"` EntryHandle *LookupHandle `idl:"name:entry_handle" json:"entry_handle"` MaxTowers uint32 `idl:"name:max_towers" json:"max_towers"` }
MapRequest structure represents the ept_map operation request
func (*MapRequest) MarshalNDR ¶
func (*MapRequest) UnmarshalNDR ¶
type MapResponse ¶
type MapResponse struct { EntryHandle *LookupHandle `idl:"name:entry_handle" json:"entry_handle"` TowersLength uint32 `idl:"name:num_towers" json:"towers_length"` Towers []*dcetypes.Tower `idl:"name:towers;size_is:(max_towers);length_is:(num_towers)" json:"towers"` Status uint32 `idl:"name:status" json:"status"` }
MapResponse structure represents the ept_map operation response