api

package
v0.0.0-...-0cf49f2 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2015 License: BSD-3-Clause Imports: 52 Imported by: 0

Documentation

Overview

Package api implements the REST api for tsuru.

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

Index

Constants

View Source
const Version = "0.13.0-rc2"

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 PoolsByTeam

type PoolsByTeam struct {
	Team  string
	Pools []string
}

type TsuruHandler

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

Directories

Path Synopsis
Package testing provides test helpers for various actions.
Package testing provides test helpers for various actions.

Jump to

Keyboard shortcuts

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