mocks

package
v0.0.0-...-7d312d8 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	mock.Mock
}

Client is an autogenerated mock type for the Client type

func NewClient

func NewClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *Client

NewClient creates a new instance of Client. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Client) GetConfig

func (_m *Client) GetConfig(ctx context.Context, registry string, repository string, configDigest string) (*docker.ImageConfig, error)

GetConfig provides a mock function with given fields: ctx, registry, repository, configDigest

func (*Client) GetManifest

func (_m *Client) GetManifest(ctx context.Context, registry string, repository string, reference string) (*docker.Manifest, error)

GetManifest provides a mock function with given fields: ctx, registry, repository, reference

func (*Client) ListInstances

func (_m *Client) ListInstances(ctx context.Context, registry string, repository string) (map[string]*docker.ImageInstance, error)

ListInstances provides a mock function with given fields: ctx, registry, repository

func (*Client) ListRepositories

func (_m *Client) ListRepositories(ctx context.Context, registry string) ([]string, error)

ListRepositories provides a mock function with given fields: ctx, registry

func (*Client) ListTags

func (_m *Client) ListTags(ctx context.Context, registry string, repository string) ([]string, error)

ListTags provides a mock function with given fields: ctx, registry, repository

func (*Client) SetTag

func (_m *Client) SetTag(ctx context.Context, registry string, repository string, reference string, newTag string) error

SetTag provides a mock function with given fields: ctx, registry, repository, reference, newTag

Jump to

Keyboard shortcuts

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