Documentation ¶
Index ¶
- func CreateDeployment(dm agent.Manager, w http.ResponseWriter, r *http.Request)
- func DeleteDeployment(dm agent.Manager, w http.ResponseWriter, r *http.Request)
- func ListDeployments(dm agent.Manager, w http.ResponseWriter, r *http.Request)
- func Metadata(dm agent.Manager, w http.ResponseWriter, r *http.Request)
- func ReDeploy(dm agent.Manager, w http.ResponseWriter, r *http.Request)
- func RedeploymentURLForDeploymentID(id string) string
- func ShowDeployment(dm agent.Manager, w http.ResponseWriter, r *http.Request)
- func URLForDeploymentID(id string) string
- func URLForDeployments() string
- func URLForMetadata() string
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateDeployment ¶
CreateDeployment receives a JSON DeploymentBlueprint that will be handled by the agent.Manager and responded to with a DeploymentResponseLite, if appropriate.
func DeleteDeployment ¶
DeleteDeployment tells the manager to delete a deployment and returns a No Content response code.
func ListDeployments ¶
ListDeployments queries the manager and writes deployment JSON to the http.ResponseWriter.
func RedeploymentURLForDeploymentID ¶
RedeploymentURLForDeploymentID returns the URL to redeploy a specific deployment.
func ShowDeployment ¶
ShowDeployment gets a deployment from the manager and returns its full JSON.
func URLForDeploymentID ¶
URLForDeploymentID returns the URL for a specific deployment.
func URLForDeployments ¶
func URLForDeployments() string
URLForDeployments returns the URL for all deployments.
Types ¶
type Server ¶
type Server interface { Start(string) // contains filtered or unexported methods }
A Server is the HTTP server which responds to API requests.
func MakeInsecureServer ¶
MakeInsecureServer returns a new Server instance containting a manager to which it will defer work.