mocks

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockClient

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

MockClient is a mock of Client interface.

func NewMockClient

func NewMockClient(ctrl *gomock.Controller) *MockClient

NewMockClient creates a new mock instance.

func (*MockClient) Aggregate

func (m *MockClient) Aggregate(ctx context.Context, orgID mo.Option[string], query, field string, numBuckets int64, countByLevel mo.Option[string], filterByQuery mo.Option[bool]) (censys.Result[components.SearchAggregateResponse], censys.ClientError)

Aggregate mocks base method.

func (*MockClient) AggregateCollection

func (m *MockClient) AggregateCollection(ctx context.Context, collectionID string, orgID mo.Option[string], query, field string, numBuckets int64, countByLevel mo.Option[string], filterByQuery mo.Option[bool]) (censys.Result[components.SearchAggregateResponse], censys.ClientError)

AggregateCollection mocks base method.

func (*MockClient) EXPECT

func (m *MockClient) EXPECT() *MockClientMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockClient) GetCertificates

func (m *MockClient) GetCertificates(ctx context.Context, orgID mo.Option[string], certificateIDs []string) (censys.Result[[]components.Certificate], censys.ClientError)

GetCertificates mocks base method.

func (*MockClient) GetHostObservationsWithCertificate

func (m *MockClient) GetHostObservationsWithCertificate(ctx context.Context, orgID mo.Option[string], certificateID string, startTime, endTime mo.Option[time.Time], port mo.Option[int], protocol mo.Option[string], pageSize mo.Option[int64], pageToken mo.Option[string]) (censys.Result[components.HostObservationResponse], censys.ClientError)

GetHostObservationsWithCertificate mocks base method.

func (*MockClient) GetHosts

func (m *MockClient) GetHosts(ctx context.Context, orgID mo.Option[string], hostIDs []string, atTime mo.Option[time.Time]) (censys.Result[[]components.Host], censys.ClientError)

GetHosts mocks base method.

func (*MockClient) GetValueCounts

func (m *MockClient) GetValueCounts(ctx context.Context, orgID, query mo.Option[string], andCountConditions []components.CountCondition) (censys.Result[components.ValueCountsResponse], censys.ClientError)

GetValueCounts mocks base method.

func (*MockClient) GetWebProperties

func (m *MockClient) GetWebProperties(ctx context.Context, orgID mo.Option[string], webPropertyIDs []string, atTime mo.Option[time.Time]) (censys.Result[[]components.Webproperty], censys.ClientError)

GetWebProperties mocks base method.

func (*MockClient) HasOrgID

func (m *MockClient) HasOrgID() bool

HasOrgID mocks base method.

func (*MockClient) HostTimeline

func (m *MockClient) HostTimeline(ctx context.Context, orgID mo.Option[string], hostID string, fromTime, toTime time.Time) (censys.Result[components.HostTimeline], censys.ClientError)

HostTimeline mocks base method.

func (*MockClient) Search

func (m *MockClient) Search(ctx context.Context, orgID mo.Option[string], query string, fields []string, pageSize mo.Option[int64], pageToken mo.Option[string]) (censys.Result[components.SearchQueryResponse], censys.ClientError)

Search mocks base method.

func (*MockClient) SearchCollection

func (m *MockClient) SearchCollection(ctx context.Context, collectionID string, orgID mo.Option[string], query string, fields []string, pageSize mo.Option[int64], pageToken mo.Option[string]) (censys.Result[components.SearchQueryResponse], censys.ClientError)

SearchCollection mocks base method.

type MockClientMockRecorder

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

MockClientMockRecorder is the mock recorder for MockClient.

func (*MockClientMockRecorder) Aggregate

func (mr *MockClientMockRecorder) Aggregate(ctx, orgID, query, field, numBuckets, countByLevel, filterByQuery any) *gomock.Call

Aggregate indicates an expected call of Aggregate.

func (*MockClientMockRecorder) AggregateCollection

func (mr *MockClientMockRecorder) AggregateCollection(ctx, collectionID, orgID, query, field, numBuckets, countByLevel, filterByQuery any) *gomock.Call

AggregateCollection indicates an expected call of AggregateCollection.

func (*MockClientMockRecorder) GetCertificates

func (mr *MockClientMockRecorder) GetCertificates(ctx, orgID, certificateIDs any) *gomock.Call

GetCertificates indicates an expected call of GetCertificates.

func (*MockClientMockRecorder) GetHostObservationsWithCertificate

