mocks

package
v1.68.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2025 License: Apache-2.0 Imports: 5 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) Close

func (_m *Client) Close() error

Close provides a mock function with no fields

func (*Client) CreateIndex

func (_m *Client) CreateIndex(index string) es.IndicesCreateService

CreateIndex provides a mock function with given fields: index

func (*Client) CreateTemplate

func (_m *Client) CreateTemplate(id string) es.TemplateCreateService

CreateTemplate provides a mock function with given fields: id

func (*Client) DeleteIndex

func (_m *Client) DeleteIndex(index string) es.IndicesDeleteService

DeleteIndex provides a mock function with given fields: index

func (*Client) GetVersion

func (_m *Client) GetVersion() uint

GetVersion provides a mock function with no fields

func (*Client) Index

func (_m *Client) Index() es.IndexService

Index provides a mock function with no fields

func (*Client) IndexExists

func (_m *Client) IndexExists(index string) es.IndicesExistsService

IndexExists provides a mock function with given fields: index

func (*Client) MultiSearch

func (_m *Client) MultiSearch() es.MultiSearchService

MultiSearch provides a mock function with no fields

func (*Client) Search

func (_m *Client) Search(indices ...string) es.SearchService

Search provides a mock function with given fields: indices

type IndexService

type IndexService struct {
	mock.Mock
}

IndexService is an autogenerated mock type for the IndexService type

func NewIndexService

func NewIndexService(t interface {
	mock.TestingT
	Cleanup(func())
}) *IndexService

NewIndexService creates a new instance of IndexService. 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 (*IndexService) Add

func (_m *IndexService) Add()

Add provides a mock function with no fields

func (*IndexService) BodyJson

func (_m *IndexService) BodyJson(body any) es.IndexService

BodyJson provides a mock function with given fields: body

func (*IndexService) Id

func (_m *IndexService) Id(id string) es.IndexService

Id provides a mock function with given fields: id

func (*IndexService) Index

func (_m *IndexService) Index(index string) es.IndexService

Index provides a mock function with given fields: index

func (*IndexService) Type

func (_m *IndexService) Type(typ string) es.IndexService

Type provides a mock function with given fields: typ

type IndicesCreateService

type IndicesCreateService struct {
	mock.Mock
}

IndicesCreateService is an autogenerated mock type for the IndicesCreateService type

func NewIndicesCreateService

func NewIndicesCreateService(t interface {
	mock.TestingT
	Cleanup(func())
}) *IndicesCreateService

NewIndicesCreateService creates a new instance of IndicesCreateService. 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 (*IndicesCreateService) Body

Body provides a mock function with given fields: mapping

func (*IndicesCreateService) Do

Do provides a mock function with given fields: ctx

type IndicesDeleteService

type IndicesDeleteService struct {
	mock.Mock
}

IndicesDeleteService is an autogenerated mock type for the IndicesDeleteService type

func NewIndicesDeleteService

func NewIndicesDeleteService(t interface {
	mock.TestingT
	Cleanup(func())
}) *IndicesDeleteService

NewIndicesDeleteService creates a new instance of IndicesDeleteService. 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 (*IndicesDeleteService) Do

Do provides a mock function with given fields: ctx

type IndicesExistsService

type IndicesExistsService struct {
	mock.Mock
}

IndicesExistsService is an autogenerated mock type for the IndicesExistsService type

func NewIndicesExistsService

func NewIndicesExistsService(t interface {
	mock.TestingT
	Cleanup(func())
}) *IndicesExistsService

NewIndicesExistsService creates a new instance of IndicesExistsService. 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 (*IndicesExistsService) Do

Do provides a mock function with given fields: ctx

type MultiSearchService

type MultiSearchService struct {
	mock.Mock
}

MultiSearchService is an autogenerated mock type for the MultiSearchService type

func NewMultiSearchService

func NewMultiSearchService(t interface {
	mock.TestingT
	Cleanup(func())
}) *MultiSearchService

NewMultiSearchService creates a new instance of MultiSearchService. 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 (*MultiSearchService) Add

Add provides a mock function with given fields: requests

func (*MultiSearchService) Do

Do provides a mock function with given fields: ctx

func (*MultiSearchService) Index

func (_m *MultiSearchService) Index(indices ...string) es.MultiSearchService

Index provides a mock function with given fields: indices

type SearchService

type SearchService struct {
	mock.Mock
}

SearchService is an autogenerated mock type for the SearchService type

func NewSearchService

func NewSearchService(t interface {
	mock.TestingT
	Cleanup(func())
}) *SearchService

NewSearchService creates a new instance of SearchService. 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 (*SearchService) Aggregation

func (_m *SearchService) Aggregation(name string, aggregation elastic.Aggregation) es.SearchService

Aggregation provides a mock function with given fields: name, aggregation

func (*SearchService) Do

Do provides a mock function with given fields: ctx

func (*SearchService) IgnoreUnavailable

func (_m *SearchService) IgnoreUnavailable(ignoreUnavailable bool) es.SearchService

IgnoreUnavailable provides a mock function with given fields: ignoreUnavailable

func (*SearchService) Query

func (_m *SearchService) Query(query elastic.Query) es.SearchService

Query provides a mock function with given fields: query

func (*SearchService) Size

func (_m *SearchService) Size(size int) es.SearchService

Size provides a mock function with given fields: size

type TemplateApplier

type TemplateApplier struct {
	mock.Mock
}

TemplateApplier is an autogenerated mock type for the TemplateApplier type

func NewTemplateApplier

func NewTemplateApplier(t interface {
	mock.TestingT
	Cleanup(func())
}) *TemplateApplier

NewTemplateApplier creates a new instance of TemplateApplier. 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 (*TemplateApplier) Execute

func (_m *TemplateApplier) Execute(wr io.Writer, data any) error

Execute provides a mock function with given fields: wr, data

type TemplateBuilder

type TemplateBuilder struct {
	mock.Mock
}

TemplateBuilder is an autogenerated mock type for the TemplateBuilder type

func NewTemplateBuilder

func NewTemplateBuilder(t interface {
	mock.TestingT
	Cleanup(func())
}) *TemplateBuilder

NewTemplateBuilder creates a new instance of TemplateBuilder. 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 (*TemplateBuilder) Parse

func (_m *TemplateBuilder) Parse(text string) (es.TemplateApplier, error)

Parse provides a mock function with given fields: text

type TemplateCreateService

type TemplateCreateService struct {
	mock.Mock
}

TemplateCreateService is an autogenerated mock type for the TemplateCreateService type

func NewTemplateCreateService

func NewTemplateCreateService(t interface {
	mock.TestingT
	Cleanup(func())
}) *TemplateCreateService

NewTemplateCreateService creates a new instance of TemplateCreateService. 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 (*TemplateCreateService) Body

Body provides a mock function with given fields: mapping

func (*TemplateCreateService) Do

Do provides a mock function with given fields: ctx

Jump to

Keyboard shortcuts

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