mocks

package
v1.0.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	mock.Mock
}

Client is an autogenerated mock type for the Client type

func NewClient

func NewClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *Client

NewClient creates a new instance of Client. 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 (*Client) CreateOrUpdateKubernetesAppSetting

func (_m *Client) CreateOrUpdateKubernetesAppSetting(scope string) (string, error)

CreateOrUpdateKubernetesAppSetting provides a mock function with given fields: scope

func (*Client) CreateOrUpdateKubernetesSetting

func (_m *Client) CreateOrUpdateKubernetesSetting(name string, kubeSystemUUID string, scope string) (string, error)

CreateOrUpdateKubernetesSetting provides a mock function with given fields: name, kubeSystemUUID, scope

func (*Client) EXPECT

func (_m *Client) EXPECT() *Client_Expecter

func (*Client) GetActiveGateAuthToken

func (_m *Client) GetActiveGateAuthToken(dynakubeName string) (*dynatrace.ActiveGateAuthTokenInfo, error)

GetActiveGateAuthToken provides a mock function with given fields: dynakubeName

func (*Client) GetActiveGateConnectionInfo

func (_m *Client) GetActiveGateConnectionInfo() (dynatrace.ActiveGateConnectionInfo, error)

GetActiveGateConnectionInfo provides a mock function with given fields:

func (*Client) GetAgent

func (_m *Client) GetAgent(os string, installerType string, flavor string, arch string, version string, technologies []string, skipMetadata bool, writer io.Writer) error

GetAgent provides a mock function with given fields: os, installerType, flavor, arch, version, technologies, skipMetadata, writer

func (*Client) GetAgentVersions

func (_m *Client) GetAgentVersions(os string, installerType string, flavor string, arch string) ([]string, error)

GetAgentVersions provides a mock function with given fields: os, installerType, flavor, arch

func (*Client) GetAgentViaInstallerUrl

func (_m *Client) GetAgentViaInstallerUrl(url string, writer io.Writer) error

GetAgentViaInstallerUrl provides a mock function with given fields: url, writer

func (*Client) GetCommunicationHostForClient

func (_m *Client) GetCommunicationHostForClient() (dynatrace.CommunicationHost, error)

GetCommunicationHostForClient provides a mock function with given fields:

func (*Client) GetEntityIDForIP

func (_m *Client) GetEntityIDForIP(ip string) (string, error)

GetEntityIDForIP provides a mock function with given fields: ip

func (*Client) GetLatestActiveGateImage

func (_m *Client) GetLatestActiveGateImage() (*dynatrace.LatestImageInfo, error)

GetLatestActiveGateImage provides a mock function with given fields:

func (*Client) GetLatestActiveGateVersion added in v1.0.0

func (_m *Client) GetLatestActiveGateVersion(os string) (string, error)

GetLatestActiveGateVersion provides a mock function with given fields: os

func (*Client) GetLatestAgent

func (_m *Client) GetLatestAgent(os string, installerType string, flavor string, arch string, technologies []string, skipMetadata bool, writer io.Writer) error

GetLatestAgent provides a mock function with given fields: os, installerType, flavor, arch, technologies, skipMetadata, writer

func (*Client) GetLatestAgentVersion

func (_m *Client) GetLatestAgentVersion(os string, installerType string) (string, error)

GetLatestAgentVersion provides a mock function with given fields: os, installerType

func (*Client) GetLatestCodeModulesImage

func (_m *Client) GetLatestCodeModulesImage() (*dynatrace.LatestImageInfo, error)

GetLatestCodeModulesImage provides a mock function with given fields:

func (*Client) GetLatestOneAgentImage

func (_m *Client) GetLatestOneAgentImage() (*dynatrace.LatestImageInfo, error)

GetLatestOneAgentImage provides a mock function with given fields:

func (*Client) GetMonitoredEntitiesForKubeSystemUUID

func (_m *Client) GetMonitoredEntitiesForKubeSystemUUID(kubeSystemUUID string) ([]dynatrace.MonitoredEntity, error)

