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

Method updateResourceMetadata

actor/v7action/label.go:164–180  ·  view source on GitHub ↗
(resourceType string, resourceGUID string, payload resources.Metadata, warnings Warnings)

Source from the content-addressed store, hash-verified

162}
163
164func (actor *Actor) updateResourceMetadata(resourceType string, resourceGUID string, payload resources.Metadata, warnings Warnings) (Warnings, error) {
165 jobURL, updateWarnings, err := actor.CloudControllerClient.UpdateResourceMetadata(resourceType, resourceGUID, payload)
166 warnings = append(warnings, updateWarnings...)
167 if err != nil {
168 return warnings, err
169 }
170
171 if jobURL != "" {
172 pollWarnings, err := actor.CloudControllerClient.PollJob(jobURL)
173 warnings = append(warnings, pollWarnings...)
174 if err != nil {
175 return warnings, err
176 }
177 }
178
179 return warnings, nil
180}

Implementers 1

FakeActorcommand/v7/v7fakes/fake_actor.go

Calls 2

PollJobMethod · 0.65

Tested by

no test coverage detected