github.com/mook-as/cf-cli@v7.0.0-beta.28.0.20200120190804-b91c115fae48+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 Route struct {
    76  	GUID       string
    77  	SpaceGUID  string
    78  	DomainGUID string
    79  	Host       string
    80  	Path       string
    81  	DomainName string
    82  	SpaceName  string
    83  	URL        string
    84  	Metadata   *Metadata
    85  }
    86  
    87  type ApplicationSummary struct {
    88  	Application
    89  	ProcessSummaries ProcessSummaries
    90  	Routes           []Route
    91  }
    92  
    93  type DropletState string
    94  
    95  type DropletBuildpack struct {
    96  	Name         string
    97  	DetectOutput string
    98  }
    99  
   100  type Droplet struct {
   101  	GUID       string
   102  	State      DropletState
   103  	CreatedAt  string
   104  	Stack      string
   105  	Image      string
   106  	Buildpacks []DropletBuildpack
   107  }
   108  
   109  type DetailedApplicationSummary struct {
   110  	ApplicationSummary
   111  	CurrentDroplet Droplet
   112  }