github.com/cloudfoundry-community/cloudfoundry-cli@v6.44.1-0.20240130060226-cda5ed8e89a5+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  	AllResources []sharedaction.V3Resource
    37  
    38  	PackageGUID string
    39  	DropletGUID string
    40  }
    41  
    42  type FlagOverrides struct {
    43  	Buildpacks          []string
    44  	Stack               string
    45  	Disk                types.NullUint64
    46  	DockerImage         string
    47  	DockerPassword      string
    48  	DockerUsername      string
    49  	HealthCheckEndpoint string
    50  	HealthCheckTimeout  int64
    51  	HealthCheckType     constant.HealthCheckType
    52  	Instances           types.NullInt
    53  	Memory              types.NullUint64
    54  	NoStart             bool
    55  	ProvidedAppPath     string
    56  	SkipRouteCreation   bool
    57  	StartCommand        types.FilteredString
    58  }
    59  
    60  func (state PushPlan) String() string {
    61  	return fmt.Sprintf(
    62  		"Application: %#v - Space GUID: %s, Org GUID: %s, Archive: %t, Bits Path: %s",
    63  		state.Application,
    64  		state.SpaceGUID,
    65  		state.OrgGUID,
    66  		state.Archive,
    67  		state.BitsPath,
    68  	)
    69  }