1
0
mirror of https://github.com/regclient/regclient.git synced 2025-07-27 21:41:46 +03:00

Deprecating redundant methods

Signed-off-by: Brandon Mitchell <git@bmitch.net>
This commit is contained in:
Brandon Mitchell
2022-06-26 20:00:47 -04:00
parent c9cbf5a3fa
commit 06a7b6a816
5 changed files with 26 additions and 15 deletions

View File

@ -18,9 +18,12 @@ type Common interface {
Response() *http.Response
RawHeaders() http.Header
Digest() digest.Digest // TODO: deprecate
Length() int64 // TODO: deprecate
MediaType() string // TODO: deprecate
// Deprecated: Digest should be replaced by GetDescriptor().Digest
Digest() digest.Digest
// Deprecated: Length should be replaced by GetDescriptor().Size
Length() int64
// Deprecated: MediaType should be replaced by GetDescriptor().MediaType
MediaType() string
}
type common struct {