tests

package
v0.0.2-alpha Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 12, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Copyright (c) Microsoft Corporation. Licensed under the Apache License, Version 2.0.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockContainerdStore

type MockContainerdStore struct {
	// contains filtered or unexported fields
}

func NewMockContainerdStore

func NewMockContainerdStore(refs []containerd.Reference) *MockContainerdStore

func (*MockContainerdStore) All

func (*MockContainerdStore) Bytes

func (m *MockContainerdStore) Bytes(ctx context.Context, dgst digest.Digest) ([]byte, string, error)

func (*MockContainerdStore) List

func (*MockContainerdStore) Resolve

func (m *MockContainerdStore) Resolve(ctx context.Context, ref string) (digest.Digest, error)

func (*MockContainerdStore) Size

func (m *MockContainerdStore) Size(ctx context.Context, dgst digest.Digest) (int64, error)

func (*MockContainerdStore) Subscribe

func (m *MockContainerdStore) Subscribe(ctx context.Context) (<-chan containerd.Reference, <-chan error)

func (*MockContainerdStore) Verify

func (m *MockContainerdStore) Verify(ctx context.Context) error

func (*MockContainerdStore) Write

func (m *MockContainerdStore) Write(ctx context.Context, dst io.Writer, dgst digest.Digest) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL