validation

package
v1.56.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ResourceName_Rule = &Rule{
	name: "Invalid Name",

	docsUrl: "",
}

Functions

func IsValidResourceName

func IsValidResourceName(name string) bool

Types

type Rule

type Rule struct {
	// contains filtered or unexported fields
}

func GetRuleViolation

func GetRuleViolation(err error) *Rule

func (*Rule) String

func (r *Rule) String() string

type RuleViolationError

type RuleViolationError struct {
	// contains filtered or unexported fields
}

func NewResourceNameViolationError

func NewResourceNameViolationError(resourceName string, resourceType string) *RuleViolationError

func (*RuleViolationError) Error

func (r *RuleViolationError) Error() string

Jump to

Keyboard shortcuts

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