Merge pull request #50498 from thaJeztah/registry_rm_deprecated

registry: remove deprecated RepositoryInfo.Official, Class fields
This commit is contained in:
Sebastiaan van Stijn
2025-07-24 11:30:15 +02:00
committed by GitHub
2 changed files with 0 additions and 12 deletions

View File

@@ -396,7 +396,6 @@ func ParseRepositoryInfo(reposName reference.Named) (*RepositoryInfo, error) {
Secure: true,
Official: true,
},
Official: !strings.ContainsRune(reference.FamiliarName(reposName), '/'),
}, nil
}

View File

@@ -10,15 +10,4 @@ type RepositoryInfo struct {
Name reference.Named
// Index points to registry information
Index *registry.IndexInfo
// Official indicates whether the repository is considered official.
// If the registry is official, and the normalized name does not
// contain a '/' (e.g. "foo"), then it is considered an official repo.
//
// 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.
Official bool
// Class represents the class of the repository, such as "plugin"
// or "image".
//
// Deprecated: this field is no longer used, and will be removed in the next release.
Class string
}