Path: blob/main/components/registry-facade/pkg/registry/mock/layersource_mock.go
2501 views
// Copyright (c) 2022 Gitpod GmbH. All rights reserved.1// Licensed under the GNU Affero General Public License (AGPL).2// See License.AGPL.txt in the project root for license information.34// Code generated by MockGen. DO NOT EDIT.5// Source: github.com/gitpod-io/gitpod/registry-facade/pkg/registry (interfaces: LayerSource)67// Package mock is a generated GoMock package.8package mock910import (11context "context"12io "io"13reflect "reflect"1415api "github.com/gitpod-io/gitpod/registry-facade/api"16registry "github.com/gitpod-io/gitpod/registry-facade/pkg/registry"17gomock "github.com/golang/mock/gomock"18digest "github.com/opencontainers/go-digest"19)2021// MockLayerSource is a mock of LayerSource interface.22type MockLayerSource struct {23ctrl *gomock.Controller24recorder *MockLayerSourceMockRecorder25}2627// MockLayerSourceMockRecorder is the mock recorder for MockLayerSource.28type MockLayerSourceMockRecorder struct {29mock *MockLayerSource30}3132// NewMockLayerSource creates a new mock instance.33func NewMockLayerSource(ctrl *gomock.Controller) *MockLayerSource {34mock := &MockLayerSource{ctrl: ctrl}35mock.recorder = &MockLayerSourceMockRecorder{mock}36return mock37}3839// EXPECT returns an object that allows the caller to indicate expected use.40func (m *MockLayerSource) EXPECT() *MockLayerSourceMockRecorder {41return m.recorder42}4344// Envs mocks base method.45func (m *MockLayerSource) Envs(arg0 context.Context, arg1 *api.ImageSpec) ([]registry.EnvModifier, error) {46m.ctrl.T.Helper()47ret := m.ctrl.Call(m, "Envs", arg0, arg1)48ret0, _ := ret[0].([]registry.EnvModifier)49ret1, _ := ret[1].(error)50return ret0, ret151}5253// Envs indicates an expected call of Envs.54func (mr *MockLayerSourceMockRecorder) Envs(arg0, arg1 interface{}) *gomock.Call {55mr.mock.ctrl.T.Helper()56return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Envs", reflect.TypeOf((*MockLayerSource)(nil).Envs), arg0, arg1)57}5859// GetBlob mocks base method.60func (m *MockLayerSource) GetBlob(arg0 context.Context, arg1 *api.ImageSpec, arg2 digest.Digest) (bool, string, string, io.ReadCloser, error) {61m.ctrl.T.Helper()62ret := m.ctrl.Call(m, "GetBlob", arg0, arg1, arg2)63ret0, _ := ret[0].(bool)64ret1, _ := ret[1].(string)65ret2, _ := ret[2].(string)66ret3, _ := ret[3].(io.ReadCloser)67ret4, _ := ret[4].(error)68return ret0, ret1, ret2, ret3, ret469}7071// GetBlob indicates an expected call of GetBlob.72func (mr *MockLayerSourceMockRecorder) GetBlob(arg0, arg1, arg2 interface{}) *gomock.Call {73mr.mock.ctrl.T.Helper()74return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBlob", reflect.TypeOf((*MockLayerSource)(nil).GetBlob), arg0, arg1, arg2)75}7677// GetLayer mocks base method.78func (m *MockLayerSource) GetLayer(arg0 context.Context, arg1 *api.ImageSpec) ([]registry.AddonLayer, error) {79m.ctrl.T.Helper()80ret := m.ctrl.Call(m, "GetLayer", arg0, arg1)81ret0, _ := ret[0].([]registry.AddonLayer)82ret1, _ := ret[1].(error)83return ret0, ret184}8586// GetLayer indicates an expected call of GetLayer.87func (mr *MockLayerSourceMockRecorder) GetLayer(arg0, arg1 interface{}) *gomock.Call {88mr.mock.ctrl.T.Helper()89return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetLayer", reflect.TypeOf((*MockLayerSource)(nil).GetLayer), arg0, arg1)90}9192// HasBlob mocks base method.93func (m *MockLayerSource) HasBlob(arg0 context.Context, arg1 *api.ImageSpec, arg2 digest.Digest) bool {94m.ctrl.T.Helper()95ret := m.ctrl.Call(m, "HasBlob", arg0, arg1, arg2)96ret0, _ := ret[0].(bool)97return ret098}99100// HasBlob indicates an expected call of HasBlob.101func (mr *MockLayerSourceMockRecorder) HasBlob(arg0, arg1, arg2 interface{}) *gomock.Call {102mr.mock.ctrl.T.Helper()103return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HasBlob", reflect.TypeOf((*MockLayerSource)(nil).HasBlob), arg0, arg1, arg2)104}105106// Name mocks base method.107func (m *MockLayerSource) Name() string {108m.ctrl.T.Helper()109ret := m.ctrl.Call(m, "Name")110ret0, _ := ret[0].(string)111return ret0112}113114// Name indicates an expected call of Name.115func (mr *MockLayerSourceMockRecorder) Name() *gomock.Call {116mr.mock.ctrl.T.Helper()117return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Name", reflect.TypeOf((*MockLayerSource)(nil).Name))118}119120121