extendederror

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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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}
)
View Source
var (
	// import guard
	GoPackage = "eerr"
)

Functions

func ExtendedErrorServerHandle

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

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

func (*ANSIString) UnmarshalNDR

func (o *ANSIString) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

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

func (*BinaryInfo) UnmarshalNDR

func (o *BinaryInfo) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

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

func (*ComputerName) UnmarshalNDR

func (o *ComputerName) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

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

func (*ComputerName_2) UnmarshalNDR

func (o *ComputerName_2) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

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 (o *ComputerName_ComputerName) MarshalUnionNDR(ctx context.Context, w ndr.Writer, sw int16) error

func (*ComputerName_ComputerName) NDRSwitchValue

func (o *ComputerName_ComputerName) NDRSwitchValue(sw int16) int16

func (*ComputerName_ComputerName) UnmarshalUnionNDR

func (o *ComputerName_ComputerName) UnmarshalUnionNDR(ctx context.Context, w ndr.Reader, sw int16) error

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

func (*ComputerName_Name) UnmarshalNDR

func (o *ComputerName_Name) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ExtendedErrorClient

type ExtendedErrorClient interface {

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

ExtendedError interface.

func NewExtendedErrorClient

func NewExtendedErrorClient(ctx context.Context, cc dcerpc.Conn, opts ...dcerpc.Option) (ExtendedErrorClient, error)

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

func (*ExtendedErrorInfo) NDRSizeInfo

func (o *ExtendedErrorInfo) NDRSizeInfo() []uint64

func (*ExtendedErrorInfo) UnmarshalNDR

func (o *ExtendedErrorInfo) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

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

func (*ExtendedErrorParam) UnmarshalNDR

func (o *ExtendedErrorParam) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

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

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

func (*ExtendedErrorParam_6) UnmarshalNDR

func (o *ExtendedErrorParam_6) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

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

func (o *ExtendedErrorParam_ANSIString) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

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

func (*ExtendedErrorParam_Blob) UnmarshalNDR

func (o *ExtendedErrorParam_Blob) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

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 (*ExtendedErrorParam_ExtendedErrorParam) MarshalUnionNDR

func (*ExtendedErrorParam_ExtendedErrorParam) NDRSwitchValue

func (o *ExtendedErrorParam_ExtendedErrorParam) NDRSwitchValue(sw int16) int16

func (*ExtendedErrorParam_ExtendedErrorParam) UnmarshalUnionNDR

func (o *ExtendedErrorParam_ExtendedErrorParam) UnmarshalUnionNDR(ctx context.Context, w ndr.Reader, sw int16) error

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

func (*ExtendedErrorParam_LValue) UnmarshalNDR

func (o *ExtendedErrorParam_LValue) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

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

func (*ExtendedErrorParam_PValue) UnmarshalNDR

func (o *ExtendedErrorParam_PValue) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

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

func (*ExtendedErrorParam_Value) UnmarshalNDR

func (o *ExtendedErrorParam_Value) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

type ExtendedErrorServer

type ExtendedErrorServer interface {
}

ExtendedError server interface.

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.

func (*UnicodeString) MarshalNDR

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

func (*UnicodeString) UnmarshalNDR

func (o *UnicodeString) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL