Documentation ¶
Overview ¶
type yourSource struct { stubs.NoGetBlobAtInitialize … }
dest := &yourSource{ … NoGetBlobAtInitialize: stubs.NoGetBlobAt(ref), }
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ImplementsGetBlobAt ¶
type ImplementsGetBlobAt struct{}
ImplementsGetBlobAt implements SupportsGetBlobAt() that returns true.
func (ImplementsGetBlobAt) SupportsGetBlobAt ¶
func (stub ImplementsGetBlobAt) SupportsGetBlobAt() bool
SupportsGetBlobAt() returns true if GetBlobAt (BlobChunkAccessor) is supported.
type NoGetBlobAtInitialize ¶
type NoGetBlobAtInitialize struct {
// contains filtered or unexported fields
}
NoGetBlobAtInitialize implements parts of private.ImageSource for transports that don’t support GetBlobAt(). See NoGetBlobAt() below.
func NoGetBlobAt ¶
func NoGetBlobAt(ref types.ImageReference) NoGetBlobAtInitialize
NoGetBlobAt() creates a NoGetBlobAtInitialize for ref.
func NoGetBlobAtRaw ¶
func NoGetBlobAtRaw(transportName string) NoGetBlobAtInitialize
NoGetBlobAtRaw is the same thing as NoGetBlobAt, but it can be used in situations where no ImageReference is available.
func (NoGetBlobAtInitialize) GetBlobAt ¶
func (stub NoGetBlobAtInitialize) GetBlobAt(ctx context.Context, info types.BlobInfo, chunks []private.ImageSourceChunk) (chan io.ReadCloser, chan error, error)
GetBlobAt returns a sequential channel of readers that contain data for the requested blob chunks, and a channel that might get a single error value. The specified chunks must be not overlapping and sorted by their offset. The readers must be fully consumed, in the order they are returned, before blocking to read the next chunk.
func (NoGetBlobAtInitialize) SupportsGetBlobAt ¶
func (stub NoGetBlobAtInitialize) SupportsGetBlobAt() bool
SupportsGetBlobAt() returns true if GetBlobAt (BlobChunkAccessor) is supported.