nlid

package
v0.0.0-...-6cfc1b2 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MinIDValueLength = 8
	MaxIDValueLength = 40 // This is at least a UUID. every string larger that than is considered low chance of being an ID
)
View Source
const (
	NLIDRingBufferSize = 1024
)
View Source
const (
	NLIDType = "NLID"
)

Variables

View Source
var IDKeys = [...]string{"id", "ids", "identifier", "identifiers"}

Functions

This section is empty.

Types

type APIAnnotationNLID

type APIAnnotationNLID struct {
	utils.BaseTraceAnalyzerAPIAnnotation
	ParamNames map[string]bool `json:"parameters"`
}

func NewAPIAnnotationNLID

func NewAPIAnnotationNLID(path, method string) *APIAnnotationNLID

func (*APIAnnotationNLID) Aggregate

func (a *APIAnnotationNLID) Aggregate(ann utils.TraceAnalyzerAnnotation) (updated bool)

func (*APIAnnotationNLID) Name

func (a *APIAnnotationNLID) Name() string

func (APIAnnotationNLID) Redacted

func (APIAnnotationNLID) Severity

func (a APIAnnotationNLID) Severity() string

func (*APIAnnotationNLID) ToAPIFinding

func (a *APIAnnotationNLID) ToAPIFinding() oapicommon.APIFinding

type AnnotationNLID

type AnnotationNLID struct {
	Params []parameter `json:"parameters"`
}

func NewAnnotationNLID

func NewAnnotationNLID(path, method string, parameters []parameter) *AnnotationNLID

func (*AnnotationNLID) Name

func (a *AnnotationNLID) Name() string

func (AnnotationNLID) NewAPIAnnotation

func (a AnnotationNLID) NewAPIAnnotation(path, method string) utils.TraceAnalyzerAPIAnnotation

func (AnnotationNLID) Redacted

func (*AnnotationNLID) Severity

func (a *AnnotationNLID) Severity() string

func (*AnnotationNLID) ToFinding

func (a *AnnotationNLID) ToFinding() utils.Finding

type NLID

type NLID struct {
	// contains filtered or unexported fields
}

func NewNLID

func NewNLID(historySize int) *NLID

func (*NLID) Analyze

func (n *NLID) Analyze(path, method string, pathParams map[string]string, trace *pluginsmodels.Telemetry) (eventAnns []utils.TraceAnalyzerAnnotation, apiAnns []utils.TraceAnalyzerAPIAnnotation)

type Reason

type Reason map[string]interface{}

Jump to

Keyboard shortcuts

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