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

Method GetApplicationsBySpace

actor/v7action/application.go:144–154  ·  view source on GitHub ↗

GetApplicationsBySpace returns all applications in a space.

(spaceGUID string)

Source from the content-addressed store, hash-verified

142
143// GetApplicationsBySpace returns all applications in a space.
144func (actor Actor) GetApplicationsBySpace(spaceGUID string) ([]resources.Application, Warnings, error) {
145 apps, warnings, err := actor.CloudControllerClient.GetApplications(
146 ccv3.Query{Key: ccv3.SpaceGUIDFilter, Values: []string{spaceGUID}},
147 )
148
149 if err != nil {
150 return []resources.Application{}, Warnings(warnings), err
151 }
152
153 return apps, Warnings(warnings), nil
154}
155
156// CreateApplicationInSpace creates and returns the application with the given
157// name in the given space.

Implementers 1

FakeActorcommand/v7/v7fakes/fake_actor.go

Calls 2

WarningsTypeAlias · 0.70
GetApplicationsMethod · 0.65

Tested by

no test coverage detected