Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConsulProvider ¶
type ConsulProvider struct { Servers []string // contains filtered or unexported fields }
func Consul ¶
func Consul(servers ...string) *ConsulProvider
func (*ConsulProvider) Init ¶
func (c *ConsulProvider) Init() error
func (*ConsulProvider) Lookup ¶
func (c *ConsulProvider) Lookup(key string) (interface{}, error)
type EtcdProvider ¶
type EtcdProvider struct { Servers []string // contains filtered or unexported fields }
func Etcd ¶
func Etcd(servers ...string) *EtcdProvider
func (*EtcdProvider) Init ¶
func (c *EtcdProvider) Init() error
func (*EtcdProvider) Lookup ¶
func (c *EtcdProvider) Lookup(key string) (interface{}, error)
type GCEMetadataProvider ¶
type GCEMetadataProvider struct { URL string // contains filtered or unexported fields }
func GCE ¶
func GCE() *GCEMetadataProvider
func (*GCEMetadataProvider) Init ¶
func (g *GCEMetadataProvider) Init() error
func (*GCEMetadataProvider) Lookup ¶
func (g *GCEMetadataProvider) Lookup(key string) (interface{}, error)
type OpenstackMetadataProvider ¶
type OpenstackMetadataProvider struct { URL string // contains filtered or unexported fields }
func Openstack ¶
func Openstack() *OpenstackMetadataProvider
func (*OpenstackMetadataProvider) Init ¶
func (g *OpenstackMetadataProvider) Init() error
func (*OpenstackMetadataProvider) Lookup ¶
func (g *OpenstackMetadataProvider) Lookup(key string) (interface{}, error)
type ValidationError ¶
ValidationError defines information about a validation error.
func Validate ¶
func Validate(vs map[string]Validator) []*ValidationError
Validate looks for values in the given map which implement Validator, if calls Validate, collecting ValidationErrors.
TODO this will probably go away. Haven't figured out a reasonable, generic
interface to handling the wide range of validation cases. Probably better implemented as custom, explicit logic.
func (*ValidationError) Error ¶
func (v *ValidationError) Error() string
Error returns an error message.
type Validator ¶
type Validator interface {
Validate() []error
}
Validator defines the interface of a value that should be validated.
type YAMLMarshaler ¶
type YAMLMarshaler struct { ExcludeDefaults interface{} IncludeEmpty bool }
func (*YAMLMarshaler) Marshal ¶
func (y *YAMLMarshaler) Marshal(rv RogerVals) string
Source Files ¶
Click to show internal directories.
Click to hide internal directories.