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:
@ -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 {
|
||||
|
Reference in New Issue
Block a user