config

package
v0.0.1-rc2 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: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bootstrap

type Bootstrap struct {
	NodeID           string
	XDSServerAddress string
	XDSServerPort    int
	XDSClusterName   string
	XDSResources     string
	AdminPort        int
	StatsPort        int
	Output           string
	UseGoogleGRPC    bool
}

Bootstrap holds the required parameters for bootstrapping proxy configuration.

type ForwardedArgs

type ForwardedArgs []string

Forwarded arguments. This is used by handler when building handler#Args for spawning the proxy process.

func (*ForwardedArgs) Parse

func (a *ForwardedArgs) Parse() []string

Parse splits os.Args into two by looking for "--". The first part will be passed for further flag parsing. The second one will be passed directly to the spawned proxy process.

A sample usage for Parse(): internal/flags/flags.go#NewFlags for preparing kong parseable object. One may "populate" this confing.ForwardedArgs in any preferrable ways.

Jump to

Keyboard shortcuts

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