Versions in this module Expand all Collapse all v0 v0.0.2 Mar 3, 2017 Changes in this version + const AnyInstance + const AnyZone + const ErrInvalidMethod + func LevelFilter() *logutils.LevelFilter + func ValidateLevelFilter(minLevel logutils.LogLevel, filter *logutils.LevelFilter) bool + type Addresses struct + HTTP string + func (a *Addresses) Merge(b *Addresses) *Addresses + type AdvertiseAddrs struct + HTTP string + func (a *AdvertiseAddrs) Merge(b *AdvertiseAddrs) *AdvertiseAddrs + type HTTPCodedError interface + Code func() int + func CodedError(c int, s string) HTTPCodedError + type HTTPServer struct + func NewHTTPServer(maya *MayaServer, config *MayaConfig, logOutput io.Writer) (*HTTPServer, error) + func (s *HTTPServer) GetVolumePlugin(name string) (volume.VolumeInterface, error) + func (s *HTTPServer) MetaSpecificRequest(resp http.ResponseWriter, req *http.Request) (interface{}, error) + func (s *HTTPServer) Shutdown() + func (s *HTTPServer) VolumeSpecificRequest(resp http.ResponseWriter, req *http.Request) (interface{}, error) + type LogHandler interface + HandleLog func(string) + type LogWriter struct + func NewLogWriter(buf int) *LogWriter + func (l *LogWriter) DeregisterHandler(lh LogHandler) + func (l *LogWriter) RegisterHandler(lh LogHandler) + func (l *LogWriter) Write(p []byte) (n int, err error) + type MayaConfig struct + Addresses *Addresses + AdvertiseAddrs *AdvertiseAddrs + BindAddr string + DataDir string + Datacenter string + EnableDebug bool + EnableSyslog bool + Files []string + HTTPAPIResponseHeaders map[string]string + LeaveOnInt bool + LeaveOnTerm bool + LogLevel string + NodeName string + Ports *Ports + Region string + Revision string + ServiceProvider string + SyslogFacility string + Version string + VersionPrerelease string + func DefaultMayaConfig() *MayaConfig + func LoadMayaConfig(path string) (*MayaConfig, error) + func LoadMayaConfigDir(dir string) (*MayaConfig, error) + func ParseMayaConfig(r io.Reader) (*MayaConfig, error) + func ParseMayaConfigFile(path string) (*MayaConfig, error) + func (mc *MayaConfig) Listener(proto, addr string, port int) (net.Listener, error) + func (mc *MayaConfig) Merge(b *MayaConfig) *MayaConfig + func (mc *MayaConfig) NormalizeAddrs() error + type MayaServer struct + func NewMayaServer(config *MayaConfig, logOutput io.Writer) (*MayaServer, error) + func (ms *MayaServer) BootstrapPlugins() error + func (ms *MayaServer) GetVolumePlugin(name string) (volume.VolumeInterface, error) + func (ms *MayaServer) Leave() error + func (ms *MayaServer) Shutdown() error + type Ports struct + HTTP int + func (a *Ports) Merge(b *Ports) *Ports + type SyslogWrapper struct + Filt *logutils.LevelFilter + L gsyslog.Syslogger + func (s *SyslogWrapper) Write(p []byte) (int, error)