Documentation ¶
Index ¶
- Constants
- func AssignDropletToApp(appGUID, dropletGUID string)
- func CancelDeployment(deploymentGUID string)
- func ContinueDeployment(deploymentGUID string)
- func CreateAndAssociateNewDroplet(appGUID, assetPath string, buildpacks ...string) string
- func CreateAndMapRoute(appGUID, spaceGUID, domainGUID, host string)
- func CreateAndMapRouteWithPort(appGUID, spaceGUID, domainGUID, host string, port int)
- func CreateApp(appName, spaceGUID, environmentVariables string) string
- func CreateDeployment(appGUID, strategy string, max_in_flight int) string
- func CreateDeploymentForDroplet(appGUID, dropletGUID, strategy string) string
- func CreateDockerApp(appName, spaceGUID, environmentVariables string) string
- func CreatePackage(appGUID string) string
- func CreateRoute(spaceGUID, domainGUID, host string) string
- func CreateRouteWithPath(spaceGUID, domainGUID, host, path string) string
- func CreateSidecar(name string, processTypes []string, command string, memoryLimit int, ...) string
- func DeleteApp(appGUID string)
- func DeleteOrgQuota(orgQuotaGUID string)
- func DeleteRoute(routeGUID string)
- func DownloadAppDroplet(appGuid string, dropletPath string, token string) *Session
- func EnableRevisions(appGuid string)
- func GetAppGUID(appName string) string
- func GetAuthToken() string
- func GetBuildError(buildGUID string) string
- func GetDomainGUIDFromName(name string) string
- func GetDropletFromApp(appGUID string) string
- func GetDropletFromBuild(buildGUID string) string
- func GetGuidFromResponse(response []byte) string
- func GetJobErrors(jobPath string) []jobError
- func GetJobPath(response []byte) string
- func GetOrgGUIDFromName(name string) string
- func GetProcessGuidsForType(appGUID string, processType string) []string
- func GetRouteGUIDFromAppGuid(appGuid string) string
- func GetRunningInstancesStats(processGUID string) int
- func GetSpaceGuidFromName(name string) string
- func HandleAsyncRequest(path string, method string)
- func InsertDestinations(routeGUID string, destinations []Destination) []string
- func PollJob(jobPath string)
- func PollJobAsFailed(jobPath string)
- func RestartApp(appGUID string)
- func RollbackDeployment(appGUID, revisionGUID string) string
- func ScaleApp(appGUID string, instances int)
- func ScaleProcess(appGUID, processType, memoryInMb string)
- func SetCommandOnProcess(appGUID, processType, command string)
- func SetDefaultOrgQuota(orgGUID string)
- func SetHealthCheckTimeoutOnProcess(appGUID, processType string, healthCheckTimeout int)
- func StagePackage(packageGUID string, lifecycle string, buildpacks ...string) string
- func StartApp(appGUID string)
- func StopApp(appGUID string)
- func UnmapAllRoutes(appGUID string)
- func UpdateEnvironmentVariables(appGUID, envVars string)
- func UploadPackage(uploadURL, packageZipPath string)
- func WaitForAppToStop(appGUID string)
- func WaitForBuildToFail(buildGUID string)
- func WaitForBuildToStage(buildGUID string)
- func WaitForDropletToCopy(dropletGUID string)
- func WaitForPackageToBeReady(packageGUID string)
- func WaitUntilDeploymentReachesStatus(deploymentGUID, statusValue, statusReason string)
- type App
- type Destination
- type DestinationProcess
- type Destinations
- type Droplet
- type Process
- type ProcessAppUsageEvent
- type ProcessAppUsageEvents
- type ProcessList
- type Quota
- type Revision
- type RevisionEnvVars
- type RevisionList
- type Sidecar
Constants ¶
View Source
const ( FAILED string = "FAILED" STAGED string = "STAGED" )
View Source
const ( V3_DEFAULT_MEMORY_LIMIT = "256" V3_JAVA_MEMORY_LIMIT = "1024" )
Variables ¶
This section is empty.
Functions ¶
func AssignDropletToApp ¶
func AssignDropletToApp(appGUID, dropletGUID string)
func CancelDeployment ¶
func CancelDeployment(deploymentGUID string)
func ContinueDeployment ¶
func ContinueDeployment(deploymentGUID string)
func CreateAndMapRoute ¶
func CreateAndMapRoute(appGUID, spaceGUID, domainGUID, host string)
func CreateDeployment ¶
func CreateDockerApp ¶
func CreatePackage ¶
func CreateRoute ¶
func CreateRouteWithPath ¶
func CreateSidecar ¶
func DeleteOrgQuota ¶
func DeleteOrgQuota(orgQuotaGUID string)
func DeleteRoute ¶
func DeleteRoute(routeGUID string)
func DownloadAppDroplet ¶
func EnableRevisions ¶
func EnableRevisions(appGuid string)
func GetAppGUID ¶
func GetAuthToken ¶
func GetAuthToken() string
func GetBuildError ¶
func GetDomainGUIDFromName ¶
func GetDropletFromApp ¶
func GetDropletFromBuild ¶
func GetGuidFromResponse ¶
func GetJobErrors ¶
func GetJobErrors(jobPath string) []jobError
func GetJobPath ¶
func GetOrgGUIDFromName ¶
func GetProcessGuidsForType ¶
func GetRouteGUIDFromAppGuid ¶
func GetSpaceGuidFromName ¶
func HandleAsyncRequest ¶
func InsertDestinations ¶
func InsertDestinations(routeGUID string, destinations []Destination) []string
func PollJobAsFailed ¶
func PollJobAsFailed(jobPath string)
func RestartApp ¶
func RestartApp(appGUID string)
func RollbackDeployment ¶
func ScaleProcess ¶
func ScaleProcess(appGUID, processType, memoryInMb string)
func SetCommandOnProcess ¶
func SetCommandOnProcess(appGUID, processType, command string)
func SetDefaultOrgQuota ¶
func SetDefaultOrgQuota(orgGUID string)
func StagePackage ¶
func UnmapAllRoutes ¶
func UnmapAllRoutes(appGUID string)
func UpdateEnvironmentVariables ¶
func UpdateEnvironmentVariables(appGUID, envVars string)
func UploadPackage ¶
func UploadPackage(uploadURL, packageZipPath string)
func WaitForAppToStop ¶
func WaitForAppToStop(appGUID string)
func WaitForBuildToFail ¶
func WaitForBuildToFail(buildGUID string)
func WaitForBuildToStage ¶
func WaitForBuildToStage(buildGUID string)
func WaitForDropletToCopy ¶
func WaitForDropletToCopy(dropletGUID string)
func WaitForPackageToBeReady ¶
func WaitForPackageToBeReady(packageGUID string)
func WaitUntilDeploymentReachesStatus ¶
func WaitUntilDeploymentReachesStatus(deploymentGUID, statusValue, statusReason string)
Types ¶
type App ¶
type App struct { GUID string `json:"guid"` Process *DestinationProcess `json:"process,omitempty"` }
type Destination ¶
type DestinationProcess ¶
type DestinationProcess struct {
Type string `json:"type"`
}
type Destinations ¶
type Destinations struct {
Destinations []Destination `json:"destinations"`
}
func ReplaceDestinations ¶
func ReplaceDestinations(routeGUID string, destinations []Destination) Destinations
type Droplet ¶
type Droplet struct { GUID string `json:"guid"` State string `json:"state"` Image string `json:"image"` Lifecycle struct { Type string `json:"type"` Data struct{} `json:"data"` } `json:"lifecycle"` }
func GetDroplet ¶
type Process ¶
type Process struct { Guid string `json:"guid"` Instances int `json:"instances"` Type string `json:"type"` Command string `json:"command"` Name string `json:"-"` Relationships struct { Revision struct { Data struct { Guid string `json:"guid"` } `json:"data"` } `json:"revision"` } `json:"relationships"` }
func GetFirstProcessByType ¶
func GetProcessByGuid ¶
func GetProcesses ¶
type ProcessAppUsageEvent ¶
type ProcessAppUsageEvent struct { Guid string `json:"guid"` Process struct { ProcessType string `json:"type"` Guid string `json:"guid"` } `json:"process"` State struct { Current string `json:"current"` Previous string `json:"previous"` } `json:"state"` }
func GetLastAppUseEventForProcess ¶
func GetLastAppUseEventForProcess(processType string, state string, afterGUID string) (bool, ProcessAppUsageEvent)
type ProcessAppUsageEvents ¶
type ProcessAppUsageEvents struct {
Resources []ProcessAppUsageEvent `struct:"resources"`
}
type ProcessList ¶
type ProcessList struct {
Processes []Process `json:"resources"`
}
type Quota ¶
type Revision ¶
type Revision struct { Guid string `json:"guid"` Version int `json:"version"` Droplet struct { Guid string `json:"guid"` } `json:"droplet"` Processes map[string]map[string]string `json:"processes"` Sidecars []Sidecar `json: "sidecars"` }
func GetNewestRevision ¶
func GetRevision ¶
func GetRevisions ¶
type RevisionEnvVars ¶
func GetRevisionEnvVars ¶
func GetRevisionEnvVars(revisionGuid string) RevisionEnvVars
type RevisionList ¶
type RevisionList struct {
Revisions []Revision `json:"resources"`
}
Click to show internal directories.
Click to hide internal directories.