Documentation ¶
Overview ¶
Copyright (c) Microsoft Corporation. Licensed under the MIT License.
Copyright (c) Microsoft Corporation. Licensed under the MIT License.
Copyright (c) Microsoft Corporation. Licensed under the MIT License.
Index ¶
- type MockContentStore
- func (*MockContentStore) Abort(ctx context.Context, ref string) error
- func (*MockContentStore) Delete(ctx context.Context, dgst digest.Digest) error
- func (m *MockContentStore) Info(ctx context.Context, dgst digest.Digest) (content.Info, error)
- func (*MockContentStore) ListStatuses(ctx context.Context, filters ...string) ([]content.Status, error)
- func (m *MockContentStore) ReaderAt(ctx context.Context, desc v1.Descriptor) (content.ReaderAt, error)
- func (*MockContentStore) Status(ctx context.Context, ref string) (content.Status, error)
- func (*MockContentStore) Update(ctx context.Context, info content.Info, fieldpaths ...string) (content.Info, error)
- func (*MockContentStore) Walk(ctx context.Context, fn content.WalkFunc, filters ...string) error
- func (*MockContentStore) Writer(ctx context.Context, opts ...content.WriterOpt) (content.Writer, error)
- type MockEventService
- func (*MockEventService) Forward(ctx context.Context, envelope *events.Envelope) error
- func (*MockEventService) Publish(ctx context.Context, topic string, event events.Event) error
- func (m *MockEventService) Subscribe(ctx context.Context, filters ...string) (ch <-chan *events.Envelope, errs <-chan error)
- type MockImageStore
- func (*MockImageStore) Create(ctx context.Context, image images.Image) (images.Image, error)
- func (*MockImageStore) Delete(ctx context.Context, name string, opts ...images.DeleteOpt) error
- func (m *MockImageStore) Get(ctx context.Context, name string) (images.Image, error)
- func (m *MockImageStore) List(ctx context.Context, filters ...string) ([]images.Image, error)
- func (*MockImageStore) Update(ctx context.Context, image images.Image, fieldpaths ...string) (images.Image, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockContentStore ¶
MockContentStore is a mock implementation of containerd's content store.
func (*MockContentStore) Abort ¶
func (*MockContentStore) Abort(ctx context.Context, ref string) error
func (*MockContentStore) Delete ¶
func (*MockContentStore) Delete(ctx context.Context, dgst digest.Digest) error
func (*MockContentStore) Info ¶
Info returns the content.Info for the given digest, if it exists in the mocked data keyed by digest.
func (*MockContentStore) ListStatuses ¶
func (*MockContentStore) ReaderAt ¶
func (m *MockContentStore) ReaderAt(ctx context.Context, desc v1.Descriptor) (content.ReaderAt, error)
ReaderAt returns a content.ReaderAt for the given descriptor, if it exists in the mocked data keyed by digest.
type MockEventService ¶
type MockImageStore ¶
MockImageStore is a mock implementation of containerd's image store.
func (*MockImageStore) Get ¶
Get gets an image by name if it exists in the mocked data keyed by name.