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

Method GetPlatformString

actor/pluginaction/plugin_info.go:58–60  ·  view source on GitHub ↗

GetPlatformString exists solely for the purposes of mocking it out for command-layers tests.

(runtimeGOOS string, runtimeGOARCH string)

Source from the content-addressed store, hash-verified

56
57// GetPlatformString exists solely for the purposes of mocking it out for command-layers tests.
58func (actor Actor) GetPlatformString(runtimeGOOS string, runtimeGOARCH string) string {
59 return generic.GeneratePlatform(runtime.GOOS, runtime.GOARCH)
60}
61
62// getPluginInfoFromRepositoryForPlatform returns the plugin info, if found, from
63// the specified repository for the specified platform.

Callers

nothing calls this directly

Implementers 1

FakeActorcommand/v7/v7fakes/fake_actor.go

Calls 1

GeneratePlatformFunction · 0.92

Tested by

no test coverage detected