Documentation ¶
Index ¶
- type ImageGetter
- type ImageGetter_Expecter
- type ImageGetter_GetImageVersion_Call
- func (_c *ImageGetter_GetImageVersion_Call) Return(_a0 registry.ImageVersion, _a1 error) *ImageGetter_GetImageVersion_Call
- func (_c *ImageGetter_GetImageVersion_Call) Run(run func(ctx context.Context, imageName string)) *ImageGetter_GetImageVersion_Call
- func (_c *ImageGetter_GetImageVersion_Call) RunAndReturn(run func(context.Context, string) (registry.ImageVersion, error)) *ImageGetter_GetImageVersion_Call
- type ImageGetter_PullImageInfo_Call
- func (_c *ImageGetter_PullImageInfo_Call) Return(_a0 *v1.Image, _a1 error) *ImageGetter_PullImageInfo_Call
- func (_c *ImageGetter_PullImageInfo_Call) Run(run func(ctx context.Context, imageName string)) *ImageGetter_PullImageInfo_Call
- func (_c *ImageGetter_PullImageInfo_Call) RunAndReturn(run func(context.Context, string) (*v1.Image, error)) *ImageGetter_PullImageInfo_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ImageGetter ¶
ImageGetter is an autogenerated mock type for the ImageGetter type
func NewImageGetter ¶
func NewImageGetter(t interface { mock.TestingT Cleanup(func()) }) *ImageGetter
NewImageGetter creates a new instance of ImageGetter. 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 (*ImageGetter) EXPECT ¶
func (_m *ImageGetter) EXPECT() *ImageGetter_Expecter
func (*ImageGetter) GetImageVersion ¶
func (_m *ImageGetter) GetImageVersion(ctx context.Context, imageName string) (registry.ImageVersion, error)
GetImageVersion provides a mock function with given fields: ctx, imageName
func (*ImageGetter) PullImageInfo ¶
PullImageInfo provides a mock function with given fields: ctx, imageName
type ImageGetter_Expecter ¶
type ImageGetter_Expecter struct {
// contains filtered or unexported fields
}
func (*ImageGetter_Expecter) GetImageVersion ¶
func (_e *ImageGetter_Expecter) GetImageVersion(ctx interface{}, imageName interface{}) *ImageGetter_GetImageVersion_Call
GetImageVersion is a helper method to define mock.On call
- ctx context.Context
- imageName string
func (*ImageGetter_Expecter) PullImageInfo ¶
func (_e *ImageGetter_Expecter) PullImageInfo(ctx interface{}, imageName interface{}) *ImageGetter_PullImageInfo_Call
PullImageInfo is a helper method to define mock.On call
- ctx context.Context
- imageName string
type ImageGetter_GetImageVersion_Call ¶
ImageGetter_GetImageVersion_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetImageVersion'
func (*ImageGetter_GetImageVersion_Call) Return ¶
func (_c *ImageGetter_GetImageVersion_Call) Return(_a0 registry.ImageVersion, _a1 error) *ImageGetter_GetImageVersion_Call
func (*ImageGetter_GetImageVersion_Call) Run ¶
func (_c *ImageGetter_GetImageVersion_Call) Run(run func(ctx context.Context, imageName string)) *ImageGetter_GetImageVersion_Call
func (*ImageGetter_GetImageVersion_Call) RunAndReturn ¶
func (_c *ImageGetter_GetImageVersion_Call) RunAndReturn(run func(context.Context, string) (registry.ImageVersion, error)) *ImageGetter_GetImageVersion_Call
type ImageGetter_PullImageInfo_Call ¶
ImageGetter_PullImageInfo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PullImageInfo'
func (*ImageGetter_PullImageInfo_Call) Return ¶
func (_c *ImageGetter_PullImageInfo_Call) Return(_a0 *v1.Image, _a1 error) *ImageGetter_PullImageInfo_Call
func (*ImageGetter_PullImageInfo_Call) Run ¶
func (_c *ImageGetter_PullImageInfo_Call) Run(run func(ctx context.Context, imageName string)) *ImageGetter_PullImageInfo_Call
func (*ImageGetter_PullImageInfo_Call) RunAndReturn ¶
func (_c *ImageGetter_PullImageInfo_Call) RunAndReturn(run func(context.Context, string) (*v1.Image, error)) *ImageGetter_PullImageInfo_Call