v3_helpers

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2018 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

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 AssignIsolationSegmentToSpace

func AssignIsolationSegmentToSpace(spaceGuid, isoSegGuid string)

func CreateAndMapRoute

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

func CreateApp

func CreateApp(appName, spaceGuid, environmentVariables string) string

func CreateDeployment

func CreateDeployment(appGuid string) string

func CreateDockerApp

func CreateDockerApp(appName, spaceGuid, environmentVariables string) string

func CreateDockerPackage

func CreateDockerPackage(appGuid, imagePath string) string

func CreateIsolationSegment

func CreateIsolationSegment(name string) string

func CreateOrGetIsolationSegment

func CreateOrGetIsolationSegment(name string) string

func CreatePackage

func CreatePackage(appGuid string) string

func CreateRoute

func CreateRoute(space, domain, host string)

func DeleteApp

func DeleteApp(appGuid string)

func DeleteIsolationSegment

func DeleteIsolationSegment(guid string)

func EntitleOrgToIsolationSegment

func EntitleOrgToIsolationSegment(orgGuid, isoSegGuid string)

func FetchRecentLogs

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

func GetAuthToken

func GetAuthToken() string

func GetDefaultIsolationSegment

func GetDefaultIsolationSegment(orgGuid string) string

func GetDropletFromBuild

func GetDropletFromBuild(buildGuid string) string

func GetGuidFromResponse

func GetGuidFromResponse(response []byte) string

func GetIsolationSegmentGuid

func GetIsolationSegmentGuid(name string) string

func GetIsolationSegmentGuidFromResponse

func GetIsolationSegmentGuidFromResponse(response []byte) string

func GetJobPath

func GetJobPath(response []byte) string

func GetProcessGuidForType

func GetProcessGuidForType(appGuid string, processType string) string

func GetRunningInstancesStats

func GetRunningInstancesStats(processGuid string) int

func GetSpaceGuidFromName

func GetSpaceGuidFromName(spaceName string) string

func HandleAsyncRequest

func HandleAsyncRequest(path string, method string)

func IsolationSegmentExists

func IsolationSegmentExists(name string) bool

func OrgEntitledToIsolationSegment

func OrgEntitledToIsolationSegment(orgGuid string, isoSegName string) bool

func PollJob

func PollJob(jobPath string)

func RevokeOrgEntitlementForIsolationSegment

func RevokeOrgEntitlementForIsolationSegment(orgGuid, isoSegGuid string)

func ScaleApp

func ScaleApp(appGuid string, instances int)

func ScaleProcess

func ScaleProcess(appGuid, processType, memoryInMb string)

func SetDefaultIsolationSegment

func SetDefaultIsolationSegment(orgGuid, isoSegGuid string)

func StageBuildpackPackage

func StageBuildpackPackage(packageGuid string, buildpacks ...string) string

func StageDockerPackage

func StageDockerPackage(packageGuid string) string

func StartApp

func StartApp(appGuid string)

func StopApp

func StopApp(appGuid string)

func UnassignIsolationSegmentFromSpace

func UnassignIsolationSegmentFromSpace(spaceGuid string)

func UnmapAllRoutes

func UnmapAllRoutes(appGuid string)

func UnsetDefaultIsolationSegment

func UnsetDefaultIsolationSegment(orgGuid 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 GetProcessByGuid

func GetProcessByGuid(processGuid string) Process

func GetProcessByType

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

func GetProcesses

func GetProcesses(appGuid, appName string) []Process

type ProcessAppUsageEvent

type ProcessAppUsageEvent struct {
	Metadata struct {
		Guid string `json:"guid"`
	} `json:"metadata"`
	Entity struct {
		ProcessType string `json:"process_type"`
		State       string `json:"state"`
	} `json:"entity"`
}

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"`
}

Jump to

Keyboard shortcuts

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