Documentation ¶
Overview ¶
Package elastic provides a Gnomock Preset for Elasticsearch.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option func(*P)
Option is an optional configuration of this Gnomock preset. Use available Options to configure the container.
func WithInputFile ¶
WithInputFile allows to load JSON data located in the provided file into Elasticsearch container once it is up. File name is used as ingestion index. Use multiple files to ingest JSON data into multiple indices.
Data should be provided as a sequence of separate JSON objects, where each object is ingested as a single entity. There is no need to make an array of objects; a regular JSON object sequence without any separators will work.
type P ¶
P is a Gnomock Preset implementation of Elasticsearch.
func (*P) Ports ¶
func (p *P) Ports() gnomock.NamedPorts
Ports returns ports that should be used to access this container.