controllers

package
v0.0.0-...-218c583 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2017 License: Apache-2.0, Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RequestTimeout time.Duration = 3600 * time.Second

Functions

func AppCancel

func AppCancel(rw http.ResponseWriter, r *http.Request) *httperr.Error

AppCancel cancels an app update

func AppCreate

func AppCreate(rw http.ResponseWriter, r *http.Request) *httperr.Error

AppCreate creates an application

func AppDelete

func AppDelete(rw http.ResponseWriter, r *http.Request) *httperr.Error

AppDelete deletes an application

func AppGet

func AppGet(rw http.ResponseWriter, r *http.Request) *httperr.Error

AppGet gets app information

func AppList

func AppList(rw http.ResponseWriter, r *http.Request) *httperr.Error

AppList lists installed apps

func AppLogs

func AppLogs(ws *websocket.Conn) *httperr.Error

AppLogs show an app's logs

func Auth

func BuildCreate

func BuildCreate(rw http.ResponseWriter, r *http.Request) *httperr.Error

func BuildDelete

func BuildDelete(rw http.ResponseWriter, r *http.Request) *httperr.Error

BuildDelete deletes a build. Makes sure not to delete a build that is contained in the active release

func BuildExport

func BuildExport(rw http.ResponseWriter, r *http.Request) *httperr.Error

BuildExport creates an artifact, representing a build, to be used with another Rack

func BuildGet

func BuildGet(rw http.ResponseWriter, r *http.Request) *httperr.Error

func BuildList

func BuildList(rw http.ResponseWriter, r *http.Request) *httperr.Error

func BuildLogs

func BuildLogs(ws *websocket.Conn) *httperr.Error

func CertificateCreate

func CertificateCreate(rw http.ResponseWriter, r *http.Request) *httperr.Error

func CertificateDelete

func CertificateDelete(rw http.ResponseWriter, r *http.Request) *httperr.Error

func CertificateGenerate

func CertificateGenerate(rw http.ResponseWriter, r *http.Request) *httperr.Error

func CertificateList

func CertificateList(rw http.ResponseWriter, r *http.Request) *httperr.Error

func EnvironmentDelete

func EnvironmentDelete(rw http.ResponseWriter, r *http.Request) *httperr.Error

func EnvironmentList

func EnvironmentList(rw http.ResponseWriter, r *http.Request) *httperr.Error

func EnvironmentSet

func EnvironmentSet(rw http.ResponseWriter, r *http.Request) *httperr.Error

func ForkRelease

func ForkRelease(app *structs.App) (*structs.Release, error)

ForkRelease creates a new release based on the app's release

func FormationList

func FormationList(rw http.ResponseWriter, r *http.Request) *httperr.Error

func FormationSet

func FormationSet(rw http.ResponseWriter, r *http.Request) *httperr.Error

func GetForm

func GetForm(r *http.Request, name string) string

func HandlerFunc

func HandlerFunc(w http.ResponseWriter, req *http.Request)

func IndexDiff

func IndexDiff(rw http.ResponseWriter, r *http.Request) *httperr.Error

func IndexUpdate

func IndexUpdate(rw http.ResponseWriter, r *http.Request) *httperr.Error

IndexUpdate accepts a tarball of changes to the index

func InstanceSSH

func InstanceSSH(ws *websocket.Conn) *httperr.Error

func InstanceTerminate

func InstanceTerminate(rw http.ResponseWriter, r *http.Request) *httperr.Error

func InstancesKeyroll

func InstancesKeyroll(rw http.ResponseWriter, r *http.Request) *httperr.Error

func InstancesList

func InstancesList(rw http.ResponseWriter, r *http.Request) *httperr.Error

func LinkCreate

func LinkCreate(rw http.ResponseWriter, r *http.Request) *httperr.Error

func LinkDelete

func LinkDelete(rw http.ResponseWriter, r *http.Request) *httperr.Error

func NewRouter

func NewRouter() (router *mux.Router)

func ParametersList

func ParametersList(rw http.ResponseWriter, r *http.Request) *httperr.Error

func ParametersSet

func ParametersSet(rw http.ResponseWriter, r *http.Request) *httperr.Error

func ProcessExecAttached

func ProcessExecAttached(ws *websocket.Conn) *httperr.Error

ProcessExecAttached runs an attached command in an existing process

func ProcessGet

