rest_json

package
v0.0.0-...-1316712 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2016 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeploymentAsJSON

func DeploymentAsJSON(deployment common.Deployment) map[string]interface{}

func DeploymentStatusAsJSON

func DeploymentStatusAsJSON(status common.DeploymentStatus) map[string]interface{}

Types

type CreateDeploymentHandler

type CreateDeploymentHandler struct {
	Applications  *config.Applications
	PreDeployment func(*http.Request, common.Deployment) error
}

func (*CreateDeploymentHandler) ServeHTTP

func (handler *CreateDeploymentHandler) ServeHTTP(res http.ResponseWriter, req *http.Request)

type CreateDeploymentRequest

type CreateDeploymentRequest struct {
	Application string                 `json:"application"`
	Environment string                 `json:"environment"`
	Ref         string                 `json:"ref"`
	Flags       map[string]interface{} `json:"flags"`
}

type DeploymentsStatusHandler

type DeploymentsStatusHandler struct {
	Applications *config.Applications
}

func (*DeploymentsStatusHandler) ServeHTTP

func (handler *DeploymentsStatusHandler) ServeHTTP(res http.ResponseWriter, req *http.Request)

Jump to

Keyboard shortcuts

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