github.com/franc20/ayesa_sap@v7.0.0-beta.28.0.20200124003224-302d4d52fa6c+incompatible/plugin/v7/models/get_app.go (about) 1 // +build V7 2 3 package models 4 5 import ( 6 "time" 7 8 "code.cloudfoundry.org/cli/types" 9 ) 10 11 type Metadata struct { 12 Labels map[string]types.NullString 13 } 14 15 type AppLifecycleType string 16 type ApplicationState string 17 18 type Application struct { 19 Name string 20 GUID string 21 StackName string 22 State ApplicationState 23 LifecycleType AppLifecycleType 24 LifecycleBuildpacks []string 25 Metadata *Metadata 26 } 27 28 type HealthCheckType string 29 30 type Process struct { 31 GUID string 32 Type string 33 Command types.FilteredString 34 HealthCheckType HealthCheckType 35 HealthCheckEndpoint string 36 HealthCheckInvocationTimeout int64 37 HealthCheckTimeout int64 38 Instances types.NullInt 39 MemoryInMB types.NullUint64 40 DiskInMB types.NullUint64 41 } 42 43 type Sidecar struct { 44 GUID string 45 Name string 46 Command types.FilteredString 47 } 48 49 type ProcessInstanceState string 50 51 type ProcessInstance struct { 52 CPU float64 53 Details string 54 DiskQuota uint64 55 DiskUsage uint64 56 Index int64 57 IsolationSegment string 58 MemoryQuota uint64 59 MemoryUsage uint64 60 State ProcessInstanceState 61 Type string 62 Uptime time.Duration 63 } 64 65 type ProcessSummary struct { 66 Process 67 68 Sidecars []Sidecar 69 70 InstanceDetails []ProcessInstance 71 } 72 73 type ProcessSummaries []ProcessSummary 74 75 type RouteDestinationApp struct { 76 GUID string 77 Process struct { 78 Type string 79 } 80 } 81 82 type RouteDestination struct { 83 GUID string 84 App RouteDestinationApp 85 } 86 87 type Route struct { 88 GUID string 89 SpaceGUID string 90 DomainGUID string 91 Host string 92 Path string 93 DomainName string 94 SpaceName string 95 URL string 96 Destinations []RouteDestination 97 Metadata *Metadata 98 } 99 100 type ApplicationSummary struct { 101 Application 102 ProcessSummaries ProcessSummaries 103 Routes []Route 104 } 105 106 type DropletState string 107 108 type DropletBuildpack struct { 109 Name string 110 DetectOutput string 111 } 112 113 type Droplet struct { 114 GUID string 115 State DropletState 116 CreatedAt string 117 Stack string 118 Image string 119 Buildpacks []DropletBuildpack 120 } 121 122 type DetailedApplicationSummary struct { 123 ApplicationSummary 124 CurrentDroplet Droplet 125 }