GetMonitoredEntitiesForKubeSystemUUID provides a mock function with given fields: kubeSystemUUID

func (*Client) GetOneAgentConnectionInfo

func (_m *Client) GetOneAgentConnectionInfo() (dynatrace.OneAgentConnectionInfo, error)

GetOneAgentConnectionInfo provides a mock function with given fields:

func (*Client) GetProcessModuleConfig

func (_m *Client) GetProcessModuleConfig(prevRevision uint) (*dynatrace.ProcessModuleConfig, error)

GetProcessModuleConfig provides a mock function with given fields: prevRevision

func (*Client) GetSettingsForMonitoredEntities

func (_m *Client) GetSettingsForMonitoredEntities(monitoredEntities []dynatrace.MonitoredEntity, schemaId string) (dynatrace.GetSettingsResponse, error)

GetSettingsForMonitoredEntities provides a mock function with given fields: monitoredEntities, schemaId

func (*Client) GetTokenScopes

func (_m *Client) GetTokenScopes(token string) (dynatrace.TokenScopes, error)

GetTokenScopes provides a mock function with given fields: token

func (*Client) SendEvent

func (_m *Client) SendEvent(eventData *dynatrace.EventData) error

SendEvent provides a mock function with given fields: eventData

type Client_CreateOrUpdateKubernetesAppSetting_Call

type Client_CreateOrUpdateKubernetesAppSetting_Call struct {
	*mock.Call
}

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

func (*Client_CreateOrUpdateKubernetesAppSetting_Call) Return

func (*Client_CreateOrUpdateKubernetesAppSetting_Call) Run

func (*Client_CreateOrUpdateKubernetesAppSetting_Call) RunAndReturn

type Client_CreateOrUpdateKubernetesSetting_Call

type Client_CreateOrUpdateKubernetesSetting_Call struct {
	*mock.Call
}

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

func (*Client_CreateOrUpdateKubernetesSetting_Call) Return

func (*Client_CreateOrUpdateKubernetesSetting_Call) Run

func (*Client_CreateOrUpdateKubernetesSetting_Call) RunAndReturn

type Client_Expecter

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

func (*Client_Expecter) CreateOrUpdateKubernetesAppSetting

func (_e *Client_Expecter) CreateOrUpdateKubernetesAppSetting(scope interface{}) *Client_CreateOrUpdateKubernetesAppSetting_Call

CreateOrUpdateKubernetesAppSetting is a helper method to define mock.On call

  • scope string

func (*Client_Expecter) CreateOrUpdateKubernetesSetting

func (_e *Client_Expecter) CreateOrUpdateKubernetesSetting(name interface{}, kubeSystemUUID interface{}, scope interface{}) *Client_CreateOrUpdateKubernetesSetting_Call

CreateOrUpdateKubernetesSetting is a helper method to define mock.On call

  • name string
  • kubeSystemUUID string
  • scope string

func (*Client_Expecter) GetActiveGateAuthToken

func (_e *Client_Expecter) GetActiveGateAuthToken(dynakubeName interface{}) *Client_GetActiveGateAuthToken_Call

GetActiveGateAuthToken is a helper method to define mock.On call

  • dynakubeName string

func (*Client_Expecter) GetActiveGateConnectionInfo

func (_e *Client_Expecter) GetActiveGateConnectionInfo() *Client_GetActiveGateConnectionInfo_Call

GetActiveGateConnectionInfo is a helper method to define mock.On call

func (*Client_Expecter) GetAgent

func (_e *Client_Expecter) GetAgent(os interface{}, installerType interface{}, flavor interface{}, arch interface{}, version interface{}, technologies interface{}, skipMetadata interface{}, writer interface{}) *Client_GetAgent_Call

GetAgent is a helper method to define mock.On call

  • os string
  • installerType string
  • flavor string
  • arch string
  • version string
  • technologies []string
  • skipMetadata bool
  • writer io.Writer

