Help us shape the future of Go! Take the 2026 Go Developer Survey

options

package
v1.16.21 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 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 Options

type Options struct {
	Port                 int
	HealthzPort          int
	HealthzListenAddress string

	ListenAddress             string
	OverrideBroadcastHostPort *string

	TLSEnabled       bool
	TrustDomain      string
	TrustAnchorsFile *string
	SentryAddress    string
	PlacementAddress string
	Mode             string
	KubeConfig       *string

	ID string

	EtcdEmbed                      bool
	EtcdInitialCluster             []string
	EtcdDataDir                    string
	EtcdClientPort                 uint64
	EtcdClientListenAddress        string
	EtcdSpaceQuota                 int64
	EtcdCompactionMode             string
	EtcdCompactionRetention        string
	EtcdSnapshotCount              uint64
	EtcdMaxSnapshots               uint
	EtcdMaxWALs                    uint
	EtcdBackendBatchLimit          int
	EtcdBackendBatchInterval       string
	EtcdDefragThresholdMB          uint
	EtcdInitialElectionTickAdvance bool
	EtcdMetrics                    string

	// TODO: @joshvanl: add Etcd client TLS enabled flag.
	EtcdClientEndpoints []string
	EtcdClientUsername  string
	EtcdClientPassword  string

	IdentityDirectoryWrite string

	Logger  logger.Options
	Metrics *metrics.FlagOptions
	// contains filtered or unexported fields
}

func New

func New(origArgs []string) (*Options, error)

Jump to

Keyboard shortcuts

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