Documentation
¶
Overview ¶
Package blob is the underlying type for pushing and pulling blobs
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Common ¶
type Common interface {
GetDescriptor() types.Descriptor
Response() *http.Response
RawHeaders() http.Header
Digest() digest.Digest // TODO: deprecate
Length() int64 // TODO: deprecate
MediaType() string // TODO: deprecate
}
Common interface is provided by all Blob implementations
type OCIConfig ¶
OCIConfig wraps an OCI Config struct extracted from a Blob
func NewOCIConfig ¶
NewOCIConfig creates a new BlobOCIConfig from an OCI Image
type Opts ¶
type Opts func(*blobConfig)
func WithDesc ¶
func WithDesc(d types.Descriptor) Opts
WithDesc specifies the descriptor associated with the blob
func WithHeader ¶
WithHeader defines the headers received when pulling a blob
func WithRawBody ¶
WithRawBody defines the raw blob contents for OCIConfig
Click to show internal directories.
Click to hide internal directories.