errors.go 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  1. // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
  2. package ecr
  3. import (
  4. "github.com/aws/aws-sdk-go/private/protocol"
  5. )
  6. const (
  7. // ErrCodeEmptyUploadException for service response error code
  8. // "EmptyUploadException".
  9. //
  10. // The specified layer upload does not contain any layer parts.
  11. ErrCodeEmptyUploadException = "EmptyUploadException"
  12. // ErrCodeImageAlreadyExistsException for service response error code
  13. // "ImageAlreadyExistsException".
  14. //
  15. // The specified image has already been pushed, and there were no changes to
  16. // the manifest or image tag after the last push.
  17. ErrCodeImageAlreadyExistsException = "ImageAlreadyExistsException"
  18. // ErrCodeImageNotFoundException for service response error code
  19. // "ImageNotFoundException".
  20. //
  21. // The image requested does not exist in the specified repository.
  22. ErrCodeImageNotFoundException = "ImageNotFoundException"
  23. // ErrCodeImageTagAlreadyExistsException for service response error code
  24. // "ImageTagAlreadyExistsException".
  25. //
  26. // The specified image is tagged with a tag that already exists. The repository
  27. // is configured for tag immutability.
  28. ErrCodeImageTagAlreadyExistsException = "ImageTagAlreadyExistsException"
  29. // ErrCodeInvalidLayerException for service response error code
  30. // "InvalidLayerException".
  31. //
  32. // The layer digest calculation performed by Amazon ECR upon receipt of the
  33. // image layer does not match the digest specified.
  34. ErrCodeInvalidLayerException = "InvalidLayerException"
  35. // ErrCodeInvalidLayerPartException for service response error code
  36. // "InvalidLayerPartException".
  37. //
  38. // The layer part size is not valid, or the first byte specified is not consecutive
  39. // to the last byte of a previous layer part upload.
  40. ErrCodeInvalidLayerPartException = "InvalidLayerPartException"
  41. // ErrCodeInvalidParameterException for service response error code
  42. // "InvalidParameterException".
  43. //
  44. // The specified parameter is invalid. Review the available parameters for the
  45. // API request.
  46. ErrCodeInvalidParameterException = "InvalidParameterException"
  47. // ErrCodeInvalidTagParameterException for service response error code
  48. // "InvalidTagParameterException".
  49. //
  50. // An invalid parameter has been specified. Tag keys can have a maximum character
  51. // length of 128 characters, and tag values can have a maximum length of 256
  52. // characters.
  53. ErrCodeInvalidTagParameterException = "InvalidTagParameterException"
  54. // ErrCodeLayerAlreadyExistsException for service response error code
  55. // "LayerAlreadyExistsException".
  56. //
  57. // The image layer already exists in the associated repository.
  58. ErrCodeLayerAlreadyExistsException = "LayerAlreadyExistsException"
  59. // ErrCodeLayerInaccessibleException for service response error code
  60. // "LayerInaccessibleException".
  61. //
  62. // The specified layer is not available because it is not associated with an
  63. // image. Unassociated image layers may be cleaned up at any time.
  64. ErrCodeLayerInaccessibleException = "LayerInaccessibleException"
  65. // ErrCodeLayerPartTooSmallException for service response error code
  66. // "LayerPartTooSmallException".
  67. //
  68. // Layer parts must be at least 5 MiB in size.
  69. ErrCodeLayerPartTooSmallException = "LayerPartTooSmallException"
  70. // ErrCodeLayersNotFoundException for service response error code
  71. // "LayersNotFoundException".
  72. //
  73. // The specified layers could not be found, or the specified layer is not valid
  74. // for this repository.
  75. ErrCodeLayersNotFoundException = "LayersNotFoundException"
  76. // ErrCodeLifecyclePolicyNotFoundException for service response error code
  77. // "LifecyclePolicyNotFoundException".
  78. //
  79. // The lifecycle policy could not be found, and no policy is set to the repository.
  80. ErrCodeLifecyclePolicyNotFoundException = "LifecyclePolicyNotFoundException"
  81. // ErrCodeLifecyclePolicyPreviewInProgressException for service response error code
  82. // "LifecyclePolicyPreviewInProgressException".
  83. //
  84. // The previous lifecycle policy preview request has not completed. Please try
  85. // again later.
  86. ErrCodeLifecyclePolicyPreviewInProgressException = "LifecyclePolicyPreviewInProgressException"
  87. // ErrCodeLifecyclePolicyPreviewNotFoundException for service response error code
  88. // "LifecyclePolicyPreviewNotFoundException".
  89. //
  90. // There is no dry run for this repository.
  91. ErrCodeLifecyclePolicyPreviewNotFoundException = "LifecyclePolicyPreviewNotFoundException"
  92. // ErrCodeLimitExceededException for service response error code
  93. // "LimitExceededException".
  94. //
  95. // The operation did not succeed because it would have exceeded a service limit
  96. // for your account. For more information, see Amazon ECR Default Service Limits
  97. // (https://docs.aws.amazon.com/AmazonECR/latest/userguide/service_limits.html)
  98. // in the Amazon Elastic Container Registry User Guide.
  99. ErrCodeLimitExceededException = "LimitExceededException"
  100. // ErrCodeRepositoryAlreadyExistsException for service response error code
  101. // "RepositoryAlreadyExistsException".
  102. //
  103. // The specified repository already exists in the specified registry.
  104. ErrCodeRepositoryAlreadyExistsException = "RepositoryAlreadyExistsException"
  105. // ErrCodeRepositoryNotEmptyException for service response error code
  106. // "RepositoryNotEmptyException".
  107. //
  108. // The specified repository contains images. To delete a repository that contains
  109. // images, you must force the deletion with the force parameter.
  110. ErrCodeRepositoryNotEmptyException = "RepositoryNotEmptyException"
  111. // ErrCodeRepositoryNotFoundException for service response error code
  112. // "RepositoryNotFoundException".
  113. //
  114. // The specified repository could not be found. Check the spelling of the specified
  115. // repository and ensure that you are performing operations on the correct registry.
  116. ErrCodeRepositoryNotFoundException = "RepositoryNotFoundException"
  117. // ErrCodeRepositoryPolicyNotFoundException for service response error code
  118. // "RepositoryPolicyNotFoundException".
  119. //
  120. // The specified repository and registry combination does not have an associated
  121. // repository policy.
  122. ErrCodeRepositoryPolicyNotFoundException = "RepositoryPolicyNotFoundException"
  123. // ErrCodeScanNotFoundException for service response error code
  124. // "ScanNotFoundException".
  125. //
  126. // The specified image scan could not be found. Ensure that image scanning is
  127. // enabled on the repository and try again.
  128. ErrCodeScanNotFoundException = "ScanNotFoundException"
  129. // ErrCodeServerException for service response error code
  130. // "ServerException".
  131. //
  132. // These errors are usually caused by a server-side issue.
  133. ErrCodeServerException = "ServerException"
  134. // ErrCodeTooManyTagsException for service response error code
  135. // "TooManyTagsException".
  136. //
  137. // The list of tags on the repository is over the limit. The maximum number
  138. // of tags that can be applied to a repository is 50.
  139. ErrCodeTooManyTagsException = "TooManyTagsException"
  140. // ErrCodeUploadNotFoundException for service response error code
  141. // "UploadNotFoundException".
  142. //
  143. // The upload could not be found, or the specified upload id is not valid for
  144. // this repository.
  145. ErrCodeUploadNotFoundException = "UploadNotFoundException"
  146. )
  147. var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
  148. "EmptyUploadException": newErrorEmptyUploadException,
  149. "ImageAlreadyExistsException": newErrorImageAlreadyExistsException,
  150. "ImageNotFoundException": newErrorImageNotFoundException,
  151. "ImageTagAlreadyExistsException": newErrorImageTagAlreadyExistsException,
  152. "InvalidLayerException": newErrorInvalidLayerException,
  153. "InvalidLayerPartException": newErrorInvalidLayerPartException,
  154. "InvalidParameterException": newErrorInvalidParameterException,
  155. "InvalidTagParameterException": newErrorInvalidTagParameterException,
  156. "LayerAlreadyExistsException": newErrorLayerAlreadyExistsException,
  157. "LayerInaccessibleException": newErrorLayerInaccessibleException,
  158. "LayerPartTooSmallException": newErrorLayerPartTooSmallException,
  159. "LayersNotFoundException": newErrorLayersNotFoundException,
  160. "LifecyclePolicyNotFoundException": newErrorLifecyclePolicyNotFoundException,
  161. "LifecyclePolicyPreviewInProgressException": newErrorLifecyclePolicyPreviewInProgressException,
  162. "LifecyclePolicyPreviewNotFoundException": newErrorLifecyclePolicyPreviewNotFoundException,
  163. "LimitExceededException": newErrorLimitExceededException,
  164. "RepositoryAlreadyExistsException": newErrorRepositoryAlreadyExistsException,
  165. "RepositoryNotEmptyException": newErrorRepositoryNotEmptyException,
  166. "RepositoryNotFoundException": newErrorRepositoryNotFoundException,
  167. "RepositoryPolicyNotFoundException": newErrorRepositoryPolicyNotFoundException,
  168. "ScanNotFoundException": newErrorScanNotFoundException,
  169. "ServerException": newErrorServerException,
  170. "TooManyTagsException": newErrorTooManyTagsException,
  171. "UploadNotFoundException": newErrorUploadNotFoundException,
  172. }