registry

package
v0.0.0-...-e417875 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 4 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) BlobExist

func (_m *Client) BlobExist(repository string, digest string) (bool, error)

BlobExist provides a mock function with given fields: repository, digest

func (*Client) Catalog

func (_m *Client) Catalog() ([]string, error)

Catalog provides a mock function with given fields:

func (*Client) Copy

func (_m *Client) Copy(srcRepository string, srcReference string, dstRepository string, dstReference string, override bool) error

Copy provides a mock function with given fields: srcRepository, srcReference, dstRepository, dstReference, override

func (*Client) DeleteBlob

func (_m *Client) DeleteBlob(repository string, digest string) error

DeleteBlob provides a mock function with given fields: repository, digest

func (*Client) DeleteManifest

func (_m *Client) DeleteManifest(repository string, reference string) error

DeleteManifest provides a mock function with given fields: repository, reference

func (*Client) Do

func (_m *Client) Do(req *http.Request) (*http.Response, error)

Do provides a mock function with given fields: req

func (*Client) ListTags

func (_m *Client) ListTags(repository string) ([]string, error)

ListTags provides a mock function with given fields: repository

func (*Client) ManifestExist

func (_m *Client) ManifestExist(repository string, reference string) (bool, *distribution.Descriptor, error)

ManifestExist provides a mock function with given fields: repository, reference

func (*Client) MountBlob

func (_m *Client) MountBlob(srcRepository string, digest string, dstRepository string) error

MountBlob provides a mock function with given fields: srcRepository, digest, dstRepository

func (*Client) Ping

func (_m *Client) Ping() error

Ping provides a mock function with given fields:

func (*Client) PullBlob

func (_m *Client) PullBlob(repository string, digest string) (int64, io.ReadCloser, error)

PullBlob provides a mock function with given fields: repository, digest

func (*Client) PullBlobChunk

func (_m *Client) PullBlobChunk(repository string, digest string, blobSize int64, start int64, end int64) (int64, io.ReadCloser, error)

PullBlobChunk provides a mock function with given fields: repository, digest, blobSize, start, end

func (*Client) PullManifest

func (_m *Client) PullManifest(repository string, reference string, acceptedMediaTypes ...string) (distribution.Manifest, string, error)

PullManifest provides a mock function with given fields: repository, reference, acceptedMediaTypes

func (*Client) PushBlob

func (_m *Client) PushBlob(repository string, digest string, size int64, blob io.Reader) error

PushBlob provides a mock function with given fields: repository, digest, size, blob

func (*Client) PushBlobChunk

func (_m *Client) PushBlobChunk(repository string, digest string, blobSize int64, chunk io.Reader, start int64, end int64, location string) (string, int64, error)

PushBlobChunk provides a mock function with given fields: repository, digest, blobSize, chunk, start, end, location

func (*Client) PushManifest

func (_m *Client) PushManifest(repository string, reference string, mediaType string, payload []byte) (string, error)

PushManifest provides a mock function with given fields: repository, reference, mediaType, payload

Jump to

Keyboard shortcuts

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