options

package
v0.0.1-rc1 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ForwardedArgs config.ForwardedArgs

Functions

This section is empty.

Types

type Flags

type Flags struct {
	NodeID         string `help:"Specify the proxy node ID." default:"default"`
	XDSServerURL   string `help:"Specify the xDS server URL." default:"localhost:9901"`
	XDSClusterName string `help:"Specify the xDS cluster name." default:"xds_cluster"`
	XDSResources   string `help:"A directory containing resources." default:""`
	UseGoogleGRPC  bool   `help:"Specify to use Google gRPC client implementation."`
	AdminPort      int    `help:"Specify the admin interface port"`
	StatsPort      int    `help:"Specify the exposed stats port"`
	Output         string `help:"Specify the file to write the rendered config. Available values: stdout, stderr, or a valid file path"`
	Version        bool   `help:"Show application version."`
}

func NewFlags

func NewFlags() *Flags

NewFlags returns a parse-able instance to kong.Parse().

func (*Flags) ToBootstrap

func (f *Flags) ToBootstrap() (*config.Bootstrap, error)

ToBootstrap returns boostrap object.

Jump to

Keyboard shortcuts

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