Documentation
¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockRegistry
- func (m *MockRegistry) Close() error
- func (m *MockRegistry) EXPECT() *MockRegistryMockRecorder
- func (m *MockRegistry) GetArchitectures(arg0, arg1 string) ([]string, error)
- func (m *MockRegistry) ImageRepoDetails() docker.ImageRepoDetails
- func (m *MockRegistry) Ping() error
- func (m *MockRegistry) RefreshAuth() error
- func (m *MockRegistry) ShouldRefreshAuth() (bool, time.Duration)
- func (m *MockRegistry) String() string
- func (m *MockRegistry) Tags(arg0 string) (tools.Versions, error)
- type MockRegistryCloseCall
- type MockRegistryGetArchitecturesCall
- func (c *MockRegistryGetArchitecturesCall) Do(f func(string, string) ([]string, error)) *MockRegistryGetArchitecturesCall
- func (c *MockRegistryGetArchitecturesCall) DoAndReturn(f func(string, string) ([]string, error)) *MockRegistryGetArchitecturesCall
- func (c *MockRegistryGetArchitecturesCall) Return(arg0 []string, arg1 error) *MockRegistryGetArchitecturesCall
- type MockRegistryImageRepoDetailsCall
- func (c *MockRegistryImageRepoDetailsCall) Do(f func() docker.ImageRepoDetails) *MockRegistryImageRepoDetailsCall
- func (c *MockRegistryImageRepoDetailsCall) DoAndReturn(f func() docker.ImageRepoDetails) *MockRegistryImageRepoDetailsCall
- func (c *MockRegistryImageRepoDetailsCall) Return(arg0 docker.ImageRepoDetails) *MockRegistryImageRepoDetailsCall
- type MockRegistryMockRecorder
- func (mr *MockRegistryMockRecorder) Close() *MockRegistryCloseCall
- func (mr *MockRegistryMockRecorder) GetArchitectures(arg0, arg1 any) *MockRegistryGetArchitecturesCall
- func (mr *MockRegistryMockRecorder) ImageRepoDetails() *MockRegistryImageRepoDetailsCall
- func (mr *MockRegistryMockRecorder) Ping() *MockRegistryPingCall
- func (mr *MockRegistryMockRecorder) RefreshAuth() *MockRegistryRefreshAuthCall
- func (mr *MockRegistryMockRecorder) ShouldRefreshAuth() *MockRegistryShouldRefreshAuthCall
- func (mr *MockRegistryMockRecorder) String() *MockRegistryStringCall
- func (mr *MockRegistryMockRecorder) Tags(arg0 any) *MockRegistryTagsCall
- type MockRegistryPingCall
- type MockRegistryRefreshAuthCall
- type MockRegistryShouldRefreshAuthCall
- func (c *MockRegistryShouldRefreshAuthCall) Do(f func() (bool, time.Duration)) *MockRegistryShouldRefreshAuthCall
- func (c *MockRegistryShouldRefreshAuthCall) DoAndReturn(f func() (bool, time.Duration)) *MockRegistryShouldRefreshAuthCall
- func (c *MockRegistryShouldRefreshAuthCall) Return(arg0 bool, arg1 time.Duration) *MockRegistryShouldRefreshAuthCall
- type MockRegistryStringCall
- type MockRegistryTagsCall
- type MockRoundTripper
- type MockRoundTripperMockRecorder
- type MockRoundTripperRoundTripCall
- func (c *MockRoundTripperRoundTripCall) Do(f func(*http.Request) (*http.Response, error)) *MockRoundTripperRoundTripCall
- func (c *MockRoundTripperRoundTripCall) DoAndReturn(f func(*http.Request) (*http.Response, error)) *MockRoundTripperRoundTripCall
- func (c *MockRoundTripperRoundTripCall) Return(arg0 *http.Response, arg1 error) *MockRoundTripperRoundTripCall
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockRegistry ¶
type MockRegistry struct {
// contains filtered or unexported fields
}
MockRegistry is a mock of Registry interface.
func NewMockRegistry ¶
func NewMockRegistry(ctrl *gomock.Controller) *MockRegistry
NewMockRegistry creates a new mock instance.
func (*MockRegistry) EXPECT ¶
func (m *MockRegistry) EXPECT() *MockRegistryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRegistry) GetArchitectures ¶
func (m *MockRegistry) GetArchitectures(arg0, arg1 string) ([]string, error)
GetArchitectures mocks base method.
func (*MockRegistry) ImageRepoDetails ¶
func (m *MockRegistry) ImageRepoDetails() docker.ImageRepoDetails
ImageRepoDetails mocks base method.
func (*MockRegistry) RefreshAuth ¶
func (m *MockRegistry) RefreshAuth() error
RefreshAuth mocks base method.
func (*MockRegistry) ShouldRefreshAuth ¶
func (m *MockRegistry) ShouldRefreshAuth() (bool, time.Duration)
ShouldRefreshAuth mocks base method.
type MockRegistryCloseCall ¶
MockRegistryCloseCall wrap *gomock.Call
func (*MockRegistryCloseCall) Do ¶
func (c *MockRegistryCloseCall) Do(f func() error) *MockRegistryCloseCall
Do rewrite *gomock.Call.Do
func (*MockRegistryCloseCall) DoAndReturn ¶
func (c *MockRegistryCloseCall) DoAndReturn(f func() error) *MockRegistryCloseCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockRegistryCloseCall) Return ¶
func (c *MockRegistryCloseCall) Return(arg0 error) *MockRegistryCloseCall
Return rewrite *gomock.Call.Return
type MockRegistryGetArchitecturesCall ¶
MockRegistryGetArchitecturesCall wrap *gomock.Call
func (*MockRegistryGetArchitecturesCall) Do ¶
func (c *MockRegistryGetArchitecturesCall) Do(f func(string, string) ([]string, error)) *MockRegistryGetArchitecturesCall
Do rewrite *gomock.Call.Do
func (*MockRegistryGetArchitecturesCall) DoAndReturn ¶
func (c *MockRegistryGetArchitecturesCall) DoAndReturn(f func(string, string) ([]string, error)) *MockRegistryGetArchitecturesCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockRegistryGetArchitecturesCall) Return ¶
func (c *MockRegistryGetArchitecturesCall) Return(arg0 []string, arg1 error) *MockRegistryGetArchitecturesCall
Return rewrite *gomock.Call.Return
type MockRegistryImageRepoDetailsCall ¶
MockRegistryImageRepoDetailsCall wrap *gomock.Call
func (*MockRegistryImageRepoDetailsCall) Do ¶
func (c *MockRegistryImageRepoDetailsCall) Do(f func() docker.ImageRepoDetails) *MockRegistryImageRepoDetailsCall
Do rewrite *gomock.Call.Do
func (*MockRegistryImageRepoDetailsCall) DoAndReturn ¶
func (c *MockRegistryImageRepoDetailsCall) DoAndReturn(f func() docker.ImageRepoDetails) *MockRegistryImageRepoDetailsCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockRegistryImageRepoDetailsCall) Return ¶
func (c *MockRegistryImageRepoDetailsCall) Return(arg0 docker.ImageRepoDetails) *MockRegistryImageRepoDetailsCall
Return rewrite *gomock.Call.Return
type MockRegistryMockRecorder ¶
type MockRegistryMockRecorder struct {
// contains filtered or unexported fields
}
MockRegistryMockRecorder is the mock recorder for MockRegistry.
func (*MockRegistryMockRecorder) Close ¶
func (mr *MockRegistryMockRecorder) Close() *MockRegistryCloseCall
Close indicates an expected call of Close.
func (*MockRegistryMockRecorder) GetArchitectures ¶
func (mr *MockRegistryMockRecorder) GetArchitectures(arg0, arg1 any) *MockRegistryGetArchitecturesCall
GetArchitectures indicates an expected call of GetArchitectures.
func (*MockRegistryMockRecorder) ImageRepoDetails ¶
func (mr *MockRegistryMockRecorder) ImageRepoDetails() *MockRegistryImageRepoDetailsCall
ImageRepoDetails indicates an expected call of ImageRepoDetails.
func (*MockRegistryMockRecorder) Ping ¶
func (mr *MockRegistryMockRecorder) Ping() *MockRegistryPingCall
Ping indicates an expected call of Ping.
func (*MockRegistryMockRecorder) RefreshAuth ¶
func (mr *MockRegistryMockRecorder) RefreshAuth() *MockRegistryRefreshAuthCall
RefreshAuth indicates an expected call of RefreshAuth.
func (*MockRegistryMockRecorder) ShouldRefreshAuth ¶
func (mr *MockRegistryMockRecorder) ShouldRefreshAuth() *MockRegistryShouldRefreshAuthCall
ShouldRefreshAuth indicates an expected call of ShouldRefreshAuth.
func (*MockRegistryMockRecorder) String ¶
func (mr *MockRegistryMockRecorder) String() *MockRegistryStringCall
String indicates an expected call of String.
func (*MockRegistryMockRecorder) Tags ¶
func (mr *MockRegistryMockRecorder) Tags(arg0 any) *MockRegistryTagsCall
Tags indicates an expected call of Tags.
type MockRegistryPingCall ¶
MockRegistryPingCall wrap *gomock.Call
func (*MockRegistryPingCall) Do ¶
func (c *MockRegistryPingCall) Do(f func() error) *MockRegistryPingCall
Do rewrite *gomock.Call.Do
func (*MockRegistryPingCall) DoAndReturn ¶
func (c *MockRegistryPingCall) DoAndReturn(f func() error) *MockRegistryPingCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockRegistryPingCall) Return ¶
func (c *MockRegistryPingCall) Return(arg0 error) *MockRegistryPingCall
Return rewrite *gomock.Call.Return
type MockRegistryRefreshAuthCall ¶
MockRegistryRefreshAuthCall wrap *gomock.Call
func (*MockRegistryRefreshAuthCall) Do ¶
func (c *MockRegistryRefreshAuthCall) Do(f func() error) *MockRegistryRefreshAuthCall
Do rewrite *gomock.Call.Do
func (*MockRegistryRefreshAuthCall) DoAndReturn ¶
func (c *MockRegistryRefreshAuthCall) DoAndReturn(f func() error) *MockRegistryRefreshAuthCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockRegistryRefreshAuthCall) Return ¶
func (c *MockRegistryRefreshAuthCall) Return(arg0 error) *MockRegistryRefreshAuthCall
Return rewrite *gomock.Call.Return
type MockRegistryShouldRefreshAuthCall ¶
MockRegistryShouldRefreshAuthCall wrap *gomock.Call
func (*MockRegistryShouldRefreshAuthCall) Do ¶
func (c *MockRegistryShouldRefreshAuthCall) Do(f func() (bool, time.Duration)) *MockRegistryShouldRefreshAuthCall
Do rewrite *gomock.Call.Do
func (*MockRegistryShouldRefreshAuthCall) DoAndReturn ¶
func (c *MockRegistryShouldRefreshAuthCall) DoAndReturn(f func() (bool, time.Duration)) *MockRegistryShouldRefreshAuthCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockRegistryShouldRefreshAuthCall) Return ¶
func (c *MockRegistryShouldRefreshAuthCall) Return(arg0 bool, arg1 time.Duration) *MockRegistryShouldRefreshAuthCall
Return rewrite *gomock.Call.Return
type MockRegistryStringCall ¶
MockRegistryStringCall wrap *gomock.Call
func (*MockRegistryStringCall) Do ¶
func (c *MockRegistryStringCall) Do(f func() string) *MockRegistryStringCall
Do rewrite *gomock.Call.Do
func (*MockRegistryStringCall) DoAndReturn ¶
func (c *MockRegistryStringCall) DoAndReturn(f func() string) *MockRegistryStringCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockRegistryStringCall) Return ¶
func (c *MockRegistryStringCall) Return(arg0 string) *MockRegistryStringCall
Return rewrite *gomock.Call.Return
type MockRegistryTagsCall ¶
MockRegistryTagsCall wrap *gomock.Call
func (*MockRegistryTagsCall) Do ¶
func (c *MockRegistryTagsCall) Do(f func(string) (tools.Versions, error)) *MockRegistryTagsCall
Do rewrite *gomock.Call.Do
func (*MockRegistryTagsCall) DoAndReturn ¶
func (c *MockRegistryTagsCall) DoAndReturn(f func(string) (tools.Versions, error)) *MockRegistryTagsCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockRegistryTagsCall) Return ¶
func (c *MockRegistryTagsCall) Return(arg0 tools.Versions, arg1 error) *MockRegistryTagsCall
Return rewrite *gomock.Call.Return
type MockRoundTripper ¶
type MockRoundTripper struct {
// contains filtered or unexported fields
}
MockRoundTripper is a mock of RoundTripper interface.
func NewMockRoundTripper ¶
func NewMockRoundTripper(ctrl *gomock.Controller) *MockRoundTripper
NewMockRoundTripper creates a new mock instance.
func (*MockRoundTripper) EXPECT ¶
func (m *MockRoundTripper) EXPECT() *MockRoundTripperMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockRoundTripperMockRecorder ¶
type MockRoundTripperMockRecorder struct {
// contains filtered or unexported fields
}
MockRoundTripperMockRecorder is the mock recorder for MockRoundTripper.
func (*MockRoundTripperMockRecorder) RoundTrip ¶
func (mr *MockRoundTripperMockRecorder) RoundTrip(arg0 any) *MockRoundTripperRoundTripCall
RoundTrip indicates an expected call of RoundTrip.
type MockRoundTripperRoundTripCall ¶
MockRoundTripperRoundTripCall wrap *gomock.Call
func (*MockRoundTripperRoundTripCall) Do ¶
func (c *MockRoundTripperRoundTripCall) Do(f func(*http.Request) (*http.Response, error)) *MockRoundTripperRoundTripCall
Do rewrite *gomock.Call.Do
func (*MockRoundTripperRoundTripCall) DoAndReturn ¶
func (c *MockRoundTripperRoundTripCall) DoAndReturn(f func(*http.Request) (*http.Response, error)) *MockRoundTripperRoundTripCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockRoundTripperRoundTripCall) Return ¶
func (c *MockRoundTripperRoundTripCall) Return(arg0 *http.Response, arg1 error) *MockRoundTripperRoundTripCall
Return rewrite *gomock.Call.Return