func APIExtensionsCount() int {
	count := len(APIExtensions)

	// This environment variable is an internal one to force the code
	// to believe that we an API extensions version greater than we
	// actually have. It's used by integration tests to exercise the
	// cluster upgrade process.
	artificialBump := os.Getenv("LXD_ARTIFICIALLY_BUMP_API_EXTENSIONS")
	if artificialBump != "" {
		n, err := strconv.Atoi(artificialBump)
		if err == nil {
			count += n
		}
	}

	return count
}
func APIExtensionsCount() int {
	count := len(APIExtensions)

	
	
	
	
	artificialBump := os.Getenv("LXD_ARTIFICIALLY_BUMP_API_EXTENSIONS")
	if artificialBump != "" {
		n, err := strconv.Atoi(artificialBump)
		if err == nil {
			count += n
		}
	}

	return count
}
func APIExtensionsCount ( ) int { count := len ( APIExtensions ) // This environment variable is an internal one to force the code // to believe that we an API extensions version greater than we // actually have. It's used by integration tests to exercise the // cluster upgrade process. artificialBump := os . Getenv ( " " ) if artificialBump != " " { n , err := strconv . Atoi ( artificialBump ) if err == nil { count += n } } return count }
// APIExtensionsCount returns the number of available API extensions.
APIExtensionsCount returns the number of available API extensions .