1
0
mirror of https://github.com/regclient/regclient.git synced 2025-07-29 09:01:11 +03:00

Cleanup links in "deprecated" comments

Signed-off-by: Brandon Mitchell <git@bmitch.net>
This commit is contained in:
Brandon Mitchell
2023-09-30 09:05:53 -04:00
parent 22496b7cce
commit 6d9822af08
10 changed files with 145 additions and 134 deletions

View File

@ -31,21 +31,21 @@ func (c *BCommon) GetDescriptor() types.Descriptor {
// Digest returns the provided or calculated digest of the blob.
//
// Deprecated: Digest should be replaced by GetDescriptor().Digest.
// Deprecated: Digest should be replaced by GetDescriptor().Digest, see [GetDescriptor].
func (c *BCommon) Digest() digest.Digest {
return c.desc.Digest
}
// Length returns the provided or calculated length of the blob.
//
// Deprecated: Length should be replaced by GetDescriptor().Size.
// Deprecated: Length should be replaced by GetDescriptor().Size, see [GetDescriptor].
func (c *BCommon) Length() int64 {
return c.desc.Size
}
// MediaType returns the Content-Type header received from the registry.
//
// Deprecated: MediaType should be replaced by GetDescriptor().MediaType.
// Deprecated: MediaType should be replaced by GetDescriptor().MediaType, see [GetDescriptor].
func (c *BCommon) MediaType() string {
return c.desc.MediaType
}