utils

package
v0.0.0-...-1a56615 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: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckModuleSlug

func CheckModuleSlug(slug string) bool

CheckModuleSlug validates if a module slug follows the required format: - Must start with alphanumeric characters - Must contain a hyphen or slash separator - After separator, must start with a lowercase letter - Can contain lowercase letters, numbers, and underscores after first letter Example valid slugs: "myOrg/module", "company-mymodule"

func CheckReleaseSlug

func CheckReleaseSlug(slug string) bool

CheckReleaseSlug validates if a release slug follows the required format: - Must start with a valid module slug (see above) - Must contain another hyphen or slash separator - Must end with a semantic version (X.Y.Z) - May optionally include a pre-release or build metadata after version Example valid slugs: "myOrg/module/1.2.3", "company-mymodule/2.0.0-beta.1"

Types

This section is empty.

Jump to

Keyboard shortcuts

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