api

package
v0.0.0-...-4eaaba6 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2014 License: BSD-3-Clause Imports: 38 Imported by: 0

Documentation

Overview

Package api implements the REST api for tsuru.

It provides the REST api for manage users, teams, apps and services.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterHandler

func RegisterHandler(path string, method string, h http.Handler)

RegisterHandler inserts a handler on a list of handlers

func RunServer

func RunServer(dry bool) http.Handler

RunServer starts tsuru API server. The dry parameter indicates whether the server should run in dry mode, not starting the HTTP listener (for testing purposes).

Types

type AdminRequiredHandler

type AdminRequiredHandler authorizationRequiredHandler

func (AdminRequiredHandler) ServeHTTP

func (fn AdminRequiredHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type Handler

type Handler func(http.ResponseWriter, *http.Request) error

func (Handler) ServeHTTP

func (fn Handler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type TsuruHandler

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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