github.com/juju/juju@v0.0.0-20240430160146-1752b71fcf00/docker/registry/mocks/registry_mock.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/juju/juju/docker/registry/internal (interfaces: Registry) 3 // 4 // Generated by this command: 5 // 6 // mockgen -package mocks -destination mocks/registry_mock.go github.com/juju/juju/docker/registry/internal Registry 7 // 8 9 // Package mocks is a generated GoMock package. 10 package mocks 11 12 import ( 13 reflect "reflect" 14 time "time" 15 16 docker "github.com/juju/juju/docker" 17 tools "github.com/juju/juju/tools" 18 gomock "go.uber.org/mock/gomock" 19 ) 20 21 // MockRegistry is a mock of Registry interface. 22 type MockRegistry struct { 23 ctrl *gomock.Controller 24 recorder *MockRegistryMockRecorder 25 } 26 27 // MockRegistryMockRecorder is the mock recorder for MockRegistry. 28 type MockRegistryMockRecorder struct { 29 mock *MockRegistry 30 } 31 32 // NewMockRegistry creates a new mock instance. 33 func NewMockRegistry(ctrl *gomock.Controller) *MockRegistry { 34 mock := &MockRegistry{ctrl: ctrl} 35 mock.recorder = &MockRegistryMockRecorder{mock} 36 return mock 37 } 38 39 // EXPECT returns an object that allows the caller to indicate expected use. 40 func (m *MockRegistry) EXPECT() *MockRegistryMockRecorder { 41 return m.recorder 42 } 43 44 // Close mocks base method. 45 func (m *MockRegistry) Close() error { 46 m.ctrl.T.Helper() 47 ret := m.ctrl.Call(m, "Close") 48 ret0, _ := ret[0].(error) 49 return ret0 50 } 51 52 // Close indicates an expected call of Close. 53 func (mr *MockRegistryMockRecorder) Close() *gomock.Call { 54 mr.mock.ctrl.T.Helper() 55 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockRegistry)(nil).Close)) 56 } 57 58 // GetArchitecture mocks base method. 59 func (m *MockRegistry) GetArchitecture(arg0, arg1 string) (string, error) { 60 m.ctrl.T.Helper() 61 ret := m.ctrl.Call(m, "GetArchitecture", arg0, arg1) 62 ret0, _ := ret[0].(string) 63 ret1, _ := ret[1].(error) 64 return ret0, ret1 65 } 66 67 // GetArchitecture indicates an expected call of GetArchitecture. 68 func (mr *MockRegistryMockRecorder) GetArchitecture(arg0, arg1 any) *gomock.Call { 69 mr.mock.ctrl.T.Helper() 70 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetArchitecture", reflect.TypeOf((*MockRegistry)(nil).GetArchitecture), arg0, arg1) 71 } 72 73 // ImageRepoDetails mocks base method. 74 func (m *MockRegistry) ImageRepoDetails() docker.ImageRepoDetails { 75 m.ctrl.T.Helper() 76 ret := m.ctrl.Call(m, "ImageRepoDetails") 77 ret0, _ := ret[0].(docker.ImageRepoDetails) 78 return ret0 79 } 80 81 // ImageRepoDetails indicates an expected call of ImageRepoDetails. 82 func (mr *MockRegistryMockRecorder) ImageRepoDetails() *gomock.Call { 83 mr.mock.ctrl.T.Helper() 84 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ImageRepoDetails", reflect.TypeOf((*MockRegistry)(nil).ImageRepoDetails)) 85 } 86 87 // Ping mocks base method. 88 func (m *MockRegistry) Ping() error { 89 m.ctrl.T.Helper() 90 ret := m.ctrl.Call(m, "Ping") 91 ret0, _ := ret[0].(error) 92 return ret0 93 } 94 95 // Ping indicates an expected call of Ping. 96 func (mr *MockRegistryMockRecorder) Ping() *gomock.Call { 97 mr.mock.ctrl.T.Helper() 98 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Ping", reflect.TypeOf((*MockRegistry)(nil).Ping)) 99 } 100 101 // RefreshAuth mocks base method. 102 func (m *MockRegistry) RefreshAuth() error { 103 m.ctrl.T.Helper() 104 ret := m.ctrl.Call(m, "RefreshAuth") 105 ret0, _ := ret[0].(error) 106 return ret0 107 } 108 109 // RefreshAuth indicates an expected call of RefreshAuth. 110 func (mr *MockRegistryMockRecorder) RefreshAuth() *gomock.Call { 111 mr.mock.ctrl.T.Helper() 112 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RefreshAuth", reflect.TypeOf((*MockRegistry)(nil).RefreshAuth)) 113 } 114 115 // ShouldRefreshAuth mocks base method. 116 func (m *MockRegistry) ShouldRefreshAuth() (bool, time.Duration) { 117 m.ctrl.T.Helper() 118 ret := m.ctrl.Call(m, "ShouldRefreshAuth") 119 ret0, _ := ret[0].(bool) 120 ret1, _ := ret[1].(time.Duration) 121 return ret0, ret1 122 } 123 124 // ShouldRefreshAuth indicates an expected call of ShouldRefreshAuth. 125 func (mr *MockRegistryMockRecorder) ShouldRefreshAuth() *gomock.Call { 126 mr.mock.ctrl.T.Helper() 127 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ShouldRefreshAuth", reflect.TypeOf((*MockRegistry)(nil).ShouldRefreshAuth)) 128 } 129 130 // String mocks base method. 131 func (m *MockRegistry) String() string { 132 m.ctrl.T.Helper() 133 ret := m.ctrl.Call(m, "String") 134 ret0, _ := ret[0].(string) 135 return ret0 136 } 137 138 // String indicates an expected call of String. 139 func (mr *MockRegistryMockRecorder) String() *gomock.Call { 140 mr.mock.ctrl.T.Helper() 141 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "String", reflect.TypeOf((*MockRegistry)(nil).String)) 142 } 143 144 // Tags mocks base method. 145 func (m *MockRegistry) Tags(arg0 string) (tools.Versions, error) { 146 m.ctrl.T.Helper() 147 ret := m.ctrl.Call(m, "Tags", arg0) 148 ret0, _ := ret[0].(tools.Versions) 149 ret1, _ := ret[1].(error) 150 return ret0, ret1 151 } 152 153 // Tags indicates an expected call of Tags. 154 func (mr *MockRegistryMockRecorder) Tags(arg0 any) *gomock.Call { 155 mr.mock.ctrl.T.Helper() 156 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Tags", reflect.TypeOf((*MockRegistry)(nil).Tags), arg0) 157 }