Skip to content

Commit 4929f52

Browse files
authored
Merge pull request moby#50498 from thaJeztah/registry_rm_deprecated
registry: remove deprecated RepositoryInfo.Official, Class fields
2 parents fcb916a + d4e8544 commit 4929f52

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

registry/config.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,6 @@ func ParseRepositoryInfo(reposName reference.Named) (*RepositoryInfo, error) {
396396
Secure: true,
397397
Official: true,
398398
},
399-
Official: !strings.ContainsRune(reference.FamiliarName(reposName), '/'),
400399
}, nil
401400
}
402401

registry/types.go

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,4 @@ type RepositoryInfo struct {
1010
Name reference.Named
1111
// Index points to registry information
1212
Index *registry.IndexInfo
13-
// Official indicates whether the repository is considered official.
14-
// If the registry is official, and the normalized name does not
15-
// contain a '/' (e.g. "foo"), then it is considered an official repo.
16-
//
17-
// Deprecated: this field is no longer used and will be removed in the next release. The information captured in this field can be obtained from the [Name] field instead.
18-
Official bool
19-
// Class represents the class of the repository, such as "plugin"
20-
// or "image".
21-
//
22-
// Deprecated: this field is no longer used, and will be removed in the next release.
23-
Class string
2413
}

0 commit comments

Comments
 (0)