utils

package
v1.49.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 21, 2025 License: Apache-2.0 Imports: 4 Imported by: 5

Documentation

Index

Constants

View Source
const (
	XraySuffix = "/xray/"

	XscInXraySuffix                   = apiV1Suffix + xscSuffix
	MinXrayVersionXscTransitionToXray = "3.107.13"
)

Variables

This section is empty.

Functions

func GetGitRepoUrlKey added in v1.49.0

func GetGitRepoUrlKey(gitRepoHttpUrl string) string

The platform expects the git repo key to be in the format of the https/http clone Git URL without the protocol.

func IsXscXrayInnerService

func IsXscXrayInnerService(xrayVersion string) bool

func XrayUrlToXscUrl

func XrayUrlToXscUrl(xrayUrl, xrayVersion string) string

From Xray version 3.107.13, XSC is transitioning to Xray as inner service. This function will return compatible URL.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL