rules

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Rule

type Rule interface {
	ID() string
	Evaluate(context.Context, traces.Trace, analyzer.LinterRule) (analyzer.RuleResult, error)
}

func NewEnforceDnsUsageRule

func NewEnforceDnsUsageRule() Rule

func NewEnforceHttpsProtocolRule

func NewEnforceHttpsProtocolRule() Rule

func NewEnsureAttributeNamingRule

func NewEnsureAttributeNamingRule() Rule

func NewEnsureSpanNamingRule

func NewEnsureSpanNamingRule() Rule

func NewEnsuresNoApiKeyLeakRule

func NewEnsuresNoApiKeyLeakRule() Rule

func NewNotEmptyAttributesRule

func NewNotEmptyAttributesRule() Rule

func NewRequiredAttributesRule

func NewRequiredAttributesRule() Rule

type RuleRegistry

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

func NewRegistry

func NewRegistry() *RuleRegistry

func (*RuleRegistry) Get

func (r *RuleRegistry) Get(ruleName string) (Rule, error)

func (*RuleRegistry) List

func (r *RuleRegistry) List() []string

func (*RuleRegistry) Register

func (r *RuleRegistry) Register(rule Rule) *RuleRegistry

Jump to

Keyboard shortcuts

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