option

package
v0.0.0-...-f584327 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KubeBrainOption

type KubeBrainOption struct {

	// key prefix
	Prefix string

	// TODO validate key by prefix when read and write
	SkippedPrefixes []string

	ClusterName string

	EnableStorageMetrics bool
	// contains filtered or unexported fields
}

func NewOptions

func NewOptions() *KubeBrainOption

func (*KubeBrainOption) AddFlags

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

AddFlags adds flags to fs and binds them to options.

func (*KubeBrainOption) Run

func (o *KubeBrainOption) Run(ctx context.Context) error

Run runs the storage engine

func (*KubeBrainOption) Validate

func (o *KubeBrainOption) Validate() error

Validate checks the option before running

Jump to

Keyboard shortcuts

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