server

package
v0.0.0-...-e45363a Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2016 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Protocol string    `json:"protocol,omitempty"`
	Address  string    `json:"address,omitempty"`
	Port     int       `json:"port,omitempty"`
	Username string    `json:"username,omitempty"`
	Password string    `json:"password,omitempty"`
	TLS      TLSConfig `json:"tls,omitempty"`
}

func (Config) Validate

func (c Config) Validate() error

type InstanceHandler

type InstanceHandler struct {
	// contains filtered or unexported fields
}

func NewInstanceHandler

func NewInstanceHandler(
	config Config,
	registryStore store.Store,
	logger boshlog.Logger,
) *InstanceHandler

func (*InstanceHandler) HandleDelete

func (ih *InstanceHandler) HandleDelete(instanceID string, w http.ResponseWriter, req *http.Request)

func (*InstanceHandler) HandleFunc

func (ih *InstanceHandler) HandleFunc(w http.ResponseWriter, req *http.Request)

func (*InstanceHandler) HandleGet

func (ih *InstanceHandler) HandleGet(instanceID string, w http.ResponseWriter, req *http.Request)

func (*InstanceHandler) HandlePut

func (ih *InstanceHandler) HandlePut(instanceID string, w http.ResponseWriter, req *http.Request)

type Listener

type Listener struct {
	// contains filtered or unexported fields
}

func NewListener

func NewListener(
	config Config,
	handler *InstanceHandler,
	logger boshlog.Logger,
) Listener

func (*Listener) ListenAndServe

func (l *Listener) ListenAndServe() <-chan error

func (*Listener) Stop

func (l *Listener) Stop()

type SettingsResponse

type SettingsResponse struct {
	Settings string `json:"settings"`
	Status   string `json:"status"`
}

type TLSConfig

type TLSConfig struct {
	CertFile   string `json:"certfile,omitempty"`
	KeyFile    string `json:"keyfile,omitempty"`
	CACertFile string `json:"cacertfile,omitempty"`
}

func (TLSConfig) Validate

func (c TLSConfig) Validate() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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