istio
1// Copyright Istio Authors
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// http://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 url16
17import (18"fmt"19
20"istio.io/istio/operator/version"21)
22
23var (24v = version.OperatorBinaryVersion25baseVersion = v.MinorVersion.String()26)
27
28// istio.io related URLs
29var (30// BaseURL for istio.io31BaseURL = "https://istio.io/"32
33// DocsVersion is a documentation version for istio.io34// This will build version as v1.6, v1.7, v1.835DocsVersion = fmt.Sprintf("%s%s", "v", baseVersion)36
37// DocsURL is a base docs URL for istio.io38DocsURL = fmt.Sprintf("%s%s%s", BaseURL, DocsVersion, "/docs/")39
40// #####################################41// Operations related URLs for istio.io42// #####################################43
44// OpsURL is a base URL for operations related docs45OpsURL = fmt.Sprintf("%s%s", DocsURL, "ops/")46
47// DeploymentRequirements should generate48// https://istio.io/v1.7/docs/ops/deployment/requirements/49DeploymentRequirements = fmt.Sprintf("%s%s", OpsURL, "deployment/requirements/")50
51// ProtocolSelection should generate52// https://istio.io/v1.15/docs/ops/configuration/traffic-management/protocol-selection/53ProtocolSelection = fmt.Sprintf("%s%s", OpsURL, "configuration/traffic-management/protocol-selection/")54
55// #####################################56// Reference related URLs for istio.io57// #####################################58
59// ReferenceURL is a base URL for reference related docs60ReferenceURL = fmt.Sprintf("%s%s", DocsURL, "reference/")61
62// IstioOperatorSpec should generate63// https://istio.io/v1.7/docs/reference/config/istio.operator.v1alpha1/#IstioOperatorSpec64IstioOperatorSpec = fmt.Sprintf("%s%s", ReferenceURL, "config/istio.operator.v1alpha1/#IstioOperatorSpec")65
66// ConfigAnalysis should generate67// https://istio.io/v1.7/docs/reference/config/analysis68ConfigAnalysis = fmt.Sprintf("%s%s", ReferenceURL, "config/analysis")69)
70