options

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2026 License: Apache-2.0 Imports: 6 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CompletedOptions

type CompletedOptions struct {
	// contains filtered or unexported fields
}

type ECDSACurve added in v1.2.0

type ECDSACurve struct {
	elliptic.Curve
}

ECDSACurve wraps an elliptic.Curve and implements pflag.Value for flag parsing.

func (*ECDSACurve) Set added in v1.2.0

func (c *ECDSACurve) Set(value string) error

func (*ECDSACurve) String added in v1.2.0

func (c *ECDSACurve) String() string

func (*ECDSACurve) Type added in v1.2.0

func (c *ECDSACurve) Type() string

type Options

type Options struct {
	Enabled bool

	Directory         string
	PeerPort          string
	ClientPort        string
	ListenMetricsURLs []string
	WalSizeBytes      int64
	QuotaBackendBytes int64
	ForceNewCluster   bool
	ECDSACurve        ECDSACurve
}

func NewOptions

func NewOptions(rootDir string) *Options

func (*Options) AddFlags

func (e *Options) AddFlags(fs *pflag.FlagSet)

func (*Options) Complete

func (e *Options) Complete(etcdOptions *genericoptions.EtcdOptions) CompletedOptions

func (*Options) Validate

func (e *Options) Validate() []error

Jump to

Keyboard shortcuts

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