signature

package
v0.22.5 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: Apache-2.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Find

func Find(target string, partialEval bool, signaturesDir []string, signatures []string, aioEnabled bool) ([]detect.Signature, []detect.DataSource, error)

Types

type FakeSignature

type FakeSignature struct {
	FakeGetMetadata       func() (detect.SignatureMetadata, error)
	FakeGetSelectedEvents func() ([]detect.SignatureEventSelector, error)
	FakeInit              func(detect.SignatureContext) error
	FakeOnEvent           func(protocol.Event) error
	FakeOnSignal          func(signal detect.Signal) error
}

FakeSignature is a mock for the detect.Signature interface, it allows customization of methods through the fields. It can be used for tests.

func (*FakeSignature) Close

func (fs *FakeSignature) Close()

func (FakeSignature) GetMetadata

func (fs FakeSignature) GetMetadata() (detect.SignatureMetadata, error)

func (FakeSignature) GetSelectedEvents

func (fs FakeSignature) GetSelectedEvents() ([]detect.SignatureEventSelector, error)

func (FakeSignature) Init

func (FakeSignature) OnEvent

func (fs FakeSignature) OnEvent(event protocol.Event) error

func (FakeSignature) OnSignal

func (fs FakeSignature) OnSignal(signal detect.Signal) error

Jump to

Keyboard shortcuts

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