-
Notifications
You must be signed in to change notification settings - Fork 82
/
blob.go
39 lines (35 loc) · 913 Bytes
/
blob.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//go:build !nolegacy
// +build !nolegacy
// Package blob is a legacy package, this has been moved to the types/blob package
package blob
import (
topBlob "github.com/regclient/regclient/types/blob"
)
type (
// Blob specifies a generic blob.
//
// Deprecated: replace with [blob.Blob].
Blob = topBlob.Blob
// OCIConfig is an interface for an OCI Config.
//
// Deprecated: replace with [blob.OCIConfig].
OCIConfig = topBlob.OCIConfig
// Common is an interface of common methods for blobs.
//
// Deprecated: replace with [blob.Common].
Common = topBlob.Common
// Reader is an interface for blob reader methods.
//
// Deprecated: replace with [blob.Reader].
Reader = topBlob.Reader
)
var (
// NewOCIConfig
//
// Deprecated: replace with [blob.NewOCIConfig].
NewOCIConfig = topBlob.NewOCIConfig
// NewReader
//
// Deprecated: replace with [blob.NewReader].
NewReader = topBlob.NewReader
)