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
// 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
}
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
type Reader ¶
type Reader interface {
Blob
io.ReadSeekCloser
ToOCIConfig() (OCIConfig, error)
ToTarReader() (TarReader, error)
}
Reader is an unprocessed Blob with an available ReadCloser for reading the Blob
type TarReader ¶ added in v0.4.5
type TarReader interface {
Blob
io.Closer
GetTarReader() (*tar.Reader, error)
ReadFile(filename string) (*tar.Header, io.Reader, error)
}
TarReader reads or writes to a blob with tar contents and optional compression
func NewTarReader ¶ added in v0.4.5
NewTarReader creates a TarReader
Click to show internal directories.
Click to hide internal directories.