sidecar

package
v0.0.1-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2023 License: GPL-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCommand

func NewCommand() *cobra.Command

func NewVersionCommand

func NewVersionCommand() *cobra.Command

Types

type Option

type Option struct {
	LogLevel        string
	Port            int
	ServerVirtualIP net.IP
	ClientCIDRs     []*net.IPNet
	EnablePProf     bool
	PrivateIP       string
	Redis           string
}

func NewOption

func NewOption() *Option

func (*Option) Validate

func (o *Option) Validate() (*Option, error)

func (*Option) WithCliFlags

func (o *Option) WithCliFlags(flags *pflag.FlagSet) *Option

func (*Option) WithDefaults

func (o *Option) WithDefaults() *Option

func (*Option) WithEnvVariables

func (o *Option) WithEnvVariables() *Option

Jump to

Keyboard shortcuts

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