func (mr *MockClientMockRecorder) GetHostObservationsWithCertificate(ctx, orgID, certificateID, startTime, endTime, port, protocol, pageSize, pageToken any) *gomock.Call

GetHostObservationsWithCertificate indicates an expected call of GetHostObservationsWithCertificate.

func (*MockClientMockRecorder) GetHosts

func (mr *MockClientMockRecorder) GetHosts(ctx, orgID, hostIDs, atTime any) *gomock.Call

GetHosts indicates an expected call of GetHosts.

func (*MockClientMockRecorder) GetValueCounts

func (mr *MockClientMockRecorder) GetValueCounts(ctx, orgID, query, andCountConditions any) *gomock.Call

GetValueCounts indicates an expected call of GetValueCounts.

func (*MockClientMockRecorder) GetWebProperties

func (mr *MockClientMockRecorder) GetWebProperties(ctx, orgID, webPropertyIDs, atTime any) *gomock.Call

GetWebProperties indicates an expected call of GetWebProperties.

func (*MockClientMockRecorder) HasOrgID

func (mr *MockClientMockRecorder) HasOrgID() *gomock.Call

HasOrgID indicates an expected call of HasOrgID.

func (*MockClientMockRecorder) HostTimeline

func (mr *MockClientMockRecorder) HostTimeline(ctx, orgID, hostID, fromTime, toTime any) *gomock.Call

HostTimeline indicates an expected call of HostTimeline.

func (*MockClientMockRecorder) Search

func (mr *MockClientMockRecorder) Search(ctx, orgID, query, fields, pageSize, pageToken any) *gomock.Call

Search indicates an expected call of Search.

func (*MockClientMockRecorder) SearchCollection

func (mr *MockClientMockRecorder) SearchCollection(ctx, collectionID, orgID, query, fields, pageSize, pageToken any) *gomock.Call

SearchCollection indicates an expected call of SearchCollection.

type MockCollectionsClient

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

MockCollectionsClient is a mock of CollectionsClient interface.

func NewMockCollectionsClient

func NewMockCollectionsClient(ctrl *gomock.Controller) *MockCollectionsClient

NewMockCollectionsClient creates a new mock instance.

func (*MockCollectionsClient) AggregateCollection

func (m *MockCollectionsClient) AggregateCollection(ctx context.Context, collectionID string, orgID mo.Option[string], query, field string, numBuckets int64, countByLevel mo.Option[string], filterByQuery mo.Option[bool]) (censys.Result[components.SearchAggregateResponse], censys.ClientError)

AggregateCollection mocks base method.

func (*MockCollectionsClient) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockCollectionsClient) SearchCollection

func (m *MockCollectionsClient) SearchCollection(ctx context.Context, collectionID string, orgID mo.Option[string], query string, fields []string, pageSize mo.Option[int64], pageToken mo.Option[string]) (censys.Result[components.SearchQueryResponse], censys.ClientError)

SearchCollection mocks base method.

type MockCollectionsClientMockRecorder

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

MockCollectionsClientMockRecorder is the mock recorder for MockCollectionsClient.

func (*MockCollectionsClientMockRecorder) AggregateCollection

func (mr *MockCollectionsClientMockRecorder) AggregateCollection(ctx, collectionID, orgID, query, field, numBuckets, countByLevel, filterByQuery any) *gomock.Call

AggregateCollection indicates an expected call of AggregateCollection.

func (*MockCollectionsClientMockRecorder) SearchCollection

func (mr *MockCollectionsClientMockRecorder) SearchCollection(ctx, collectionID, orgID, query, fields, pageSize, pageToken any) *gomock.Call

SearchCollection indicates an expected call of SearchCollection.

type MockGlobalDataClient

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

MockGlobalDataClient is a mock of GlobalDataClient interface.

func NewMockGlobalDataClient

func NewMockGlobalDataClient(ctrl *gomock.Controller) *MockGlobalDataClient

NewMockGlobalDataClient creates a new mock instance.

func (*MockGlobalDataClient) Aggregate

func (m *MockGlobalDataClient) Aggregate(ctx context.Context, orgID mo.Option[string], query, field string, numBuckets int64, countByLevel mo.Option[string], filterByQuery mo.Option[bool]) (censys.Result[components.SearchAggregateResponse], censys.ClientError)

Aggregate mocks base method.

func (*MockGlobalDataClient) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockGlobalDataClient) GetCertificates

func (m *MockGlobalDataClient) GetCertificates(ctx context.Context, orgID mo.Option[string], certificateIDs []string) (censys.Result[[]components.Certificate], censys.ClientError)

