1// Copyright 2018 Google LLC 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// https://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License. 14 15package errorreporting 16 17// ResultPath returns the path for the result resource. 18// 19// Deprecated: Use 20// fmt.Sprintf("inspect/results/%s", result) 21// instead. 22func ResultPath(result string) string { 23 return "" + 24 "inspect/results/" + 25 result + 26 "" 27} 28 29// ErrorStatsProjectPath returns the path for the project resource. 30// 31// Deprecated: Use 32// fmt.Sprintf("projects/%s", project) 33// instead. 34func ErrorStatsProjectPath(project string) string { 35 return "" + 36 "projects/" + 37 project + 38 "" 39} 40 41// ReportErrorsProjectPath returns the path for the project resource. 42// 43// Deprecated: Use 44// fmt.Sprintf("projects/%s", project) 45// instead. 46func ReportErrorsProjectPath(project string) string { 47 return "" + 48 "projects/" + 49 project + 50 "" 51} 52