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) List ¶
func (r *RuleRegistry) List() []string
func (*RuleRegistry) Register ¶
func (r *RuleRegistry) Register(rule Rule) *RuleRegistry
Click to show internal directories.
Click to hide internal directories.