GetCertificates mocks base method.

func (*MockGlobalDataClient) GetHosts

func (m *MockGlobalDataClient) GetHosts(ctx context.Context, orgID mo.Option[string], hostIDs []string, atTime mo.Option[time.Time]) (censys.Result[[]components.Host], censys.ClientError)

GetHosts mocks base method.

func (*MockGlobalDataClient) GetWebProperties

func (m *MockGlobalDataClient) GetWebProperties(ctx context.Context, orgID mo.Option[string], webPropertyIDs []string, atTime mo.Option[time.Time]) (censys.Result[[]components.Webproperty], censys.ClientError)

GetWebProperties mocks base method.

func (*MockGlobalDataClient) HostTimeline

func (m *MockGlobalDataClient) HostTimeline(ctx context.Context, orgID mo.Option[string], hostID string, fromTime, toTime time.Time) (censys.Result[components.HostTimeline], censys.ClientError)

HostTimeline mocks base method.

func (*MockGlobalDataClient) Search

Search mocks base method.

type MockGlobalDataClientMockRecorder

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

MockGlobalDataClientMockRecorder is the mock recorder for MockGlobalDataClient.

func (*MockGlobalDataClientMockRecorder) Aggregate

func (mr *MockGlobalDataClientMockRecorder) Aggregate(ctx, orgID, query, field, numBuckets, countByLevel, filterByQuery any) *gomock.Call

Aggregate indicates an expected call of Aggregate.

func (*MockGlobalDataClientMockRecorder) GetCertificates

func (mr *MockGlobalDataClientMockRecorder) GetCertificates(ctx, orgID, certificateIDs any) *gomock.Call

GetCertificates indicates an expected call of GetCertificates.

func (*MockGlobalDataClientMockRecorder) GetHosts

func (mr *MockGlobalDataClientMockRecorder) GetHosts(ctx, orgID, hostIDs, atTime any) *gomock.Call

GetHosts indicates an expected call of GetHosts.

func (*MockGlobalDataClientMockRecorder) GetWebProperties

func (mr *MockGlobalDataClientMockRecorder) GetWebProperties(ctx, orgID, webPropertyIDs, atTime any) *gomock.Call

GetWebProperties indicates an expected call of GetWebProperties.

func (*MockGlobalDataClientMockRecorder) HostTimeline

func (mr *MockGlobalDataClientMockRecorder) HostTimeline(ctx, orgID, hostID, fromTime, toTime any) *gomock.Call

HostTimeline indicates an expected call of HostTimeline.

func (*MockGlobalDataClientMockRecorder) Search

func (mr *MockGlobalDataClientMockRecorder) Search(ctx, orgID, query, fields, pageSize, pageToken any) *gomock.Call

Search indicates an expected call of Search.

type MockThreatHuntingClient

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

MockThreatHuntingClient is a mock of ThreatHuntingClient interface.

func NewMockThreatHuntingClient

func NewMockThreatHuntingClient(ctrl *gomock.Controller) *MockThreatHuntingClient

NewMockThreatHuntingClient creates a new mock instance.

func (*MockThreatHuntingClient) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockThreatHuntingClient) GetHostObservationsWithCertificate

func (m *MockThreatHuntingClient) GetHostObservationsWithCertificate(ctx context.Context, orgID mo.Option[string], certificateID string, startTime, endTime mo.Option[time.Time], port mo.Option[int], protocol mo.Option[string], pageSize mo.Option[int64], pageToken mo.Option[string]) (censys.Result[components.HostObservationResponse], censys.ClientError)

GetHostObservationsWithCertificate mocks base method.

func (*MockThreatHuntingClient) GetValueCounts

GetValueCounts mocks base method.

type MockThreatHuntingClientMockRecorder

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

MockThreatHuntingClientMockRecorder is the mock recorder for MockThreatHuntingClient.

func (*MockThreatHuntingClientMockRecorder) GetHostObservationsWithCertificate

func (mr *MockThreatHuntingClientMockRecorder) GetHostObservationsWithCertificate(ctx, orgID, certificateID, startTime, endTime, port, protocol, pageSize, pageToken any) *gomock.Call

GetHostObservationsWithCertificate indicates an expected call of GetHostObservationsWithCertificate.

func (*MockThreatHuntingClientMockRecorder) GetValueCounts

func (mr *MockThreatHuntingClientMockRecorder) GetValueCounts(ctx, orgID, query, andCountConditions any) *gomock.Call

GetValueCounts indicates an expected call of GetValueCounts.

Jump to

Keyboard shortcuts

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