{"modulePath":"github.1git.de/openshift/origin","version":"v1.5.1","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package validation\n\n## Variables\n\n```go\nvar RepositoryNameComponentAnchoredRegexp = regexp.MustCompile(`^` + RepositoryNameComponentRegexp.String() + `$`)\n```\nRepositoryNameComponentAnchoredRegexp is the version of RepositoryNameComponentRegexp which must completely match the content Copied from github.com/docker/distribution/registry/api/v2/names.go v2.1.1\n\n```go\nvar RepositoryNameComponentRegexp = regexp.MustCompile(`[a-z0-9]+(?:[._-][a-z0-9]+)*`)\n```\nRepositoryNameComponentRegexp restricts registry path component names to start with at least one letter or number, with following parts able to be separated by one period, dash or underscore. Copied from github.com/docker/distribution/registry/api/v2/names.go v2.1.1\n\n```go\nvar RepositoryNameRegexp = regexp.MustCompile(`(?:` + RepositoryNameComponentRegexp.String() + `/)*` + RepositoryNameComponentRegexp.String())\n```\nRepositoryNameRegexp builds on RepositoryNameComponentRegexp to allow multiple path components, separated by a forward slash. Copied from github.com/docker/distribution/registry/api/v2/names.go v2.1.1\n\n## Functions\n\n```go\nfunc ValidateImage(image *api.Image) field.ErrorList\n```\nValidateImage tests required fields for an Image.\n\n```go\nfunc ValidateImageSignature(signature *api.ImageSignature) field.ErrorList\n```\nValidateImageSignature ensures that given signatures is valid.\n\n```go\nfunc ValidateImageSignatureUpdate(newImageSignature, oldImageSignature *api.ImageSignature) field.ErrorList\n```\nValidateImageSignatureUpdate ensures that the new ImageSignature is valid.\n\n```go\nfunc ValidateImageStream(stream *api.ImageStream) field.ErrorList\n```\nValidateImageStream tests required fields for an ImageStream.\n\n```go\nfunc ValidateImageStreamImport(isi *api.ImageStreamImport) field.ErrorList\n```\n\n```go\nfunc ValidateImageStreamMapping(mapping *api.ImageStreamMapping) field.ErrorList\n```\nValidateImageStreamMapping tests required fields for an ImageStreamMapping.\n\n```go\nfunc ValidateImageStreamName(name string, prefix bool) []string\n```\n\n```go\nfunc ValidateImageStreamStatusUpdate(newStream, oldStream *api.ImageStream) field.ErrorList\n```\nValidateImageStreamStatusUpdate tests required fields for an ImageStream status update.\n\n```go\nfunc ValidateImageStreamTag(ist *api.ImageStreamTag) field.ErrorList\n```\nValidateImageStreamTag validates a mutation of an image stream tag, which can happen on PUT\n\n```go\nfunc ValidateImageStreamTagReference(tagRef api.TagReference, fldPath *field.Path) field.ErrorList\n```\nValidateImageStreamTagReference ensures that a given tag reference is valid.\n\n```go\nfunc ValidateImageStreamTagUpdate(newIST, oldIST *api.ImageStreamTag) field.ErrorList\n```\nValidateImageStreamTagUpdate ensures that only the annotations of the IST have changed\n\n```go\nfunc ValidateImageStreamUpdate(newStream, oldStream *api.ImageStream) field.ErrorList\n```\n\n```go\nfunc ValidateImageUpdate(newImage, oldImage *api.Image) field.ErrorList\n```\n\n","path":"github.1git.de/openshift/origin/pkg/image/api/validation","name":"validation","synopsis":"","isRedistributable":true}
