Documentation ¶
Index ¶
- Variables
- func ExtendedErrorServerHandle(ctx context.Context, o ExtendedErrorServer, opNum int, r ndr.Reader) (dcerpc.Operation, error)
- func NewExtendedErrorServerHandle(o ExtendedErrorServer) dcerpc.ServerHandle
- func RegisterExtendedErrorServer(conn dcerpc.Conn, o ExtendedErrorServer, opts ...dcerpc.Option)
- type ANSIString
- type BinaryInfo
- type ComputerName
- type ComputerNamePresentType
- type ComputerName_2
- type ComputerName_ComputerName
- func (o *ComputerName_ComputerName) GetValue() any
- func (o *ComputerName_ComputerName) MarshalUnionNDR(ctx context.Context, w ndr.Writer, sw int16) error
- func (o *ComputerName_ComputerName) NDRSwitchValue(sw int16) int16
- func (o *ComputerName_ComputerName) UnmarshalUnionNDR(ctx context.Context, w ndr.Reader, sw int16) error
- type ComputerName_Name
- type ExtendedErrorClient
- type ExtendedErrorInfo
- type ExtendedErrorParam
- type ExtendedErrorParamTypesInternal
- type ExtendedErrorParam_6
- type ExtendedErrorParam_ANSIString
- type ExtendedErrorParam_Blob
- type ExtendedErrorParam_ExtendedErrorParam
- func (o *ExtendedErrorParam_ExtendedErrorParam) GetValue() any
- func (o *ExtendedErrorParam_ExtendedErrorParam) MarshalUnionNDR(ctx context.Context, w ndr.Writer, sw int16) error
- func (o *ExtendedErrorParam_ExtendedErrorParam) NDRSwitchValue(sw int16) int16
- func (o *ExtendedErrorParam_ExtendedErrorParam) UnmarshalUnionNDR(ctx context.Context, w ndr.Reader, sw int16) error
- type ExtendedErrorParam_LValue
- type ExtendedErrorParam_PValue
- type ExtendedErrorParam_UnicodeString
- type ExtendedErrorParam_Value
- type ExtendedErrorServer
- type UnicodeString
Constants ¶
This section is empty.
Variables ¶
var ( // Syntax UUID ExtendedErrorSyntaxUUID = &uuid.UUID{TimeLow: 0x14a8831c, TimeMid: 0xbc82, TimeHiAndVersion: 0x11d2, ClockSeqHiAndReserved: 0x8a, ClockSeqLow: 0x64, Node: [6]uint8{0x0, 0x8, 0xc7, 0x45, 0x7e, 0x5d}} // Syntax ID ExtendedErrorSyntaxV1_0 = &dcerpc.SyntaxID{IfUUID: ExtendedErrorSyntaxUUID, IfVersionMajor: 1, IfVersionMinor: 0} )
var (
// import guard
GoPackage = "eerr"
)
Functions ¶
func NewExtendedErrorServerHandle ¶
func NewExtendedErrorServerHandle(o ExtendedErrorServer) dcerpc.ServerHandle
func RegisterExtendedErrorServer ¶
func RegisterExtendedErrorServer(conn dcerpc.Conn, o ExtendedErrorServer, opts ...dcerpc.Option)
Types ¶
type ANSIString ¶
type ANSIString struct { // nLength: This field MUST contain the size of pString in bytes. Length int16 `idl:"name:nLength" json:"length"` // pString: A NULL-terminated ANSI string that contains troubleshooting information. String []byte `idl:"name:pString;size_is:(nLength)" json:"string"` }
ANSIString structure represents EEAString RPC structure.
The EEAString structure encodes strings of ANSI characters, as specified in ISO/IEC-8859-1, that contain troubleshooting information.
func (*ANSIString) MarshalNDR ¶
func (*ANSIString) UnmarshalNDR ¶
type BinaryInfo ¶
type BinaryInfo struct { // nSize: This field MUST contain the size of pBlob in bytes. Size int16 `idl:"name:nSize" json:"size"` // pBlob: Binary data that contains troubleshooting information. Blob []byte `idl:"name:pBlob;size_is:(nSize)" json:"blob"` }
BinaryInfo structure represents BinaryEEInfo RPC structure.
The BinaryEEInfo structure encodes binary data that contains troubleshooting information.
func (*BinaryInfo) MarshalNDR ¶
func (*BinaryInfo) UnmarshalNDR ¶
type ComputerName ¶
type ComputerName struct { // Type: Indicates the contents of a union. // // +------------------+----------------------------------------------------------------------------------+ // | | | // | VALUE | MEANING | // | | | // +------------------+----------------------------------------------------------------------------------+ // +------------------+----------------------------------------------------------------------------------+ // | eecnpPresent 1 | Network Node Identifier Name member of the union is valid and contains a network | // | | node identifier. | // +------------------+----------------------------------------------------------------------------------+ // | eecnNotPresent 2 | No Network Node Identifier This structure does not contain a network node | // | | identifier. | // +------------------+----------------------------------------------------------------------------------+ Type ComputerNamePresentType `idl:"name:Type" json:"type"` ComputerName *ComputerName_ComputerName `idl:"name:ComputerName;switch_is:Type" json:"computer_name"` }
ComputerName structure represents EEComputerName RPC structure.
The EEComputerName structure identifies the network node on which the error record was generated.
func (*ComputerName) MarshalNDR ¶
func (*ComputerName) UnmarshalNDR ¶
type ComputerNamePresentType ¶
type ComputerNamePresentType uint16
ComputerNamePresentType type represents EEComputerNamePresentType RPC enumeration.
var ( ComputerNamePresentTypePresent ComputerNamePresentType = 1 ComputerNamePresentTypeNotPresent ComputerNamePresentType = 2 )
func (ComputerNamePresentType) String ¶
func (o ComputerNamePresentType) String() string
type ComputerName_2 ¶
type ComputerName_2 struct { }
ComputerName_2 structure represents ComputerName_ComputerName RPC union arm.
It has following labels: 2
func (*ComputerName_2) MarshalNDR ¶
func (*ComputerName_2) UnmarshalNDR ¶
type ComputerName_ComputerName ¶
type ComputerName_ComputerName struct { // Types that are assignable to Value // // *ComputerName_Name // *ComputerName_2 Value is_ComputerName_ComputerName `json:"value"` }
ComputerName_ComputerName structure represents EEComputerName union anonymous member.
The EEComputerName structure identifies the network node on which the error record was generated.
func (*ComputerName_ComputerName) GetValue ¶
func (o *ComputerName_ComputerName) GetValue() any
func (*ComputerName_ComputerName) MarshalUnionNDR ¶
func (*ComputerName_ComputerName) NDRSwitchValue ¶
func (o *ComputerName_ComputerName) NDRSwitchValue(sw int16) int16
func (*ComputerName_ComputerName) UnmarshalUnionNDR ¶
type ComputerName_Name ¶
type ComputerName_Name struct { // Name: Unicode string that identifies the network node on which the error record // was generated. The format in which the network node is identified is implementation-specific, // and this information MUST be used for display purposes only. This specification does // not define what the format is. Software agents who use this structure SHOULD use // a network node identifier that is unique within a specific topology and is descriptive // to a human reader. If Type is equal to eecnpNotPresent, the error record MUST be // interpreted as generated on the local network node. Name *UnicodeString `idl:"name:Name" json:"name"` }
ComputerName_Name structure represents ComputerName_ComputerName RPC union arm.
It has following labels: 1
func (*ComputerName_Name) MarshalNDR ¶
func (*ComputerName_Name) UnmarshalNDR ¶
type ExtendedErrorClient ¶
type ExtendedErrorClient interface { // AlterContext alters the client context. AlterContext(context.Context, ...dcerpc.Option) error // Conn returns the client connection (unsafe) Conn() dcerpc.Conn }
ExtendedError interface.
func NewExtendedErrorClient ¶
type ExtendedErrorInfo ¶
type ExtendedErrorInfo struct { // Next: An error record for the immediate error cause for this error record. For the // root error, it MUST be set to NULL. Next *ExtendedErrorInfo `idl:"name:Next" json:"next"` // ComputerName: Network node identifier as specified in section 2.2.1.7. ComputerName *ComputerName `idl:"name:ComputerName" json:"computer_name"` // ProcessID: The ID of the process in which the error occurred. ProcessID uint32 `idl:"name:ProcessID" json:"process_id"` // TimeStamp: Time at which the error record was generated, which is expressed as the // number of 100-nanosecond intervals since January 1, 1601. It MUST be interpreted // as Coordinated Universal Time (UTC). Timestamp int64 `idl:"name:TimeStamp" json:"timestamp"` // GeneratingComponent: Component or protocol layer identifier where the error occurred // as described in section 1.3.1. GeneratingComponent uint32 `idl:"name:GeneratingComponent" json:"generating_component"` // Status: Error code as described in section 1.3.1. Status uint32 `idl:"name:Status" json:"status"` // DetectionLocation: Location where the error occurred as described in section 1.3.1. DetectionLocation uint16 `idl:"name:DetectionLocation" json:"detection_location"` // Flags: One or more flags that specify the presence or absence of other error records // in the error sequence. // // +--------+----------------------------------------------------------------------------------+ // | | | // | VALUE | MEANING | // | | | // +--------+----------------------------------------------------------------------------------+ // +--------+----------------------------------------------------------------------------------+ // | 0x0000 | All of the error records from the error sequence are present in the encoding. | // +--------+----------------------------------------------------------------------------------+ // | 0x0001 | One or more error records from the error sequence before the current record are | // | | not present in the encoding. | // +--------+----------------------------------------------------------------------------------+ // | 0x0002 | One or more error records from the error sequence after the current record are | // | | not present in the encoding. | // +--------+----------------------------------------------------------------------------------+ Flags uint16 `idl:"name:Flags" json:"flags"` // nLen: Number of elements in the Params array. MUST be less than or equal to 4. Length int16 `idl:"name:nLen" json:"length"` // Params: Array of error parameters as described in the data model in section 1.3.1. Params []*ExtendedErrorParam `idl:"name:Params;size_is:(nLen)" json:"params"` }
ExtendedErrorInfo structure represents ExtendedErrorInfo RPC structure.
The ExtendedErrorInfo structure represents an error record.
func (*ExtendedErrorInfo) MarshalNDR ¶
func (*ExtendedErrorInfo) NDRSizeInfo ¶
func (o *ExtendedErrorInfo) NDRSizeInfo() []uint64
func (*ExtendedErrorInfo) UnmarshalNDR ¶
type ExtendedErrorParam ¶
type ExtendedErrorParam struct { // Type: Indicates which member of the union is valid. ExtendedErrorParamTypesInternal // lists all of the possible values. Type ExtendedErrorParamTypesInternal `idl:"name:Type" json:"type"` ExtendedErrorParam *ExtendedErrorParam_ExtendedErrorParam `idl:"name:ExtendedErrorParam;switch_is:Type" json:"extended_error_param"` }
ExtendedErrorParam structure represents ExtendedErrorParam RPC structure.
The ExtendedErrorParam structure contains a parameter, as described in section 1.3.1, that provides additional details about the error record.
func (*ExtendedErrorParam) MarshalNDR ¶
func (*ExtendedErrorParam) UnmarshalNDR ¶
type ExtendedErrorParamTypesInternal ¶
type ExtendedErrorParamTypesInternal uint16
ExtendedErrorParamTypesInternal type represents ExtendedErrorParamTypesInternal RPC enumeration.
The ExtendedErrorParamTypesInternal enumeration defines the values that are valid for the Type field in the ExtendedErrorParam structure.
var ( // eeptiAnsiString: The ANSIString member of the union is valid. ExtendedErrorParamTypesInternalANSIString ExtendedErrorParamTypesInternal = 1 // eeptiUnicodeString: The UnicodeString member of the union is valid. ExtendedErrorParamTypesInternalUnicodeString ExtendedErrorParamTypesInternal = 2 // eeptiLongVal: The LVal member of the union is valid. LVal is used to encode a long. ExtendedErrorParamTypesInternalLongValue ExtendedErrorParamTypesInternal = 3 // eeptiShortValue: The IVal member of the union is valid. IVal is used to encode // a short. ExtendedErrorParamTypesInternalShortValue ExtendedErrorParamTypesInternal = 4 // eeptiPointerValue: The PVal member of the union is valid. PVal is used to encode // an __int64. ExtendedErrorParamTypesInternalPointerValue ExtendedErrorParamTypesInternal = 5 // eeptiNone: No additional details are present in this parameter. ExtendedErrorParamTypesInternalNone ExtendedErrorParamTypesInternal = 6 // eeptiBinary: The Blob member of the union is valid. ExtendedErrorParamTypesInternalBinary ExtendedErrorParamTypesInternal = 7 )
func (ExtendedErrorParamTypesInternal) String ¶
func (o ExtendedErrorParamTypesInternal) String() string
type ExtendedErrorParam_6 ¶
type ExtendedErrorParam_6 struct { }
ExtendedErrorParam_6 structure represents ExtendedErrorParam_ExtendedErrorParam RPC union arm.
It has following labels: 6
func (*ExtendedErrorParam_6) MarshalNDR ¶
func (*ExtendedErrorParam_6) UnmarshalNDR ¶
type ExtendedErrorParam_ANSIString ¶
type ExtendedErrorParam_ANSIString struct { // AnsiString: A parameter of type EEAString. ANSIString *ANSIString `idl:"name:AnsiString" json:"ansi_string"` }
ExtendedErrorParam_ANSIString structure represents ExtendedErrorParam_ExtendedErrorParam RPC union arm.
It has following labels: 1
func (*ExtendedErrorParam_ANSIString) MarshalNDR ¶
func (*ExtendedErrorParam_ANSIString) UnmarshalNDR ¶
type ExtendedErrorParam_Blob ¶
type ExtendedErrorParam_Blob struct { // Blob: A parameter of type BinaryEEInfo. Blob *BinaryInfo `idl:"name:Blob" json:"blob"` }
ExtendedErrorParam_Blob structure represents ExtendedErrorParam_ExtendedErrorParam RPC union arm.
It has following labels: 7
func (*ExtendedErrorParam_Blob) MarshalNDR ¶
func (*ExtendedErrorParam_Blob) UnmarshalNDR ¶
type ExtendedErrorParam_ExtendedErrorParam ¶
type ExtendedErrorParam_ExtendedErrorParam struct { // Types that are assignable to Value // // *ExtendedErrorParam_ANSIString // *ExtendedErrorParam_UnicodeString // *ExtendedErrorParam_LValue // *ExtendedErrorParam_Value // *ExtendedErrorParam_PValue // *ExtendedErrorParam_6 // *ExtendedErrorParam_Blob Value is_ExtendedErrorParam_ExtendedErrorParam `json:"value"` }
ExtendedErrorParam_ExtendedErrorParam structure represents ExtendedErrorParam union anonymous member.
The ExtendedErrorParam structure contains a parameter, as described in section 1.3.1, that provides additional details about the error record.
func (*ExtendedErrorParam_ExtendedErrorParam) GetValue ¶
func (o *ExtendedErrorParam_ExtendedErrorParam) GetValue() any
func (*ExtendedErrorParam_ExtendedErrorParam) MarshalUnionNDR ¶
func (*ExtendedErrorParam_ExtendedErrorParam) NDRSwitchValue ¶
func (o *ExtendedErrorParam_ExtendedErrorParam) NDRSwitchValue(sw int16) int16
func (*ExtendedErrorParam_ExtendedErrorParam) UnmarshalUnionNDR ¶
type ExtendedErrorParam_LValue ¶
type ExtendedErrorParam_LValue struct { // LVal: This parameter MUST be used to encode long values that contain troubleshooting // information. LValue int32 `idl:"name:LVal" json:"l_value"` }
ExtendedErrorParam_LValue structure represents ExtendedErrorParam_ExtendedErrorParam RPC union arm.
It has following labels: 3
func (*ExtendedErrorParam_LValue) MarshalNDR ¶
func (*ExtendedErrorParam_LValue) UnmarshalNDR ¶
type ExtendedErrorParam_PValue ¶
type ExtendedErrorParam_PValue struct { // PVal: This parameter MUST be used to encode 64-bit integer values that contain troubleshooting // information. PValue int64 `idl:"name:PVal" json:"p_value"` }
ExtendedErrorParam_PValue structure represents ExtendedErrorParam_ExtendedErrorParam RPC union arm.
It has following labels: 5
func (*ExtendedErrorParam_PValue) MarshalNDR ¶
func (*ExtendedErrorParam_PValue) UnmarshalNDR ¶
type ExtendedErrorParam_UnicodeString ¶
type ExtendedErrorParam_UnicodeString struct { // UnicodeString: A parameter of type EEUString. UnicodeString *UnicodeString `idl:"name:UnicodeString" json:"unicode_string"` }
ExtendedErrorParam_UnicodeString structure represents ExtendedErrorParam_ExtendedErrorParam RPC union arm.
It has following labels: 2
func (*ExtendedErrorParam_UnicodeString) MarshalNDR ¶
func (*ExtendedErrorParam_UnicodeString) UnmarshalNDR ¶
type ExtendedErrorParam_Value ¶
type ExtendedErrorParam_Value struct { // IVal: This parameter MUST be used to encode integer values that contain troubleshooting // information. Value int16 `idl:"name:IVal" json:"value"` }
ExtendedErrorParam_Value structure represents ExtendedErrorParam_ExtendedErrorParam RPC union arm.
It has following labels: 4
func (*ExtendedErrorParam_Value) MarshalNDR ¶
func (*ExtendedErrorParam_Value) UnmarshalNDR ¶
type UnicodeString ¶
type UnicodeString struct { // nLength: This field MUST contain the length of pString in characters. Length int16 `idl:"name:nLength" json:"length"` // pString: A NULL-terminated Unicode string that contains troubleshooting information. String []uint16 `idl:"name:pString;size_is:(nLength)" json:"string"` }
UnicodeString structure represents EEUString RPC structure.
The EEUString structure encodes Unicode strings that contain troubleshooting information. The EEComputerName structure uses this type.