func (*Client_Expecter) GetAgentVersions

func (_e *Client_Expecter) GetAgentVersions(os interface{}, installerType interface{}, flavor interface{}, arch interface{}) *Client_GetAgentVersions_Call

GetAgentVersions is a helper method to define mock.On call

  • os string
  • installerType string
  • flavor string
  • arch string

func (*Client_Expecter) GetAgentViaInstallerUrl

func (_e *Client_Expecter) GetAgentViaInstallerUrl(url interface{}, writer interface{}) *Client_GetAgentViaInstallerUrl_Call

GetAgentViaInstallerUrl is a helper method to define mock.On call

  • url string
  • writer io.Writer

func (*Client_Expecter) GetCommunicationHostForClient

func (_e *Client_Expecter) GetCommunicationHostForClient() *Client_GetCommunicationHostForClient_Call

GetCommunicationHostForClient is a helper method to define mock.On call

func (*Client_Expecter) GetEntityIDForIP

func (_e *Client_Expecter) GetEntityIDForIP(ip interface{}) *Client_GetEntityIDForIP_Call

GetEntityIDForIP is a helper method to define mock.On call

  • ip string

func (*Client_Expecter) GetLatestActiveGateImage

func (_e *Client_Expecter) GetLatestActiveGateImage() *Client_GetLatestActiveGateImage_Call

GetLatestActiveGateImage is a helper method to define mock.On call

func (*Client_Expecter) GetLatestActiveGateVersion added in v1.0.0

func (_e *Client_Expecter) GetLatestActiveGateVersion(os interface{}) *Client_GetLatestActiveGateVersion_Call

GetLatestActiveGateVersion is a helper method to define mock.On call

  • os string

func (*Client_Expecter) GetLatestAgent

func (_e *Client_Expecter) GetLatestAgent(os interface{}, installerType interface{}, flavor interface{}, arch interface{}, technologies interface{}, skipMetadata interface{}, writer interface{}) *Client_GetLatestAgent_Call

GetLatestAgent is a helper method to define mock.On call

  • os string
  • installerType string
  • flavor string
  • arch string
  • technologies []string
  • skipMetadata bool
  • writer io.Writer

func (*Client_Expecter) GetLatestAgentVersion

func (_e *Client_Expecter) GetLatestAgentVersion(os interface{}, installerType interface{}) *Client_GetLatestAgentVersion_Call

GetLatestAgentVersion is a helper method to define mock.On call

  • os string
  • installerType string

func (*Client_Expecter) GetLatestCodeModulesImage

func (_e *Client_Expecter) GetLatestCodeModulesImage() *Client_GetLatestCodeModulesImage_Call

GetLatestCodeModulesImage is a helper method to define mock.On call

func (*Client_Expecter) GetLatestOneAgentImage

func (_e *Client_Expecter) GetLatestOneAgentImage() *Client_GetLatestOneAgentImage_Call

GetLatestOneAgentImage is a helper method to define mock.On call

func (*Client_Expecter) GetMonitoredEntitiesForKubeSystemUUID

func (_e *Client_Expecter) GetMonitoredEntitiesForKubeSystemUUID(kubeSystemUUID interface{}) *Client_GetMonitoredEntitiesForKubeSystemUUID_Call

GetMonitoredEntitiesForKubeSystemUUID is a helper method to define mock.On call

  • kubeSystemUUID string

func (*Client_Expecter) GetOneAgentConnectionInfo

func (_e *Client_Expecter) GetOneAgentConnectionInfo() *Client_GetOneAgentConnectionInfo_Call

GetOneAgentConnectionInfo is a helper method to define mock.On call

func (*Client_Expecter) GetProcessModuleConfig

func (_e *Client_Expecter) GetProcessModuleConfig(prevRevision interface{}) *Client_GetProcessModuleConfig_Call

GetProcessModuleConfig is a helper method to define mock.On call

  • prevRevision uint

func (*Client_Expecter) GetSettingsForMonitoredEntities

