Documentation
¶
Index ¶
- func NewMappingVersions(fileDir string) (map[string]*MappingVersion, error)
- type Config
- type MappingVersion
- type PutFn
- type Runner
- func (r *Runner) Create(c *cli.Context) error
- func (r *Runner) CreateAll() error
- func (r *Runner) CreateOne(search string) error
- func (r *Runner) Pull(c *cli.Context) error
- func (r *Runner) PullAll() error
- func (r *Runner) PullForIndex(index string) error
- func (r *Runner) PullMapping(mappingName string) error
- func (r *Runner) Update(c *cli.Context) error
- func (r *Runner) UpdateAll() error
- func (r *Runner) UpdateOne(search string) error
- type SearchDefinition
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMappingVersions ¶
func NewMappingVersions(fileDir string) (map[string]*MappingVersion, error)
Types ¶
type Config ¶
type Config struct {
ElasticConnection struct {
Host string `yaml:"host"`
Port string `yaml:"port"`
} `yaml:"es_connection"`
ElasticIndices []struct {
Name string `yaml:"name"`
Searches []SearchDefinition `yaml:"searches"`
} `yaml:"es_indices"`
}
Config is a representation of the main configuration file.
func (*Config) ElasticURL ¶
ElasticURL returns the HTTP URL used to connect to the ES cluster.
func (*Config) SearchDefinitionByMapping ¶
func (c *Config) SearchDefinitionByMapping(mappingName string) (*SearchDefinition, error)
func (*Config) SearchDefinitionByName ¶
func (c *Config) SearchDefinitionByName(name string) (*SearchDefinition, error)
type MappingVersion ¶
func LatestMappingVersion ¶
func LatestMappingVersion(fileDir, baseName string) (*MappingVersion, error)
func NewMappingVersion ¶
func NewMappingVersion(fileDir, filename string) (*MappingVersion, error)
func (*MappingVersion) ElasticMapping ¶
func (m *MappingVersion) ElasticMapping() string
type Runner ¶
type Runner struct {
OptionAll bool
OptionIndex string
OptionMapping string
OptionSearch string
// contains filtered or unexported fields
}
func (*Runner) PullForIndex ¶
func (*Runner) PullMapping ¶
Click to show internal directories.
Click to hide internal directories.