Versions in this module Expand all Collapse all v0 v0.0.2 Oct 7, 2015 v0.0.1 Oct 7, 2015 Changes in this version + var DontPanicError = APIErrorResponse + var ExistingTemplateError = APIErrorResponse + var InvalidTokenError = APIErrorResponse + var MissingAuthHeaderError = APIErrorResponse + var MissingTokenFieldError = APIErrorResponse + var TemplateNotFoundError = APIErrorResponse + var UnableToListError = APIErrorResponse + var UnavailableTemplateError = APIErrorResponse + func NewDefaultRouter(registry Registry) *mux.Router + type APIErrorResponse struct + Errors []ErrorHint + Message string + func (apiError APIErrorResponse) Error() string + type AuthStore interface + Authorize func(inner http.Handler) http.Handler + type ContainerLimits struct + CPUShares int64 + Memory int64 + type ErrorHint struct + Code string + Field string + Resource string + type InMemoryStore struct + func NewInMemoryStore() InMemoryStore + func (store InMemoryStore) GetTemplate(name string) (Template, error) + func (store InMemoryStore) ListTemplates() ([]Template, error) + func (store InMemoryStore) RegisterTemplate(tmpl Template) (Template, error) + func (store InMemoryStore) UpdateTemplate(tmpl Template) (Template, error) + type Registry struct + func (registry Registry) Index(w http.ResponseWriter, r *http.Request) + func (registry Registry) TemplateCreate(w http.ResponseWriter, r *http.Request) + func (registry Registry) TemplateIndex(w http.ResponseWriter, r *http.Request) + func (registry Registry) TemplateShow(w http.ResponseWriter, r *http.Request) + func (registry Registry) TemplateUpdate(w http.ResponseWriter, r *http.Request) + type Store interface + GetTemplate func(name string) (Template, error) + ListTemplates func() ([]Template, error) + RegisterTemplate func(tmpl Template) (Template, error) + UpdateTemplate func(tmpl Template) (Template, error) + type Template struct + BindIP string + BindPort int64 + Command string + ImageName string + Limits ContainerLimits + Name string + RedirectURI string + TimeCreated time.Time + TimeModified time.Time + type TokenAuthStore struct + Token string + func (authStore TokenAuthStore) Authorize(inner http.Handler) http.Handler