github.com/rochacon/deis@v1.0.2-0.20150903015341-6839b592a1ff/client/controller/api/apps.go (about) 1 package api 2 3 // App is the definition of the app object. 4 type App struct { 5 Created string `json:"created"` 6 ID string `json:"id"` 7 Owner string `json:"owner"` 8 Updated string `json:"updated"` 9 URL string `json:"url"` 10 UUID string `json:"uuid"` 11 } 12 13 // AppCreateRequest is the definition of POST /v1/apps/. 14 type AppCreateRequest struct { 15 ID string `json:"id,omitempty"` 16 } 17 18 // AppRunRequest is the definition of POST /v1/apps/<app id>/run. 19 type AppRunRequest struct { 20 Command string `json:"command"` 21 } 22 23 // AppRunResponse is the definition of /v1/apps/<app id>/run. 24 type AppRunResponse struct { 25 Output string `json:"output"` 26 ReturnCode int `json:"rc"` 27 }