github.com/arunkumar7540/cli@v6.45.0+incompatible/actor/v7pushaction/push_plan.go (about)

     1  package v7pushaction
     2  
     3  import (
     4  	"fmt"
     5  
     6  	"code.cloudfoundry.org/cli/actor/sharedaction"
     7  	"code.cloudfoundry.org/cli/actor/v7action"
     8  	"code.cloudfoundry.org/cli/api/cloudcontroller/ccv3/constant"
     9  	"code.cloudfoundry.org/cli/types"
    10  )
    11  
    12  type PushPlan struct {
    13  	SpaceGUID string
    14  	OrgGUID   string
    15  
    16  	Application            v7action.Application
    17  	ApplicationNeedsUpdate bool
    18  
    19  	NoStart           bool
    20  	NoRouteFlag       bool
    21  	SkipRouteCreation bool
    22  
    23  	DockerImageCredentials            v7action.DockerImageCredentials
    24  	DockerImageCredentialsNeedsUpdate bool
    25  
    26  	ScaleWebProcess            v7action.Process
    27  	ScaleWebProcessNeedsUpdate bool
    28  
    29  	UpdateWebProcess            v7action.Process
    30  	UpdateWebProcessNeedsUpdate bool
    31  
    32  	Manifest []byte
    33  
    34  	Archive      bool
    35  	BitsPath     string
    36  	DropletPath  string
    37  	AllResources []sharedaction.V3Resource
    38  
    39  	PackageGUID string
    40  	DropletGUID string
    41  }
    42  
    43  type FlagOverrides struct {
    44  	Buildpacks          []string
    45  	Stack               string
    46  	Disk                types.NullUint64
    47  	DropletPath         string
    48  	DockerImage         string
    49  	DockerPassword      string
    50  	DockerUsername      string
    51  	HealthCheckEndpoint string
    52  	HealthCheckTimeout  int64
    53  	HealthCheckType     constant.HealthCheckType
    54  	Instances           types.NullInt
    55  	Memory              types.NullUint64
    56  	NoStart             bool
    57  	ProvidedAppPath     string
    58  	SkipRouteCreation   bool
    59  	StartCommand        types.FilteredString
    60  }
    61  
    62  func (state PushPlan) String() string {
    63  	return fmt.Sprintf(
    64  		"Application: %#v - Space GUID: %s, Org GUID: %s, Archive: %t, Bits Path: %s",
    65  		state.Application,
    66  		state.SpaceGUID,
    67  		state.OrgGUID,
    68  		state.Archive,
    69  		state.BitsPath,
    70  	)
    71  }