assetinventory

package
v0.0.0-...-e603cf9 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockStrategy

type MockStrategy struct {
	mock.Mock
}

MockStrategy is an autogenerated mock type for the Strategy type

func NewMockStrategy

func NewMockStrategy(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockStrategy

NewMockStrategy creates a new instance of MockStrategy. 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 (*MockStrategy) EXPECT

func (_m *MockStrategy) EXPECT() *MockStrategy_Expecter

func (*MockStrategy) NewAssetInventory

func (_m *MockStrategy) NewAssetInventory(ctx context.Context, client beat.Client) (inventory.AssetInventory, error)

NewAssetInventory provides a mock function with given fields: ctx, client

type MockStrategy_Expecter

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

func (*MockStrategy_Expecter) NewAssetInventory

func (_e *MockStrategy_Expecter) NewAssetInventory(ctx interface{}, client interface{}) *MockStrategy_NewAssetInventory_Call

NewAssetInventory is a helper method to define mock.On call

  • ctx context.Context
  • client beat.Client

type MockStrategy_NewAssetInventory_Call

type MockStrategy_NewAssetInventory_Call struct {
	*mock.Call
}

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

func (*MockStrategy_NewAssetInventory_Call) Return

func (*MockStrategy_NewAssetInventory_Call) Run

func (*MockStrategy_NewAssetInventory_Call) RunAndReturn

type Strategy

type Strategy interface {
	NewAssetInventory(ctx context.Context, client beat.Client) (inventory.AssetInventory, error)
}

func GetStrategy

func GetStrategy(logger *logp.Logger, cfg *config.Config) Strategy

Jump to

Keyboard shortcuts

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