MCPcopy Index your code
hub / github.com/cloudfoundry/cli / ScaleProcessByApplication

Method ScaleProcessByApplication

actor/v7action/process.go:26–37  ·  view source on GitHub ↗
(appGUID string, process resources.Process)

Source from the content-addressed store, hash-verified

24}
25
26func (actor Actor) ScaleProcessByApplication(appGUID string, process resources.Process) (Warnings, error) {
27 _, warnings, err := actor.CloudControllerClient.CreateApplicationProcessScale(appGUID, resources.Process(process))
28 allWarnings := Warnings(warnings)
29 if err != nil {
30 if _, ok := err.(ccerror.ProcessNotFoundError); ok {
31 return allWarnings, actionerror.ProcessNotFoundError{ProcessType: process.Type}
32 }
33 return allWarnings, err
34 }
35
36 return allWarnings, nil
37}
38
39func (actor Actor) UpdateProcessByTypeAndApplication(processType string, appGUID string, updatedProcess resources.Process) (Warnings, error) {
40 if updatedProcess.HealthCheckType != constant.HTTP {

Callers

nothing calls this directly

Implementers 1

FakeActorcommand/v7/v7fakes/fake_actor.go

Calls 3

ProcessStruct · 0.92
WarningsTypeAlias · 0.70

Tested by

no test coverage detected