package flags
import "github.com/coreos/etcd/pkg/flags"
Index ¶
Constants ¶
const ( ProxyValueOff = "off" ProxyValueReadonly = "readonly" ProxyValueOn = "on" )
Variables ¶
var ( ProxyValues = []string{ ProxyValueOff, ProxyValueReadonly, ProxyValueOn, } )
Types ¶
type IPAddressPort ¶
IPAddressPort implements the flag.Value interface. The argument is validated as "ip:port".
func (*IPAddressPort) Set ¶
func (a *IPAddressPort) Set(arg string) error
func (*IPAddressPort) String ¶
func (a *IPAddressPort) String() string
type Proxy ¶
type Proxy string
ProxyFlag implements the flag.Value interface.
func (*Proxy) Set ¶
Set verifies the argument to be a valid member of proxyFlagValues before setting the underlying flag value.
func (*Proxy) String ¶
type URLsValue ¶
func NewURLsValue ¶
func (*URLsValue) Set ¶
Set parses a command line set of URLs formatted like: http://127.0.0.1:7001,http://10.1.1.2:80
func (*URLsValue) String ¶
Source Files ¶
ipaddressport.go proxy.go urls.go
- Version
- v0.5.0-alpha.0
- Published
- Oct 25, 2014
- Platform
- darwin/amd64
- Imports
- 6 packages
- Last checked
- 10 minutes ago –
Tools for package owners.