signature

package
v0.0.0-...-d4ca6f9 Latest Latest
Warning

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

Go to latest
Published: May 27, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

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, 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