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

type IPAddressPort struct {
	IP   string
	Port int
}

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

func (pf *Proxy) Set(s string) error

Set verifies the argument to be a valid member of proxyFlagValues before setting the underlying flag value.

func (*Proxy) String

func (pf *Proxy) String() string

type URLsValue

type URLsValue types.URLs

func NewURLsValue

func NewURLsValue(init string) *URLsValue

func (*URLsValue) Set

func (us *URLsValue) Set(s string) error

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

func (us *URLsValue) String() string

Source Files

ipaddressport.go proxy.go urls.go

Version
v0.5.0-alpha.0
Published
Oct 25, 2014
Platform
windows/amd64
Imports
6 packages
Last checked
17 minutes ago

Tools for package owners.