mocks

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2024 License: Apache-2.0 Imports: 4 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(ctx context.Context, scope string) (string, error)

CreateOrUpdateKubernetesAppSetting provides a mock function with given fields: ctx, scope

func (*Client) CreateOrUpdateKubernetesSetting

func (_m *Client) CreateOrUpdateKubernetesSetting(ctx context.Context, name string, kubeSystemUUID string, scope string) (string, error)

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

func (*Client) EXPECT

func (_m *Client) EXPECT() *Client_Expecter

func (*Client) GetActiveGateAuthToken

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

GetActiveGateAuthToken provides a mock function with given fields: ctx, dynakubeName

func (*Client) GetActiveGateConnectionInfo

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

GetActiveGateConnectionInfo provides a mock function with given fields: ctx

func (*Client) GetAgent

func (_m *Client) GetAgent(ctx context.Context, 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: ctx, os, installerType, flavor, arch, version, technologies, skipMetadata, writer

func (*Client) GetAgentVersions

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

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

func (*Client) GetAgentViaInstallerUrl

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

GetAgentViaInstallerUrl provides a mock function with given fields: ctx, 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(ctx context.Context, ip string) (string, error)

GetEntityIDForIP provides a mock function with given fields: ctx, ip

func (*Client) GetLatestActiveGateImage

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

GetLatestActiveGateImage provides a mock function with given fields: ctx

func (*Client) GetLatestActiveGateVersion added in v1.0.0

func (_m *Client) GetLatestActiveGateVersion(ctx context.Context, os string) (string, error)

GetLatestActiveGateVersion provides a mock function with given fields: ctx, os

func (*Client) GetLatestAgent

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

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

func (*Client) GetLatestAgentVersion

func (_m *Client) GetLatestAgentVersion(ctx context.Context, os string, installerType string) (string, error)

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

func (*Client) GetLatestCodeModulesImage

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

GetLatestCodeModulesImage provides a mock function with given fields: ctx

func (*Client) GetLatestOneAgentImage

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

GetLatestOneAgentImage provides a mock function with given fields: ctx

func (*Client) GetMonitoredEntitiesForKubeSystemUUID

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

GetMonitoredEntitiesForKubeSystemUUID provides a mock function with given fields: ctx, kubeSystemUUID

func (*Client) GetOneAgentConnectionInfo

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

GetOneAgentConnectionInfo provides a mock function with given fields: ctx

func (*Client) GetProcessModuleConfig

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

GetProcessModuleConfig provides a mock function with given fields: ctx, prevRevision

func (*Client) GetSettingsForMonitoredEntities

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

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

func (*Client) GetTokenScopes

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

GetTokenScopes provides a mock function with given fields: ctx, token

func (*Client) SendEvent

func (_m *Client) SendEvent(ctx context.Context, eventData *dynatrace.EventData) error

SendEvent provides a mock function with given fields: ctx, 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(ctx interface{}, scope interface{}) *Client_CreateOrUpdateKubernetesAppSetting_Call

CreateOrUpdateKubernetesAppSetting is a helper method to define mock.On call

  • ctx context.Context
  • scope string

func (*Client_Expecter) CreateOrUpdateKubernetesSetting

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

CreateOrUpdateKubernetesSetting is a helper method to define mock.On call

  • ctx context.Context
  • name string
  • kubeSystemUUID string
  • scope string

func (*Client_Expecter) GetActiveGateAuthToken

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

GetActiveGateAuthToken is a helper method to define mock.On call

  • ctx context.Context
  • dynakubeName string

func (*Client_Expecter) GetActiveGateConnectionInfo

func (_e *Client_Expecter) GetActiveGateConnectionInfo(ctx interface{}) *Client_GetActiveGateConnectionInfo_Call

GetActiveGateConnectionInfo is a helper method to define mock.On call

  • ctx context.Context

func (*Client_Expecter) GetAgent

func (_e *Client_Expecter) GetAgent(ctx interface{}, 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

  • ctx context.Context
  • 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(ctx interface{}, os interface{}, installerType interface{}, flavor interface{}, arch interface{}) *Client_GetAgentVersions_Call

GetAgentVersions is a helper method to define mock.On call

  • ctx context.Context
  • os string
  • installerType string
  • flavor string
  • arch string

func (*Client_Expecter) GetAgentViaInstallerUrl

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

GetAgentViaInstallerUrl is a helper method to define mock.On call

  • ctx context.Context
  • 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(ctx interface{}, ip interface{}) *Client_GetEntityIDForIP_Call

GetEntityIDForIP is a helper method to define mock.On call

  • ctx context.Context
  • ip string

func (*Client_Expecter) GetLatestActiveGateImage

func (_e *Client_Expecter) GetLatestActiveGateImage(ctx interface{}) *Client_GetLatestActiveGateImage_Call

GetLatestActiveGateImage is a helper method to define mock.On call

  • ctx context.Context

func (*Client_Expecter) GetLatestActiveGateVersion added in v1.0.0

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

GetLatestActiveGateVersion is a helper method to define mock.On call

  • ctx context.Context
  • os string

func (*Client_Expecter) GetLatestAgent

func (_e *Client_Expecter) GetLatestAgent(ctx interface{}, 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

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

func (*Client_Expecter) GetLatestAgentVersion

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

GetLatestAgentVersion is a helper method to define mock.On call

  • ctx context.Context
  • os string
  • installerType string

func (*Client_Expecter) GetLatestCodeModulesImage

func (_e *Client_Expecter) GetLatestCodeModulesImage(ctx interface{}) *Client_GetLatestCodeModulesImage_Call

GetLatestCodeModulesImage is a helper method to define mock.On call

  • ctx context.Context

func (*Client_Expecter) GetLatestOneAgentImage

func (_e *Client_Expecter) GetLatestOneAgentImage(ctx interface{}) *Client_GetLatestOneAgentImage_Call

GetLatestOneAgentImage is a helper method to define mock.On call

  • ctx context.Context

func (*Client_Expecter) GetMonitoredEntitiesForKubeSystemUUID

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

GetMonitoredEntitiesForKubeSystemUUID is a helper method to define mock.On call

  • ctx context.Context
  • kubeSystemUUID string

func (*Client_Expecter) GetOneAgentConnectionInfo

func (_e *Client_Expecter) GetOneAgentConnectionInfo(ctx interface{}) *Client_GetOneAgentConnectionInfo_Call

GetOneAgentConnectionInfo is a helper method to define mock.On call

  • ctx context.Context

func (*Client_Expecter) GetProcessModuleConfig

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

GetProcessModuleConfig is a helper method to define mock.On call

  • ctx context.Context
  • prevRevision uint

func (*Client_Expecter) GetSettingsForMonitoredEntities

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

GetSettingsForMonitoredEntities is a helper method to define mock.On call

  • ctx context.Context
  • monitoredEntities []dynatrace.MonitoredEntity
  • schemaId string

func (*Client_Expecter) GetTokenScopes

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

GetTokenScopes is a helper method to define mock.On call

  • ctx context.Context
  • token string

func (*Client_Expecter) SendEvent

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

SendEvent is a helper method to define mock.On call

  • ctx context.Context
  • 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(ctx context.Context, 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(ctx context.Context, 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(ctx context.Context, 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(ctx context.Context, 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