Documentation ¶
Index ¶
- type BlobPair
- type TestBlobStore
- type TestRepository
- func (r TestRepository) Blobs() registry.BlobStore
- func (r TestRepository) Fetch(_ context.Context, target oci.Descriptor) (io.ReadCloser, error)
- func (r TestRepository) Referrers(_ context.Context, _ oci.Descriptor, _ string, ...) error
- func (r TestRepository) Resolve(_ context.Context, reference string) (oci.Descriptor, error)
- type TestStorage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlobPair ¶
type BlobPair struct { Descriptor oci.Descriptor Reader io.ReadCloser }
type TestBlobStore ¶
func (TestBlobStore) FetchReference ¶
func (b TestBlobStore) FetchReference(_ context.Context, reference string) (oci.Descriptor, io.ReadCloser, error)
type TestRepository ¶
type TestRepository struct { registry.Repository ResolveErr error ResolveMap map[string]oci.Descriptor ReferrersList []oci.Descriptor FetchMap map[digest.Digest]io.ReadCloser BlobStoreTest TestBlobStore }
func (TestRepository) Blobs ¶
func (r TestRepository) Blobs() registry.BlobStore
func (TestRepository) Fetch ¶
func (r TestRepository) Fetch(_ context.Context, target oci.Descriptor) (io.ReadCloser, error)
func (TestRepository) Referrers ¶
func (r TestRepository) Referrers(_ context.Context, _ oci.Descriptor, _ string, fn func(referrers []oci.Descriptor) error) error
func (TestRepository) Resolve ¶
func (r TestRepository) Resolve(_ context.Context, reference string) (oci.Descriptor, error)
type TestStorage ¶
func (TestStorage) Exists ¶
func (s TestStorage) Exists(_ context.Context, target oci.Descriptor) (bool, error)
func (TestStorage) Fetch ¶
func (s TestStorage) Fetch(_ context.Context, target oci.Descriptor) (io.ReadCloser, error)
func (TestStorage) Push ¶
func (s TestStorage) Push(_ context.Context, expected oci.Descriptor, content io.Reader) error
Click to show internal directories.
Click to hide internal directories.