identifiers

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package identifiers provides validation helpers for Nstance identifier formats. Used for cluster ID, shard ID, tenant ID, subnet pool ID, group ID, etc.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Validate

func Validate(kind, value string) error

Validate validates an Nstance identifier against the required format: lowercase alphanumeric with hyphens (no leading/trailing/consecutive hyphens) and at most validateMaxLength characters. The kind parameter is used in error messages (e.g. "cluster ID").

Types

This section is empty.

Jump to

Keyboard shortcuts

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