options

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: May 9, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ElasticSearchConfig

type ElasticSearchConfig struct {
	Addresses []string
	UserName  string
	Password  string
}

type SearchStorageOptions

type SearchStorageOptions struct {
	SearchStorageType      string
	ElasticSearchAddresses []string
	ElasticSearchName      string
	ElasticSearchPassword  string
}

func NewSearchStorageOptions

func NewSearchStorageOptions() *SearchStorageOptions

func (*SearchStorageOptions) AddFlags

func (o *SearchStorageOptions) AddFlags(fs *pflag.FlagSet)

AddFlags adds flags for a specific Option to the specified FlagSet

func (*SearchStorageOptions) ApplyTo

func (o *SearchStorageOptions) ApplyTo(config *apiserver.ExtraConfig) error

func (*SearchStorageOptions) Validate

func (o *SearchStorageOptions) Validate() []error

Jump to

Keyboard shortcuts

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