func (_e *Client_Expecter) GetSettingsForMonitoredEntities(monitoredEntities interface{}, schemaId interface{}) *Client_GetSettingsForMonitoredEntities_Call

GetSettingsForMonitoredEntities is a helper method to define mock.On call

  • monitoredEntities []dynatrace.MonitoredEntity
  • schemaId string

func (*Client_Expecter) GetTokenScopes

func (_e *Client_Expecter) GetTokenScopes(token interface{}) *Client_GetTokenScopes_Call

GetTokenScopes is a helper method to define mock.On call

  • token string

func (*Client_Expecter) SendEvent

func (_e *Client_Expecter) SendEvent(eventData interface{}) *Client_SendEvent_Call

SendEvent is a helper method to define mock.On call

  • eventData *dynatrace.EventData

type Client_GetActiveGateAuthToken_Call

type Client_GetActiveGateAuthToken_Call struct {
	*mock.Call
}

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

func (*Client_GetActiveGateAuthToken_Call) Return

func (*Client_GetActiveGateAuthToken_Call) Run

func (*Client_GetActiveGateAuthToken_Call) RunAndReturn

type Client_GetActiveGateConnectionInfo_Call

type Client_GetActiveGateConnectionInfo_Call struct {
	*mock.Call
}

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

func (*Client_GetActiveGateConnectionInfo_Call) Return

func (*Client_GetActiveGateConnectionInfo_Call) Run

func (*Client_GetActiveGateConnectionInfo_Call) RunAndReturn

type Client_GetAgentVersions_Call

type Client_GetAgentVersions_Call struct {
	*mock.Call
}

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

func (*Client_GetAgentVersions_Call) Return

func (*Client_GetAgentVersions_Call) Run

func (_c *Client_GetAgentVersions_Call) Run(run func(os string, installerType string, flavor string, arch string)) *Client_GetAgentVersions_Call

func (*Client_GetAgentVersions_Call) RunAndReturn

type Client_GetAgentViaInstallerUrl_Call

type Client_GetAgentViaInstallerUrl_Call struct {
	*mock.Call
}

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

func (*Client_GetAgentViaInstallerUrl_Call) Return

func (*Client_GetAgentViaInstallerUrl_Call) Run

func (*Client_GetAgentViaInstallerUrl_Call) RunAndReturn

type Client_GetAgent_Call

type Client_GetAgent_Call struct {
	*mock.Call
}

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

func (*Client_GetAgent_Call) Return

func (*Client_GetAgent_Call) Run

func (_c *Client_GetAgent_Call) Run(run func(os string, installerType string, flavor string, arch string, version string, technologies []string, skipMetadata bool, writer io.Writer)) *Client_GetAgent_Call

func (*Client_GetAgent_Call) RunAndReturn

type Client_GetCommunicationHostForClient_Call

type Client_GetCommunicationHostForClient_Call struct {
	*mock.Call
}

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

func (*Client_GetCommunicationHostForClient_Call) Return

func (*Client_GetCommunicationHostForClient_Call) Run

func (*Client_GetCommunicationHostForClient_Call) RunAndReturn

type Client_GetEntityIDForIP_Call

type Client_GetEntityIDForIP_Call struct {
	*mock.Call
}

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

func (*Client_GetEntityIDForIP_Call) Return

func (*Client_GetEntityIDForIP_Call) Run

func (*Client_GetEntityIDForIP_Call) RunAndReturn

type Client_GetLatestActiveGateImage_Call

type Client_GetLatestActiveGateImage_Call struct {
	*mock.Call
}

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

func (*Client_GetLatestActiveGateImage_Call) Return

func (*Client_GetLatestActiveGateImage_Call) Run

func (*Client_GetLatestActiveGateImage_Call) RunAndReturn

type Client_GetLatestActiveGateVersion_Call added in v1.0.0

type Client_GetLatestActiveGateVersion_Call struct {
	*mock.Call
}

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

