mocks

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

README

Warning: Generated Code!

This mocks were generated using:

go get github.com/vektra/mockery/.../
cd $GOPATH/src/github.com/newrelic/infrastructure-agent/agent
mockery -name AgentContext

Documentation

Overview

Copyright 2020 New Relic Corporation. All rights reserved. SPDX-License-Identifier: Apache-2.0 Code generated by mockery v1.0.0. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentContext

type AgentContext struct {
	mock.Mock
	SendDataWg    sync.WaitGroup
	MockedContext context.Context
}

AgentContext is an autogenerated mock type for the AgentContext type

func (*AgentContext) ActiveEntitiesChannel

func (_m *AgentContext) ActiveEntitiesChannel() chan string

ActiveEntitiesChannel provides a mock function with given fields:

func (*AgentContext) AddReconnecting

func (_m *AgentContext) AddReconnecting(_a0 agent.Plugin)

AddReconnecting provides a mock function with given fields: _a0

func (*AgentContext) CacheServicePids

func (_m *AgentContext) CacheServicePids(source string, pidMap map[int]string)

CacheServicePids provides a mock function with given fields: source, pidMap

func (*AgentContext) Config

func (_m *AgentContext) Config() *config.Config

Config provides a mock function with given fields:

func (*AgentContext) Context

func (_m *AgentContext) Context() context.Context

func (*AgentContext) EntityKey

func (_m *AgentContext) EntityKey() string

EntityKey provides a mock function with given fields:

func (*AgentContext) GetServiceForPid

func (_m *AgentContext) GetServiceForPid(pid int) (string, bool)

GetServiceForPid provides a mock function with given fields: pid

func (*AgentContext) HostnameResolver

func (_m *AgentContext) HostnameResolver() hostname.Resolver

HostnameResolver provides a mock function with given fields:

func (*AgentContext) IDLookup

func (_m *AgentContext) IDLookup() host.IDLookup

IDLookup provides a mock function with given fields:

func (*AgentContext) Identity

func (_m *AgentContext) Identity() entity.Identity

AgentIdentity provides a mock function with given fields:

func (*AgentContext) Reconnect

func (_m *AgentContext) Reconnect()

Reconnect provides a mock function with given fields:

func (*AgentContext) SendData

func (_m *AgentContext) SendData(_a0 agent.PluginOutput)

SendData provides a mock function with given fields: _a0

func (*AgentContext) SendEvent

func (_m *AgentContext) SendEvent(event sample.Event, entityKey entity.Key)

SendEvent provides a mock function with given fields: event, entityKey

func (*AgentContext) Unregister

func (_m *AgentContext) Unregister(_a0 ids.PluginID)

Unregister provides a mock function with given fields: _a0

func (*AgentContext) Version

func (_m *AgentContext) Version() string

Version provides a mock function with given fields:

Jump to

Keyboard shortcuts

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