crowdstrike_mocks

package
v0.4.3-final-apache Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2025 License: Apache-2.0 Imports: 7 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) CspmRegistration

func (_m *Client) CspmRegistration() crowdstrike.CspmRegistrationClient

CspmRegistration provides a mock function with no fields

func (*Client) Detects

func (_m *Client) Detects() crowdstrike.DetectsClient

Detects provides a mock function with no fields

func (*Client) Discover

func (_m *Client) Discover() crowdstrike.DiscoverClient

Discover provides a mock function with no fields

func (*Client) EXPECT

func (_m *Client) EXPECT() *Client_Expecter

func (*Client) Intel

func (_m *Client) Intel() crowdstrike.IntelClient

Intel provides a mock function with no fields

func (*Client) SpotlightVulnerabilities

func (_m *Client) SpotlightVulnerabilities() crowdstrike.SpotVulnerabilitiesClient

SpotlightVulnerabilities provides a mock function with no fields

type Client_CspmRegistration_Call

type Client_CspmRegistration_Call struct {
	*mock.Call
}

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

func (*Client_CspmRegistration_Call) Return

func (*Client_CspmRegistration_Call) Run

func (*Client_CspmRegistration_Call) RunAndReturn

type Client_Detects_Call

type Client_Detects_Call struct {
	*mock.Call
}

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

func (*Client_Detects_Call) Return

func (*Client_Detects_Call) Run

func (_c *Client_Detects_Call) Run(run func()) *Client_Detects_Call

func (*Client_Detects_Call) RunAndReturn

func (_c *Client_Detects_Call) RunAndReturn(run func() crowdstrike.DetectsClient) *Client_Detects_Call

type Client_Discover_Call

type Client_Discover_Call struct {
	*mock.Call
}

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

func (*Client_Discover_Call) Return

func (*Client_Discover_Call) Run

func (_c *Client_Discover_Call) Run(run func()) *Client_Discover_Call

func (*Client_Discover_Call) RunAndReturn

type Client_Expecter

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

func (*Client_Expecter) CspmRegistration

func (_e *Client_Expecter) CspmRegistration() *Client_CspmRegistration_Call

CspmRegistration is a helper method to define mock.On call

func (*Client_Expecter) Detects

func (_e *Client_Expecter) Detects() *Client_Detects_Call

Detects is a helper method to define mock.On call

func (*Client_Expecter) Discover

func (_e *Client_Expecter) Discover() *Client_Discover_Call

Discover is a helper method to define mock.On call

func (*Client_Expecter) Intel

func (_e *Client_Expecter) Intel() *Client_Intel_Call

Intel is a helper method to define mock.On call

func (*Client_Expecter) SpotlightVulnerabilities

func (_e *Client_Expecter) SpotlightVulnerabilities() *Client_SpotlightVulnerabilities_Call

SpotlightVulnerabilities is a helper method to define mock.On call

type Client_Intel_Call

type Client_Intel_Call struct {
	*mock.Call
}

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

func (*Client_Intel_Call) Return

func (*Client_Intel_Call) Run

func (_c *Client_Intel_Call) Run(run func()) *Client_Intel_Call

func (*Client_Intel_Call) RunAndReturn

func (_c *Client_Intel_Call) RunAndReturn(run func() crowdstrike.IntelClient) *Client_Intel_Call

type Client_SpotlightVulnerabilities_Call

type Client_SpotlightVulnerabilities_Call struct {
	*mock.Call
}

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

func (*Client_SpotlightVulnerabilities_Call) Run

func (*Client_SpotlightVulnerabilities_Call) RunAndReturn

type CspmRegistrationClient

type CspmRegistrationClient struct {
	mock.Mock
}

CspmRegistrationClient is an autogenerated mock type for the CspmRegistrationClient type

func NewCspmRegistrationClient

func NewCspmRegistrationClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *CspmRegistrationClient

NewCspmRegistrationClient creates a new instance of CspmRegistrationClient. 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 (*CspmRegistrationClient) EXPECT

func (*CspmRegistrationClient) GetConfigurationDetections

GetConfigurationDetections provides a mock function with given fields: params, opts

type CspmRegistrationClient_Expecter

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

func (*CspmRegistrationClient_Expecter) GetConfigurationDetections

func (_e *CspmRegistrationClient_Expecter) GetConfigurationDetections(params interface{}, opts ...interface{}) *CspmRegistrationClient_GetConfigurationDetections_Call

GetConfigurationDetections is a helper method to define mock.On call

  • params *cspm_registration.GetConfigurationDetectionsParams
  • opts ...cspm_registration.ClientOption

type CspmRegistrationClient_GetConfigurationDetections_Call

type CspmRegistrationClient_GetConfigurationDetections_Call struct {
	*mock.Call
}

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

type DetectsClient

type DetectsClient struct {
	mock.Mock
}

DetectsClient is an autogenerated mock type for the DetectsClient type

func NewDetectsClient

func NewDetectsClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *DetectsClient

NewDetectsClient creates a new instance of DetectsClient. 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 (*DetectsClient) EXPECT

func (_m *DetectsClient) EXPECT() *DetectsClient_Expecter

func (*DetectsClient) GetDetectSummaries

GetDetectSummaries provides a mock function with given fields: params, opts

func (*DetectsClient) QueryDetects

QueryDetects provides a mock function with given fields: params, opts

type DetectsClient_Expecter

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

func (*DetectsClient_Expecter) GetDetectSummaries

func (_e *DetectsClient_Expecter) GetDetectSummaries(params interface{}, opts ...interface{}) *DetectsClient_GetDetectSummaries_Call

GetDetectSummaries is a helper method to define mock.On call

  • params *detects.GetDetectSummariesParams
  • opts ...detects.ClientOption