func ProcessGet(rw http.ResponseWriter, r *http.Request) *httperr.Error

ProcessGet returns a process for an app

func ProcessList

func ProcessList(rw http.ResponseWriter, r *http.Request) *httperr.Error

ProcessList returns a list of processes for an app

func ProcessRunAttached

func ProcessRunAttached(ws *websocket.Conn) *httperr.Error

ProcessRunAttached runs an attached command in an new process

func ProcessRunDetached

func ProcessRunDetached(rw http.ResponseWriter, r *http.Request) *httperr.Error

ProcessRunDetached runs a process in the background

func ProcessStop

func ProcessStop(rw http.ResponseWriter, r *http.Request) *httperr.Error

ProcessStop stops a Process

func Proxy

func Proxy(ws *websocket.Conn) *httperr.Error

func RackList

func RackList(rw http.ResponseWriter, r *http.Request) *httperr.Error

func Redirect

func Redirect(rw http.ResponseWriter, r *http.Request, path string) *httperr.Error

func RegistryCreate

func RegistryCreate(rw http.ResponseWriter, r *http.Request) *httperr.Error

func RegistryDelete

func RegistryDelete(rw http.ResponseWriter, r *http.Request) *httperr.Error

func RegistryList

func RegistryList(rw http.ResponseWriter, r *http.Request) *httperr.Error

func ReleaseGet

func ReleaseGet(rw http.ResponseWriter, req *http.Request) *httperr.Error

func ReleaseList

func ReleaseList(rw http.ResponseWriter, r *http.Request) *httperr.Error

func ReleasePromote

func ReleasePromote(rw http.ResponseWriter, r *http.Request) *httperr.Error

func RenderError

func RenderError(rw http.ResponseWriter, err error) *httperr.Error

func RenderJson

func RenderJson(rw http.ResponseWriter, object interface{}) *httperr.Error

func RenderSuccess

func RenderSuccess(rw http.ResponseWriter) *httperr.Error

func RenderText

func RenderText(rw http.ResponseWriter, text string) *httperr.Error

func ResourceCreate

func ResourceCreate(rw http.ResponseWriter, r *http.Request) *httperr.Error

ResourceCreate creates a resource.

func ResourceDelete

func ResourceDelete(rw http.ResponseWriter, r *http.Request) *httperr.Error

ResourceDelete deletes a resource.

func ResourceList

func ResourceList(rw http.ResponseWriter, r *http.Request) *httperr.Error

ResourceList lists resources.

func ResourceShow

func ResourceShow(rw http.ResponseWriter, r *http.Request) *httperr.Error

ResourceShow shows a resource.

func ResourceUpdate

func ResourceUpdate(rw http.ResponseWriter, r *http.Request) *httperr.Error

ResourceUpdate updates a resource.

func SNSConfirm

func SNSConfirm(w http.ResponseWriter, r *http.Request)

func SNSProxy

func SNSProxy(w http.ResponseWriter, r *http.Request)

func SSLList

func SSLList(rw http.ResponseWriter, r *http.Request) *httperr.Error

func SSLUpdate

func SSLUpdate(rw http.ResponseWriter, r *http.Request) *httperr.Error

func Switch

func SystemCapacity

func SystemCapacity(rw http.ResponseWriter, r *http.Request) *httperr.Error

func SystemLogs

func SystemLogs(ws *websocket.Conn) *httperr.Error

SystemLogs returns the logs for the Rack

func SystemProcesses

func SystemProcesses(rw http.ResponseWriter, r *http.Request) *httperr.Error

func SystemReleases

func SystemReleases(rw http.ResponseWriter, r *http.Request) *httperr.Error

SystemReleases lists the latest releases of the rack

func SystemShow

func SystemShow(rw http.ResponseWriter, r *http.Request) *httperr.Error

func SystemUpdate

func SystemUpdate(rw http.ResponseWriter, r *http.Request) *httperr.Error

func UtilityBoom

func UtilityBoom(rw http.ResponseWriter, r *http.Request)

func UtilityCheck

func UtilityCheck(rw http.ResponseWriter, r *http.Request)

Types

type ApiHandlerFunc

type ApiHandlerFunc func(http.ResponseWriter, *http.Request) *httperr.Error

type ApiWebsocketFunc

type ApiWebsocketFunc func(*websocket.Conn) *httperr.Error

Jump to

Keyboard shortcuts

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