mocks

package
v1.35.2 Latest Latest
Warning

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

Go to latest
Published: May 31, 2022 License: Apache-2.0 Imports: 6 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 (*Client) Close added in v1.2.0

func (_m *Client) Close() error

Close provides a mock function with given fields:

func (*Client) CreateIndex

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

CreateIndex provides a mock function with given fields: index

func (*Client) CreateTemplate added in v1.14.0

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

CreateTemplate provides a mock function with given fields: id

func (*Client) GetVersion added in v1.14.0

func (_m *Client) GetVersion() uint

GetVersion provides a mock function with given fields:

func (*Client) Index

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

Index provides a mock function with given fields:

func (*Client) IndexExists

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

IndexExists provides a mock function with given fields: index

func (*Client) MultiSearch added in v0.6.0

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

MultiSearch provides a mock function with given fields:

func (*Client) Search

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

Search provides a mock function with given fields: indices

type ClusterAPI added in v1.34.0

type ClusterAPI struct {
	mock.Mock
}

ClusterAPI is an autogenerated mock type for the ClusterAPI type

func (*ClusterAPI) Version added in v1.34.0

func (_m *ClusterAPI) Version() (uint, error)

Version provides a mock function with given fields:

type IndexAPI added in v1.34.0

type IndexAPI struct {
	mock.Mock
}

IndexAPI is an autogenerated mock type for the IndexAPI type

func (*IndexAPI) CreateAlias added in v1.34.0

func (_m *IndexAPI) CreateAlias(aliases []client.Alias) error

CreateAlias provides a mock function with given fields: aliases

func (*IndexAPI) CreateIndex added in v1.34.0

func (_m *IndexAPI) CreateIndex(index string) error

CreateIndex provides a mock function with given fields: index

func (*IndexAPI) CreateTemplate added in v1.34.0

func (_m *IndexAPI) CreateTemplate(template string, name string) error

CreateTemplate provides a mock function with given fields: template, name

func (*IndexAPI) DeleteAlias added in v1.34.0

func (_m *IndexAPI) DeleteAlias(aliases []client.Alias) error

DeleteAlias provides a mock function with given fields: aliases

func (*IndexAPI) DeleteIndices added in v1.34.0

func (_m *IndexAPI) DeleteIndices(indices []client.Index) error

DeleteIndices provides a mock function with given fields: indices

func (*IndexAPI) GetJaegerIndices added in v1.34.0

func (_m *IndexAPI) GetJaegerIndices(prefix string) ([]client.Index, error)

GetJaegerIndices provides a mock function with given fields: prefix

func (*IndexAPI) Rollover added in v1.34.0

func (_m *IndexAPI) Rollover(rolloverTarget string, conditions map[string]interface{}) error

Rollover provides a mock function with given fields: rolloverTarget, conditions

type IndexManagementLifecycleAPI added in v1.34.0

type IndexManagementLifecycleAPI struct {
	mock.Mock
}

IndexManagementLifecycleAPI is an autogenerated mock type for the IndexManagementLifecycleAPI type

func (*IndexManagementLifecycleAPI) Exists added in v1.34.0

func (_m *IndexManagementLifecycleAPI) Exists(name string) (bool, error)

Exists provides a mock function with given fields: name

type IndexService

type IndexService struct {
	mock.Mock
}

IndexService is an autogenerated mock type for the IndexService type

func (*IndexService) Add added in v1.2.0

func (_m *IndexService) Add()

Add provides a mock function with given fields:

func (*IndexService) BodyJson

func (_m *IndexService) BodyJson(body interface{}) 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 (*IndicesCreateService) Body

Body provides a mock function with given fields: mapping

func (*IndicesCreateService) 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 (*IndicesExistsService) Do

Do provides a mock function with given fields: ctx

type MultiSearchService added in v0.6.0

type MultiSearchService struct {
	mock.Mock
}

MultiSearchService is an autogenerated mock type for the MultiSearchService type

func (*MultiSearchService) Add added in v0.6.0

Add provides a mock function with given fields: requests

func (*MultiSearchService) Do added in v0.6.0

Do provides a mock function with given fields: ctx

func (*MultiSearchService) Index added in v0.6.0

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 (*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 added in v0.6.0

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 added in v1.22.0

type TemplateApplier struct {
	mock.Mock
}

TemplateApplier is an autogenerated mock type for the TemplateApplier type

func (*TemplateApplier) Execute added in v1.22.0

func (_m *TemplateApplier) Execute(wr io.Writer, data interface{}) error

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

type TemplateBuilder added in v1.22.0

type TemplateBuilder struct {
	mock.Mock
}

TemplateBuilder is an autogenerated mock type for the TemplateBuilder type

func (*TemplateBuilder) Parse added in v1.22.0

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

Parse provides a mock function with given fields: text

type TemplateCreateService added in v1.14.0

type TemplateCreateService struct {
	mock.Mock
}

TemplateCreateService is an autogenerated mock type for the TemplateCreateService type

func (*TemplateCreateService) Body added in v1.14.0

Body provides a mock function with given fields: mapping

func (*TemplateCreateService) Do added in v1.14.0

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