add_cluster_id

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: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(agentCfg *agentconfig.C) (beat.Processor, error)

New constructs a new Add ID processor.

Types

type ClusterHelper

type ClusterHelper interface {
	ClusterId() string
}

type MockClusterHelper

type MockClusterHelper struct {
	mock.Mock
}

MockClusterHelper is an autogenerated mock type for the ClusterHelper type

func NewMockClusterHelper

func NewMockClusterHelper(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockClusterHelper

NewMockClusterHelper creates a new instance of MockClusterHelper. 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 (*MockClusterHelper) ClusterId

func (_m *MockClusterHelper) ClusterId() string

ClusterId provides a mock function with given fields:

func (*MockClusterHelper) EXPECT

type MockClusterHelper_ClusterId_Call

type MockClusterHelper_ClusterId_Call struct {
	*mock.Call
}

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

func (*MockClusterHelper_ClusterId_Call) Return

func (*MockClusterHelper_ClusterId_Call) Run

func (*MockClusterHelper_ClusterId_Call) RunAndReturn

type MockClusterHelper_Expecter

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

func (*MockClusterHelper_Expecter) ClusterId

ClusterId is a helper method to define mock.On call

Jump to

Keyboard shortcuts

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