rule

package
v0.0.33 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseRuler

type BaseRuler struct {
}

BaseRuler represents a base implementation of rule.Ruler

func NewBaseRuler added in v0.0.22

func NewBaseRuler(moduleName ...string) *BaseRuler

NewBaseRuler returns a BaseRuler

func (*BaseRuler) IsIntra

func (r *BaseRuler) IsIntra(_f any) bool

IsIntra returns whether a node is from target module

func (*BaseRuler) IsSink

func (r *BaseRuler) IsSink(_f any) bool

IsSink returns whether a node is a sink

func (*BaseRuler) IsSource

func (r *BaseRuler) IsSource(_f any) bool

IsSource returns whether a node is a source

type Ruler

type Ruler interface {
	IsSink(any) bool
	IsSource(any) bool
	IsIntra(any) bool
}

Ruler defines whether a node is interesting in taint analysis

Jump to

Keyboard shortcuts

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