options

package
v0.0.0-...-d7867ec Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package options abstracts the options loading flow for pod utilities

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(loader OptionLoader) error

Load loads the set of options, preferring to use JSON config from an env var, but falling back to command line flags if not possible.

Types

type OptionLoader

type OptionLoader interface {
	ConfigVar() string
	LoadConfig(config string) error
	AddFlags(flags *flag.FlagSet)
	Complete(args []string)
}

OptionLoader allows loading options from either the environment or flags.

Jump to

Keyboard shortcuts

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