testing

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Copyright 2020 New Relic Corporation. All rights reserved. SPDX-License-Identifier: Apache-2.0

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAgent

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

func NewMockAgent

func NewMockAgent() *MockAgent

func (*MockAgent) ActiveEntitiesChannel

func (m *MockAgent) ActiveEntitiesChannel() chan string

func (*MockAgent) AddReconnecting

func (m *MockAgent) AddReconnecting(agent.Plugin)

func (*MockAgent) CacheServicePids

func (self *MockAgent) CacheServicePids(source string, pidMap map[int]string)

func (*MockAgent) CloudDetector

func (self *MockAgent) CloudDetector() *cloud.Detector

func (*MockAgent) Config

func (self *MockAgent) Config() *config.Config

func (*MockAgent) Context

func (m *MockAgent) Context() context.Context

func (*MockAgent) EntityKey

func (self *MockAgent) EntityKey() string

func (*MockAgent) GetData

func (self *MockAgent) GetData(c *C) (output agent.PluginOutput)

func (*MockAgent) GetServiceForPid

func (self *MockAgent) GetServiceForPid(pid int) (service string, ok bool)

func (*MockAgent) HostnameResolver

func (m *MockAgent) HostnameResolver() hostname.Resolver

func (*MockAgent) IDLookup

func (m *MockAgent) IDLookup() host.IDLookup

func (*MockAgent) Identity

func (m *MockAgent) Identity() entity.Identity

func (*MockAgent) Reconnect

func (m *MockAgent) Reconnect()

func (*MockAgent) SendData

func (self *MockAgent) SendData(data agent.PluginOutput)

func (*MockAgent) SendEvent

func (self *MockAgent) SendEvent(event sample.Event, entityKey entity.Key)

func (*MockAgent) Unregister

func (self *MockAgent) Unregister(id ids.PluginID)

func (*MockAgent) Version

func (self *MockAgent) Version() string

func (*MockAgent) WithConfig

func (self *MockAgent) WithConfig(cfg *config.Config) *MockAgent

Jump to

Keyboard shortcuts

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