util

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package util provides small validation helpers shared by CLI prompts and spec processing.

Functions such as ValidatePositiveInteger, ValidateNonEmpty, and ValidateResourceString centralize input checks so interactive init and configuration paths enforce the same rules.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateMinMaxReplicas

func ValidateMinMaxReplicas(minStr, maxStr string) error

ValidateMinMaxReplicas ensures min <= max and reasonable bounds

func ValidateNonEmpty

func ValidateNonEmpty(value, fieldName string) error

ValidateNonEmpty ensures a string is not empty or whitespace-only

func ValidatePositiveInteger

func ValidatePositiveInteger(value, fieldName string) error

ValidatePositiveInteger ensures a string is a positive integer

func ValidateResourceString

func ValidateResourceString(value, fieldName string) error

ValidateResourceString performs basic validation for CPU/memory/storage strings

Types

This section is empty.

Jump to

Keyboard shortcuts

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