v3_helpers

package
v0.0.0-...-5c6a115 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 16, 2017 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	V3_DEFAULT_MEMORY_LIMIT = "256"
	V3_JAVA_MEMORY_LIMIT    = "512"
)

Variables

This section is empty.

Functions

func AssignDropletToApp

func AssignDropletToApp(appGuid, dropletGuid string)

func CreateAndMapRoute

func CreateAndMapRoute(appGuid, space, domain, host string)

func CreateApp

func CreateApp(appName, spaceGuid, environmentVariables string) string

func CreateDockerApp

func CreateDockerApp(appName, spaceGuid, environmentVariables string) string

func CreateDockerPackage

func CreateDockerPackage(appGuid, imagePath string) string

func CreatePackage

func CreatePackage(appGuid string) string

func CreateRoute

func CreateRoute(space, domain, host string)

func DeleteApp

func DeleteApp(appGuid string)

func FetchRecentLogs

func FetchRecentLogs(appGuid, oauthToken string, config config.CatsConfig) *Session

func GetAuthToken

func GetAuthToken() string

func GetDropletFromBuild

func GetDropletFromBuild(buildGuid string) string

func GetSpaceGuidFromName

func GetSpaceGuidFromName(spaceName string) string

func ScaleProcess

func ScaleProcess(appGuid, processType, memoryInMb string)

func StageBuildpackPackage

func StageBuildpackPackage(packageGuid, buildpack string) string

func StageDockerPackage

func StageDockerPackage(packageGuid string) string

func StartApp

func StartApp(appGuid string)

func StopApp

func StopApp(appGuid string)

func UploadPackage

func UploadPackage(uploadUrl, packageZipPath, token string)

func WaitForBuildToStage

func WaitForBuildToStage(buildGuid string)

func WaitForDropletToCopy

func WaitForDropletToCopy(dropletGuid string)

func WaitForPackageToBeReady

func WaitForPackageToBeReady(packageGuid string)

Types

type Process

type Process struct {
	Guid    string `json:"guid"`
	Type    string `json:"type"`
	Command string `json:"command"`
	Name    string `json:"-"`
}

func GetProcessByType

func GetProcessByType(processes []Process, processType string) Process

func GetProcesses

func GetProcesses(appGuid, appName string) []Process

type ProcessList

type ProcessList struct {
	Processes []Process `json:"resources"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL