MCPcopy
hub / github.com/cloudfoundry/cli / matchMajorAPIVersion

Function matchMajorAPIVersion

integration/helpers/version.go:88–94  ·  view source on GitHub ↗
(minVersion string)

Source from the content-addressed store, hash-verified

86}
87
88func matchMajorAPIVersion(minVersion string) string {
89 if strings.HasPrefix(minVersion, "3") {
90 return getAPIVersionV3()
91 } else {
92 return GetAPIVersionV2()
93 }
94}
95
96// GetAPIVersionV2 returns the V2 api version of the targeted API
97func GetAPIVersionV2() string {

Callers 3

IsVersionMetFunction · 0.85
SkipIfVersionLessThanFunction · 0.85
SkipIfVersionAtLeastFunction · 0.85

Calls 2

getAPIVersionV3Function · 0.85
GetAPIVersionV2Function · 0.85

Tested by

no test coverage detected