func (*DetectsClient_Expecter) QueryDetects

func (_e *DetectsClient_Expecter) QueryDetects(params interface{}, opts ...interface{}) *DetectsClient_QueryDetects_Call

QueryDetects is a helper method to define mock.On call

  • params *detects.QueryDetectsParams
  • opts ...detects.ClientOption

type DetectsClient_GetDetectSummaries_Call

type DetectsClient_GetDetectSummaries_Call struct {
	*mock.Call
}

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

func (*DetectsClient_GetDetectSummaries_Call) Return

func (*DetectsClient_GetDetectSummaries_Call) Run

type DetectsClient_QueryDetects_Call

type DetectsClient_QueryDetects_Call struct {
	*mock.Call
}

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

func (*DetectsClient_QueryDetects_Call) Return

func (*DetectsClient_QueryDetects_Call) Run

type DiscoverClient

type DiscoverClient struct {
	mock.Mock
}

DiscoverClient is an autogenerated mock type for the DiscoverClient type

func NewDiscoverClient

func NewDiscoverClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *DiscoverClient

NewDiscoverClient creates a new instance of DiscoverClient. 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 (*DiscoverClient) EXPECT

func (*DiscoverClient) GetHosts

GetHosts provides a mock function with given fields: params, opts

func (*DiscoverClient) QueryHosts

QueryHosts provides a mock function with given fields: params, opts

type DiscoverClient_Expecter

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

func (*DiscoverClient_Expecter) GetHosts

func (_e *DiscoverClient_Expecter) GetHosts(params interface{}, opts ...interface{}) *DiscoverClient_GetHosts_Call

GetHosts is a helper method to define mock.On call

  • params *discover.GetHostsParams
  • opts ...discover.ClientOption

func (*DiscoverClient_Expecter) QueryHosts

func (_e *DiscoverClient_Expecter) QueryHosts(params interface{}, opts ...interface{}) *DiscoverClient_QueryHosts_Call

QueryHosts is a helper method to define mock.On call

  • params *discover.QueryHostsParams
  • opts ...discover.ClientOption

type DiscoverClient_GetHosts_Call

type DiscoverClient_GetHosts_Call struct {
	*mock.Call
}

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

func (*DiscoverClient_GetHosts_Call) Return

func (*DiscoverClient_GetHosts_Call) Run

func (*DiscoverClient_GetHosts_Call) RunAndReturn

type DiscoverClient_QueryHosts_Call

type DiscoverClient_QueryHosts_Call struct {
	*mock.Call
}

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

func (*DiscoverClient_QueryHosts_Call) Return

func (*DiscoverClient_QueryHosts_Call) Run

func (*DiscoverClient_QueryHosts_Call) RunAndReturn

type IntelClient

type IntelClient struct {
	mock.Mock
}

IntelClient is an autogenerated mock type for the IntelClient type

func NewIntelClient

func NewIntelClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *IntelClient

NewIntelClient creates a new instance of IntelClient. 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 (*IntelClient) EXPECT

func (_m *IntelClient) EXPECT() *IntelClient_Expecter

func (*IntelClient) QueryIntelIndicatorEntities

func (_m *IntelClient) QueryIntelIndicatorEntities(params *intel.QueryIntelIndicatorEntitiesParams, opts ...intel.ClientOption) (*intel.QueryIntelIndicatorEntitiesOK, error)

QueryIntelIndicatorEntities provides a mock function with given fields: params, opts

type IntelClient_Expecter

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

func (*IntelClient_Expecter) QueryIntelIndicatorEntities

func (_e *IntelClient_Expecter) QueryIntelIndicatorEntities(params interface{}, opts ...interface{}) *IntelClient_QueryIntelIndicatorEntities_Call

QueryIntelIndicatorEntities is a helper method to define mock.On call

  • params *intel.QueryIntelIndicatorEntitiesParams
  • opts ...intel.ClientOption

type IntelClient_QueryIntelIndicatorEntities_Call

type IntelClient_QueryIntelIndicatorEntities_Call struct {
	*mock.Call
}

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

func (*IntelClient_QueryIntelIndicatorEntities_Call) Return

func (*IntelClient_QueryIntelIndicatorEntities_Call) Run

type SpotVulnerabilitiesClient

type SpotVulnerabilitiesClient struct {
	mock.Mock
}

SpotVulnerabilitiesClient is an autogenerated mock type for the SpotVulnerabilitiesClient type

func NewSpotVulnerabilitiesClient

func NewSpotVulnerabilitiesClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *SpotVulnerabilitiesClient

NewSpotVulnerabilitiesClient creates a new instance of SpotVulnerabilitiesClient. 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 (*SpotVulnerabilitiesClient) CombinedQueryVulnerabilities

CombinedQueryVulnerabilities provides a mock function with given fields: params, opts

func (*SpotVulnerabilitiesClient) EXPECT

type SpotVulnerabilitiesClient_CombinedQueryVulnerabilities_Call

type SpotVulnerabilitiesClient_CombinedQueryVulnerabilities_Call struct {
	*mock.Call
}

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

type SpotVulnerabilitiesClient_Expecter

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

func (*SpotVulnerabilitiesClient_Expecter) CombinedQueryVulnerabilities

func (_e *SpotVulnerabilitiesClient_Expecter) CombinedQueryVulnerabilities(params interface{}, opts ...interface{}) *SpotVulnerabilitiesClient_CombinedQueryVulnerabilities_Call

CombinedQueryVulnerabilities is a helper method to define mock.On call

  • params *spotlight_vulnerabilities.CombinedQueryVulnerabilitiesParams
  • opts ...spotlight_vulnerabilities.ClientOption

Jump to

Keyboard shortcuts

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