github.com/naphatkrit/deis@v1.12.3/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 // AppUpdateRequest is the definition of POST /v1/apps/<app id>/. 19 type AppUpdateRequest struct { 20 Owner string `json:"owner,omitempty"` 21 } 22 23 // AppRunRequest is the definition of POST /v1/apps/<app id>/run. 24 type AppRunRequest struct { 25 Command string `json:"command"` 26 } 27 28 // AppRunResponse is the definition of /v1/apps/<app id>/run. 29 type AppRunResponse struct { 30 Output string `json:"output"` 31 ReturnCode int `json:"rc"` 32 }