github.com/wanddynosios/cli/v8@v8.7.9-0.20240221182337-1a92e3a7017f/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 // ApplicationRollingBack indicates that the app is being rolled back to a 23 // prior revision 24 ApplicationRollingBack ApplicationAction = "Rolling Back" 25 ) 26 27 // ApplicationState represents the current desired state of the app. 28 type ApplicationState string 29 30 const ( 31 // ApplicationStopped is a desired 'stopped' state. 32 ApplicationStopped ApplicationState = "STOPPED" 33 // ApplicationStarted is a desired 'started' state. 34 ApplicationStarted ApplicationState = "STARTED" 35 )