flags

package
v0.9.8-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultClusterUID is the uid to use for clusters resources created by an
	// L7 controller created without specifying the --cluster-uid flag.
	DefaultClusterUID = ""
	// DefaultNodePortRange is the list of ports or port ranges used by kubernetes for
	// allocating NodePort services.
	DefaultNodePortRange = "30000-32767"
)

Variables

View Source
var (
	// F are global flags for the controller.
	F = struct {
		APIServerHost   string
		ClusterName     string
		ConfigFilePath  string
		DefaultSvc      string
		DeleteAllOnQuit bool
		HealthCheckPath string
		HealthzPort     int
		InCluster       bool
		IngressClass    string
		KubeConfigFile  string
		ResyncPeriod    time.Duration
		Verbose         bool
		Version         bool
		WatchNamespace  string
		NodePortRanges  PortRanges
	}{}
)

Functions

func Register

func Register()

Register flags with the command line parser.

Types

type PortRanges

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

func (*PortRanges) Set

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

Set supports a value of CSV or the flag repeated multiple times

func (*PortRanges) String

func (c *PortRanges) String() string

String is the method to format the flag's value, part of the flag.Value interface.

func (*PortRanges) Values

func (c *PortRanges) Values() []string

Set supports a value of CSV or the flag repeated multiple times

Jump to

Keyboard shortcuts

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