Documentation ¶
Index ¶
- Variables
- func ValidateImage(image *api.Image) field.ErrorList
- func ValidateImageStream(stream *api.ImageStream) field.ErrorList
- func ValidateImageStreamImport(isi *api.ImageStreamImport) field.ErrorList
- func ValidateImageStreamMapping(mapping *api.ImageStreamMapping) field.ErrorList
- func ValidateImageStreamName(name string, prefix bool) (bool, string)
- func ValidateImageStreamStatusUpdate(newStream, oldStream *api.ImageStream) field.ErrorList
- func ValidateImageStreamTag(ist *api.ImageStreamTag) field.ErrorList
- func ValidateImageStreamTagUpdate(newIST, oldIST *api.ImageStreamTag) field.ErrorList
- func ValidateImageStreamUpdate(newStream, oldStream *api.ImageStream) field.ErrorList
- func ValidateImageUpdate(newImage, oldImage *api.Image) field.ErrorList
Constants ¶
This section is empty.
Variables ¶
var RepositoryNameComponentAnchoredRegexp = regexp.MustCompile(`^` + RepositoryNameComponentRegexp.String() + `$`)
RepositoryNameComponentAnchoredRegexp 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
var RepositoryNameComponentRegexp = regexp.MustCompile(`[a-z0-9]+(?:[._-][a-z0-9]+)*`)
RepositoryNameComponentRegexp 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
var RepositoryNameRegexp = regexp.MustCompile(`(?:` + RepositoryNameComponentRegexp.String() + `/)*` + RepositoryNameComponentRegexp.String())
RepositoryNameRegexp 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
Functions ¶
func ValidateImage ¶
ValidateImage tests required fields for an Image.
func ValidateImageStream ¶
func ValidateImageStream(stream *api.ImageStream) field.ErrorList
ValidateImageStream tests required fields for an ImageStream.
func ValidateImageStreamImport ¶ added in v1.1.2
func ValidateImageStreamImport(isi *api.ImageStreamImport) field.ErrorList
func ValidateImageStreamMapping ¶
func ValidateImageStreamMapping(mapping *api.ImageStreamMapping) field.ErrorList
ValidateImageStreamMapping tests required fields for an ImageStreamMapping.
func ValidateImageStreamName ¶
func ValidateImageStreamStatusUpdate ¶
func ValidateImageStreamStatusUpdate(newStream, oldStream *api.ImageStream) field.ErrorList
ValidateImageStreamStatusUpdate tests required fields for an ImageStream status update.
func ValidateImageStreamTag ¶ added in v1.0.8
func ValidateImageStreamTag(ist *api.ImageStreamTag) field.ErrorList
ValidateImageStreamTag is essentially a no-op. We don't allow direct creation of istags
func ValidateImageStreamTagUpdate ¶ added in v1.0.8
func ValidateImageStreamTagUpdate(newIST, oldIST *api.ImageStreamTag) field.ErrorList
ValidateImageStreamTagUpdate ensures that only the annotations of the IST have changed
func ValidateImageStreamUpdate ¶
func ValidateImageStreamUpdate(newStream, oldStream *api.ImageStream) field.ErrorList
Types ¶
This section is empty.