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

Method GetBuildpackLabels

actor/v7action/label.go:59–62  ·  view source on GitHub ↗
(buildpackName string, buildpackStack string, buildpackLifecycle string)

Source from the content-addressed store, hash-verified

57}
58
59func (actor *Actor) GetBuildpackLabels(buildpackName string, buildpackStack string, buildpackLifecycle string) (map[string]types.NullString, Warnings, error) {
60 resource, warnings, err := actor.GetBuildpackByNameAndStackAndLifecycle(buildpackName, buildpackStack, buildpackLifecycle)
61 return actor.extractLabels(resource.Metadata, warnings, err)
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

Callers

nothing calls this directly

Implementers 1

FakeActorcommand/v7/v7fakes/fake_actor.go

Calls 2

extractLabelsMethod · 0.95

Tested by

no test coverage detected