ape

package
v0.38.5 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidResource    = errors.New("invalid resource name")
	ErrUnsupportedPrefix  = errors.New("unsupported resource name prefix")
	ErrInvalidContainerID = errors.New("invalid container id")
	ErrInvalidObjectID    = errors.New("invalid object id")
	ErrInvalidNamespace   = fmt.Errorf("namespace must match regexp: %s", ape.NamespaceNameRegexp.String())
)

Functions

func ValidateResourceName

func ValidateResourceName(name string) error

ValidateResourceName validates resource name components - container and object id, namespace. Also validates matching resource name to templates of policy engine's native scheme.

Types

This section is empty.

Jump to

Keyboard shortcuts

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