Documentation
¶
Overview ¶
Package api implements the REST api for tsuru.
It provides the REST api for managing users, teams, apps and services.
Index ¶
- Constants
- func InitializeDBServices() error
- func InputFields(r *http.Request, exclude ...string) url.Values
- func InputValue(r *http.Request, field string) string
- func InputValues(r *http.Request, field string) ([]string, bool)
- func ParseInput(r *http.Request, dst interface{}) error
- func RegisterHandler(path string, method string, h http.Handler)
- func RegisterHandlerVersion(version, path, method string, h http.Handler)
- func RunServer(dry bool) http.Handler
- type AuthorizationRequiredHandler
- type Handler
- type TsuruHandler
Constants ¶
View Source
const Version = "1.7.0-rc6"
Variables ¶
This section is empty.
Functions ¶
func InitializeDBServices ¶
func InitializeDBServices() error
func ParseInput ¶
func RegisterHandler ¶
RegisterHandler inserts a handler on a list of handlers for version 1.0
func RegisterHandlerVersion ¶
RegisterHandlerVersion inserts a handler on a list of handlers
Types ¶
type AuthorizationRequiredHandler ¶
func (AuthorizationRequiredHandler) ServeHTTP ¶
func (fn AuthorizationRequiredHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type TsuruHandler ¶
type TsuruHandler struct {
// contains filtered or unexported fields
}
Source Files
¶
- app.go
- auth.go
- autoscale.go
- build.go
- cluster.go
- debug.go
- deploy.go
- doc.go
- event.go
- handler.go
- healing.go
- healthcheck.go
- iaas.go
- index.go
- index_templates.go
- info.go
- install.go
- log.go
- logtracker.go
- middleware.go
- node.go
- nodecontainer.go
- permission.go
- plan.go
- platform.go
- pool.go
- pprof.go
- quota.go
- router.go
- saml.go
- server.go
- service.go
- service_broker.go
- service_instance.go
- shell.go
- team_token.go
- volume.go
- webhook.go
Click to show internal directories.
Click to hide internal directories.