Documentation ¶
Index ¶
- Constants
- func AssignDropletToApp(appGuid, dropletGuid string)
- func AssignIsolationSegmentToSpace(spaceGuid, isoSegGuid string)
- func CreateAndMapRoute(appGuid, space, domain, host string)
- func CreateApp(appName, spaceGuid, environmentVariables string) string
- func CreateDeployment(appGuid string) string
- func CreateDockerApp(appName, spaceGuid, environmentVariables string) string
- func CreateDockerPackage(appGuid, imagePath string) string
- func CreateIsolationSegment(name string) string
- func CreateOrGetIsolationSegment(name string) string
- func CreatePackage(appGuid string) string
- func CreateRoute(space, domain, host string)
- func DeleteApp(appGuid string)
- func DeleteIsolationSegment(guid string)
- func EntitleOrgToIsolationSegment(orgGuid, isoSegGuid string)
- func FetchRecentLogs(appGuid, oauthToken string, config config.CatsConfig) *Session
- func GetAuthToken() string
- func GetDefaultIsolationSegment(orgGuid string) string
- func GetDropletFromBuild(buildGuid string) string
- func GetGuidFromResponse(response []byte) string
- func GetIsolationSegmentGuid(name string) string
- func GetIsolationSegmentGuidFromResponse(response []byte) string
- func GetJobPath(response []byte) string
- func GetProcessGuidForType(appGuid string, processType string) string
- func GetRunningInstancesStats(processGuid string) int
- func GetSpaceGuidFromName(spaceName string) string
- func HandleAsyncRequest(path string, method string)
- func IsolationSegmentExists(name string) bool
- func OrgEntitledToIsolationSegment(orgGuid string, isoSegName string) bool
- func PollJob(jobPath string)
- func RevokeOrgEntitlementForIsolationSegment(orgGuid, isoSegGuid string)
- func ScaleApp(appGuid string, instances int)
- func ScaleProcess(appGuid, processType, memoryInMb string)
- func SetDefaultIsolationSegment(orgGuid, isoSegGuid string)
- func StageBuildpackPackage(packageGuid string, buildpacks ...string) string
- func StageDockerPackage(packageGuid string) string
- func StartApp(appGuid string)
- func StopApp(appGuid string)
- func UnassignIsolationSegmentFromSpace(spaceGuid string)
- func UnmapAllRoutes(appGuid string)
- func UnsetDefaultIsolationSegment(orgGuid string)
- func UploadPackage(uploadUrl, packageZipPath, token string)
- func WaitForBuildToStage(buildGuid string)
- func WaitForDropletToCopy(dropletGuid string)
- func WaitForPackageToBeReady(packageGuid string)
- type Process
- type ProcessAppUsageEvent
- type ProcessAppUsageEvents
- type ProcessList
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 CreateDeployment ¶
func CreateDockerApp ¶
func CreateDockerPackage ¶
func CreateIsolationSegment ¶
func CreatePackage ¶
func CreateRoute ¶
func CreateRoute(space, domain, host 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 GetDropletFromBuild ¶
func GetGuidFromResponse ¶
func GetIsolationSegmentGuid ¶
func GetJobPath ¶
func GetProcessGuidForType ¶
func GetSpaceGuidFromName ¶
func HandleAsyncRequest ¶
func IsolationSegmentExists ¶
func RevokeOrgEntitlementForIsolationSegment ¶
func RevokeOrgEntitlementForIsolationSegment(orgGuid, isoSegGuid string)
func ScaleProcess ¶
func ScaleProcess(appGuid, processType, memoryInMb string)
func SetDefaultIsolationSegment ¶
func SetDefaultIsolationSegment(orgGuid, isoSegGuid string)
func StageBuildpackPackage ¶
func StageDockerPackage ¶
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 GetProcessByType ¶
func GetProcesses ¶
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"`
}
Click to show internal directories.
Click to hide internal directories.