util

package
v1.23.1-rc.2 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SanitizeBitbucketRepoName

func SanitizeBitbucketRepoName(repoSuffix, name string) string

SanitizeBitbucketRepoName replaces all slashes with hyphens, and truncates the name for Bitbucket. repo name may contain between 3 and 62 lowercase letters, digits and hyphens. The repo name will be of the form <name>-<repoSuffix>-<hash>

func SanitizeGCPRepoName

func SanitizeGCPRepoName(repoPrefix, name string) string

SanitizeGCPRepoName replaces all slashes with hyphens, and truncates the name. repo name may contain between 3 and 63 lowercase letters, digits and hyphens. This is used by CSR and SSM which are per-project resources The repo name will be of the form cs-e2e-<repoPrefix>-<name>-<hash>

func SanitizeGitlabRepoName

func SanitizeGitlabRepoName(repoSuffix, name string) string

SanitizeGitlabRepoName replaces all slashes with hyphens, and truncates the name for Gitlab. repo name may contain between 3 and 256 lowercase letters, digits and hyphens. The repo name will be of the form <name>-<repoSuffix>-<hash>

Types

This section is empty.

Jump to

Keyboard shortcuts

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