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

Function GetAPIVersionV2

integration/helpers/version.go:97–99  ·  view source on GitHub ↗

GetAPIVersionV2 returns the V2 api version of the targeted API

()

Source from the content-addressed store, hash-verified

95
96// GetAPIVersionV2 returns the V2 api version of the targeted API
97func GetAPIVersionV2() string {
98 return fetchAPIVersion().Links.CloudControllerV2.Meta.Version
99}
100
101// SkipIfVersionLessThan is used to skip tests if the API version < the specified version. If
102// minVersion contains the prefix 3 then the v3 version is checked, otherwise the v2 version is used.

Callers 1

matchMajorAPIVersionFunction · 0.85

Calls 1

fetchAPIVersionFunction · 0.85

Tested by

no test coverage detected