Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Signature ¶
type Signature interface { GetMetadata() SignatureMetadata OnEvent(event *types.Event) *castpb.SignatureFinding }
func DefaultSignatures ¶
type SignatureEngine ¶
type SignatureEngine struct {
// contains filtered or unexported fields
}
func NewEngine ¶
func NewEngine(signatures []Signature, log *logging.Logger, cfg SignatureEngineConfig) *SignatureEngine
func (*SignatureEngine) EventInput ¶
func (e *SignatureEngine) EventInput() chan<- *types.Event
func (*SignatureEngine) Events ¶
func (e *SignatureEngine) Events() <-chan *castpb.Event
func (*SignatureEngine) QueueEvent ¶
func (e *SignatureEngine) QueueEvent(event *types.Event)
func (*SignatureEngine) TargetEvents ¶
func (e *SignatureEngine) TargetEvents() []events.ID
type SignatureEngineConfig ¶
type SignatureMetadata ¶
type StdioViaSocket ¶
type StdioViaSocket struct {
// contains filtered or unexported fields
}
func (*StdioViaSocket) GetMetadata ¶
func (*StdioViaSocket) GetMetadata() SignatureMetadata
func (*StdioViaSocket) OnEvent ¶
func (s *StdioViaSocket) OnEvent(event *types.Event) *v1.SignatureFinding
Click to show internal directories.
Click to hide internal directories.