flavors

package
v0.0.0-...-27baac2 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAssetInventory

func NewAssetInventory(b *beat.Beat, agentConfig *agentconfig.C) (beat.Beater, error)

func NewClient

func NewClient(pipeline beat.Pipeline, processorsList processors.PluginConfig) (beat.Client, error)

func NewPosture

func NewPosture(b *beat.Beat, agentConfig *agentconfig.C) (beat.Beater, error)

NewPosture creates an instance of posture.

func NewVulnerability

func NewVulnerability(b *beat.Beat, cfg *agentconfig.C) (beat.Beater, error)

NewVulnerability creates an instance of vulnerability.

Types

type MockRepeaterFunc

type MockRepeaterFunc struct {
	mock.Mock
}

MockRepeaterFunc is an autogenerated mock type for the RepeaterFunc type

func NewMockRepeaterFunc

func NewMockRepeaterFunc(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockRepeaterFunc

NewMockRepeaterFunc creates a new instance of MockRepeaterFunc. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockRepeaterFunc) EXPECT

func (*MockRepeaterFunc) Execute

func (_m *MockRepeaterFunc) Execute() error

Execute provides a mock function with given fields:

type MockRepeaterFunc_Execute_Call

type MockRepeaterFunc_Execute_Call struct {
	*mock.Call
}

MockRepeaterFunc_Execute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Execute'

func (*MockRepeaterFunc_Execute_Call) Return

func (*MockRepeaterFunc_Execute_Call) Run

func (*MockRepeaterFunc_Execute_Call) RunAndReturn

type MockRepeaterFunc_Expecter

type MockRepeaterFunc_Expecter struct {
	// contains filtered or unexported fields
}

func (*MockRepeaterFunc_Expecter) Execute

Execute is a helper method to define mock.On call

type Publisher

type Publisher struct {
	// contains filtered or unexported fields
}

func NewPublisher

func NewPublisher(log *logp.Logger, interval time.Duration, threshold int, client client) *Publisher

func (*Publisher) HandleEvents

func (p *Publisher) HandleEvents(ctx context.Context, ch <-chan []beat.Event)

type Repeater

type Repeater struct {
	// contains filtered or unexported fields
}

func NewRepeater

func NewRepeater(log *logp.Logger, interval time.Duration) *Repeater

func (*Repeater) Run

func (r *Repeater) Run(ctx context.Context, fn RepeaterFunc) error

type RepeaterFunc

type RepeaterFunc func() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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