forked from cloudfoundry/cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
push_plan.go
73 lines (63 loc) · 1.74 KB
/
push_plan.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
package v7pushaction
import (
"fmt"
"code.cloudfoundry.org/cli/actor/sharedaction"
"code.cloudfoundry.org/cli/actor/v7action"
"code.cloudfoundry.org/cli/api/cloudcontroller/ccv3/constant"
"code.cloudfoundry.org/cli/resources"
"code.cloudfoundry.org/cli/types"
"github.com/cloudfoundry/bosh-cli/director/template"
)
type PushPlan struct {
SpaceGUID string
OrgGUID string
Application resources.Application
NoStart bool
NoWait bool
Strategy constant.DeploymentStrategy
TaskTypeApplication bool
DockerImageCredentials v7action.DockerImageCredentials
Archive bool
BitsPath string
DropletPath string
AllResources []sharedaction.V3Resource
PackageGUID string
DropletGUID string
}
type FlagOverrides struct {
AppName string
Buildpacks []string
Stack string
Disk string
DropletPath string
DockerImage string
DockerPassword string
DockerUsername string
HealthCheckEndpoint string
HealthCheckTimeout int64
HealthCheckType constant.HealthCheckType
Instances types.NullInt
Memory string
NoStart bool
NoWait bool
ProvidedAppPath string
NoRoute bool
RandomRoute bool
StartCommand types.FilteredString
Strategy constant.DeploymentStrategy
ManifestPath string
PathsToVarsFiles []string
Vars []template.VarKV
NoManifest bool
Task bool
}
func (state PushPlan) String() string {
return fmt.Sprintf(
"Application: %#v - Space GUID: %s, Org GUID: %s, Archive: %t, Bits Path: %s",
state.Application,
state.SpaceGUID,
state.OrgGUID,
state.Archive,
state.BitsPath,
)
}