Documentation
¶
Index ¶
- func SanitizeInput(input string) string
- func ValidateCommandInput(input string) error
- func ValidateContainerImage(image string) error
- func ValidateFilePath(path string) error
- func ValidateHelmReleaseName(name string) error
- func ValidateK8sLabel(key, value string) error
- func ValidateK8sResourceName(name string) error
- func ValidateNamespace(namespace string) error
- func ValidatePromQLQuery(query string) error
- func ValidateURL(url string) error
- func ValidateYAMLContent(content string) error
- type ValidationError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SanitizeInput ¶
SanitizeInput sanitizes input strings by replacing potentially dangerous characters
func ValidateCommandInput ¶
ValidateCommandInput validates command inputs for injection attacks
func ValidateContainerImage ¶
ValidateContainerImage validates a container image reference
func ValidateFilePath ¶
ValidateFilePath validates a file path for security
func ValidateHelmReleaseName ¶
ValidateHelmReleaseName validates a Helm release name
func ValidateK8sLabel ¶
ValidateK8sLabel validates a Kubernetes label key and value
func ValidateK8sResourceName ¶
ValidateK8sResourceName validates a Kubernetes resource name
func ValidateNamespace ¶
ValidateNamespace validates a Kubernetes namespace
func ValidatePromQLQuery ¶
ValidatePromQLQuery validates a PromQL query for basic security
func ValidateURL ¶
ValidateURL validates a URL for basic security
func ValidateYAMLContent ¶
ValidateYAMLContent validates YAML content for basic security
Types ¶
type ValidationError ¶
ValidationError represents a validation error
func (ValidationError) Error ¶
func (e ValidationError) Error() string