github.com/swisscom/cloudfoundry-cli@v7.1.0+incompatible/api/cloudcontroller/ccv3/constant/application.go (about) 1 package constant 2 3 // AppLifecycleType informs the platform of how to build droplets and run apps. 4 type AppLifecycleType string 5 6 const ( 7 // AppLifecycleTypeBuildpack will use a droplet and a rootfs to run the app. 8 AppLifecycleTypeBuildpack AppLifecycleType = "buildpack" 9 // AppLifecycleTypeDocker will pull a docker image from a registry to run an 10 // app. 11 AppLifecycleTypeDocker AppLifecycleType = "docker" 12 ) 13 14 // ApplicationAction represents the action being taken on an application 15 type ApplicationAction string 16 17 const ( 18 // ApplicationStarting indicates that the app is being started 19 ApplicationStarting ApplicationAction = "Starting" 20 // ApplicationRestarting indicates that the app is being restarted 21 ApplicationRestarting ApplicationAction = "Restarting" 22 ) 23 24 // ApplicationState represents the current desired state of the app. 25 type ApplicationState string 26 27 const ( 28 // ApplicationStopped is a desired 'stopped' state. 29 ApplicationStopped ApplicationState = "STOPPED" 30 // ApplicationStarted is a desired 'started' state. 31 ApplicationStarted ApplicationState = "STARTED" 32 )