func (*Client_GetLatestActiveGateVersion_Call) Return added in v1.0.0

func (*Client_GetLatestActiveGateVersion_Call) Run added in v1.0.0

func (*Client_GetLatestActiveGateVersion_Call) RunAndReturn added in v1.0.0

type Client_GetLatestAgentVersion_Call

type Client_GetLatestAgentVersion_Call struct {
	*mock.Call
}

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

func (*Client_GetLatestAgentVersion_Call) Return

func (*Client_GetLatestAgentVersion_Call) Run

func (*Client_GetLatestAgentVersion_Call) RunAndReturn

type Client_GetLatestAgent_Call

type Client_GetLatestAgent_Call struct {
	*mock.Call
}

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

func (*Client_GetLatestAgent_Call) Return

func (*Client_GetLatestAgent_Call) Run

func (_c *Client_GetLatestAgent_Call) Run(run func(os string, installerType string, flavor string, arch string, technologies []string, skipMetadata bool, writer io.Writer)) *Client_GetLatestAgent_Call

func (*Client_GetLatestAgent_Call) RunAndReturn

type Client_GetLatestCodeModulesImage_Call

type Client_GetLatestCodeModulesImage_Call struct {
	*mock.Call
}

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

func (*Client_GetLatestCodeModulesImage_Call) Return

func (*Client_GetLatestCodeModulesImage_Call) Run

func (*Client_GetLatestCodeModulesImage_Call) RunAndReturn

type Client_GetLatestOneAgentImage_Call

type Client_GetLatestOneAgentImage_Call struct {
	*mock.Call
}

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

func (*Client_GetLatestOneAgentImage_Call) Return

func (*Client_GetLatestOneAgentImage_Call) Run

func (*Client_GetLatestOneAgentImage_Call) RunAndReturn

type Client_GetMonitoredEntitiesForKubeSystemUUID_Call

type Client_GetMonitoredEntitiesForKubeSystemUUID_Call struct {
	*mock.Call
}

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

func (*Client_GetMonitoredEntitiesForKubeSystemUUID_Call) Return

func (*Client_GetMonitoredEntitiesForKubeSystemUUID_Call) Run

func (*Client_GetMonitoredEntitiesForKubeSystemUUID_Call) RunAndReturn

type Client_GetOneAgentConnectionInfo_Call

type Client_GetOneAgentConnectionInfo_Call struct {
	*mock.Call
}

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

func (*Client_GetOneAgentConnectionInfo_Call) Return

func (*Client_GetOneAgentConnectionInfo_Call) Run

func (*Client_GetOneAgentConnectionInfo_Call) RunAndReturn

type Client_GetProcessModuleConfig_Call

type Client_GetProcessModuleConfig_Call struct {
	*mock.Call
}

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

func (*Client_GetProcessModuleConfig_Call) Return

func (*Client_GetProcessModuleConfig_Call) Run

func (*Client_GetProcessModuleConfig_Call) RunAndReturn

type Client_GetSettingsForMonitoredEntities_Call

type Client_GetSettingsForMonitoredEntities_Call struct {
	*mock.Call
}

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

func (*Client_GetSettingsForMonitoredEntities_Call) Return

func (*Client_GetSettingsForMonitoredEntities_Call) Run

type Client_GetTokenScopes_Call

type Client_GetTokenScopes_Call struct {
	*mock.Call
}

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

func (*Client_GetTokenScopes_Call) Return

func (*Client_GetTokenScopes_Call) Run

func (*Client_GetTokenScopes_Call) RunAndReturn

type Client_SendEvent_Call

type Client_SendEvent_Call struct {
	*mock.Call
}

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

func (*Client_SendEvent_Call) Return

func (*Client_SendEvent_Call) Run

func (_c *Client_SendEvent_Call) Run(run func(eventData *dynatrace.EventData)) *Client_SendEvent_Call

func (*Client_SendEvent_Call) RunAndReturn

Jump to

Keyboard shortcuts

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