Documentation ¶
Index ¶
- type Client
- func (_m *Client) BlobExist(repository string, digest string) (bool, error)
- func (_m *Client) Catalog() ([]string, error)
- func (_m *Client) Copy(srcRepository string, srcReference string, dstRepository string, ...) error
- func (_m *Client) DeleteBlob(repository string, digest string) error
- func (_m *Client) DeleteManifest(repository string, reference string) error
- func (_m *Client) Do(req *http.Request) (*http.Response, error)
- func (_m *Client) ListTags(repository string) ([]string, error)
- func (_m *Client) ManifestExist(repository string, reference string) (bool, *distribution.Descriptor, error)
- func (_m *Client) MountBlob(srcRepository string, digest string, dstRepository string) error
- func (_m *Client) Ping() error
- func (_m *Client) PullBlob(repository string, digest string) (int64, io.ReadCloser, error)
- func (_m *Client) PullBlobChunk(repository string, digest string, blobSize int64, start int64, end int64) (int64, io.ReadCloser, error)
- func (_m *Client) PullManifest(repository string, reference string, acceptedMediaTypes ...string) (distribution.Manifest, string, error)
- func (_m *Client) PushBlob(repository string, digest string, size int64, blob io.Reader) error
- func (_m *Client) PushBlobChunk(repository string, digest string, blobSize int64, chunk io.Reader, start int64, ...) (string, int64, error)
- func (_m *Client) PushManifest(repository string, reference string, mediaType string, payload []byte) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client is an autogenerated mock type for the Client type
func NewClient ¶
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) 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 ¶
DeleteBlob provides a mock function with given fields: repository, digest
func (*Client) DeleteManifest ¶
DeleteManifest provides a mock function with given fields: repository, reference
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 ¶
MountBlob provides a mock function with given fields: srcRepository, digest, dstRepository
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 ¶
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