api

package
v0.0.0-...-ec75f14 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2016 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 = "1.0.0-rc1"

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 AuthorizationRequiredHandler

type AuthorizationRequiredHandler func(http.ResponseWriter, *http.Request, auth.Token) error

func (AuthorizationRequiredHandler) ServeHTTP

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 ServiceInstanceInfo

type ServiceInstanceInfo struct {
	Apps            []string
	Teams           []string
	TeamOwner       string
	Description     string
	PlanName        string
	PlanDescription string
	CustomInfo      map[string]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