apimachinery: k8s.io/apimachinery/pkg/api/validation/path Index | Files

package path

import "k8s.io/apimachinery/pkg/api/validation/path"

Index

Package Files

name.go

Variables

var NameMayNotBe = []string{".", ".."}

NameMayNotBe specifies strings that cannot be used as names specified as path segments (like the REST API or etcd store)

var NameMayNotContain = []string{"/", "%"}

NameMayNotContain specifies substrings that cannot be used in names specified as path segments (like the REST API or etcd store)

func IsValidPathSegmentName Uses

func IsValidPathSegmentName(name string) []string

IsValidPathSegmentName validates the name can be safely encoded as a path segment

func IsValidPathSegmentPrefix Uses

func IsValidPathSegmentPrefix(name string) []string

IsValidPathSegmentPrefix validates the name can be used as a prefix for a name which will be encoded as a path segment It does not check for exact matches with disallowed names, since an arbitrary suffix might make the name valid

func ValidatePathSegmentName Uses

func ValidatePathSegmentName(name string, prefix bool) []string

ValidatePathSegmentName validates the name can be safely encoded as a path segment

Package path imports 2 packages (graph) and is imported by 32 packages. Updated 2018-03-22. Refresh now. Tools for package owners.