api/docker/images/digest.go
Method DigestClient.RemoteDigest
has 5 return statements (exceeds 4 allowed). Open
Open
func (c *DigestClient) RemoteDigest(image Image) (digest.Digest, error) {
ctx, cancel := c.timeoutContext()
defer cancel()
// Docker references with both a tag and digest are currently not supported
if image.Tag != "" && image.Digest != "" {
Function ParseLocalImage
has 5 return statements (exceeds 4 allowed). Open
Open
func ParseLocalImage(inspect types.ImageInspect) (*Image, error) {
if IsLocalImage(inspect) || IsDanglingImage(inspect) {
return nil, errors.New("the image is not regular")
}