init

package
v0.0.0-...-2a2fe1c Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action struct {
	Config        Config
	ClusterClient client.ClusterAPI
	IndicesClient client.IndexAPI
	ILMClient     client.IndexManagementLifecycleAPI
}

Action holds the configuration and clients for init action

func (Action) Do

func (c Action) Do() error

Do the init action

type Config

type Config struct {
	app.Config
	Shards   int
	Replicas int
}

Config holds configuration for index cleaner binary.

func (*Config) AddFlags

func (c *Config) AddFlags(flags *flag.FlagSet)

AddFlags adds flags for TLS to the FlagSet.

func (*Config) InitFromViper

func (c *Config) InitFromViper(v *viper.Viper)

InitFromViper initializes config from viper.Viper.

Jump to

Keyboard shortcuts

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