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

Method extractLabels

actor/v7action/label.go:64–74  ·  view source on GitHub ↗
(metadata *resources.Metadata, warnings Warnings, err error)

Source from the content-addressed store, hash-verified

62}
63
64func (actor *Actor) extractLabels(metadata *resources.Metadata, warnings Warnings, err error) (map[string]types.NullString, Warnings, error) {
65 var labels map[string]types.NullString
66
67 if err != nil {
68 return labels, warnings, err
69 }
70 if metadata != nil {
71 labels = metadata.Labels
72 }
73 return labels, warnings, nil
74}
75
76func (actor *Actor) UpdateApplicationLabelsByApplicationName(appName string, spaceGUID string, labels map[string]types.NullString) (Warnings, error) {
77 app, warnings, err := actor.GetApplicationByNameAndSpace(appName, spaceGUID)

Callers 11

GetApplicationLabelsMethod · 0.95
GetDomainLabelsMethod · 0.95
GetOrganizationLabelsMethod · 0.95
GetRouteLabelsMethod · 0.95
GetServicePlanLabelsMethod · 0.95
GetSpaceLabelsMethod · 0.95
GetStackLabelsMethod · 0.95
GetBuildpackLabelsMethod · 0.95

Implementers 1

FakeActorcommand/v7/v7fakes/fake_actor.go

Calls

no outgoing calls

Tested by

no test coverage detected