flagutil

package
v1.4.6-beta.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2016 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cadvisor = struct {
	HousekeepingInterval       FlagFunc
	GlobalHousekeepingInterval FlagFunc
}{
	flagFunc("housekeeping_interval"),
	flagFunc("global_housekeeping_interval"),
}

Cadvisor fields return the configured values of cadvisor global flags

Functions

This section is empty.

Types

type FlagFunc

type FlagFunc func() *flag.Flag

FlagFunc retrieves a specific flag instance; returns nil if the flag is not configured.

func (FlagFunc) NameValue

func (ff FlagFunc) NameValue() (name, value string)

NameValue returns the name and value of a flag, if it exists, otherwise empty strings.

Jump to

Keyboard shortcuts

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