mocks

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 24, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ImageGetter

type ImageGetter struct {
	mock.Mock
}

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

func (_m *ImageGetter) PullImageInfo(ctx context.Context, imageName string) (*v1.Image, error)

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

type ImageGetter_GetImageVersion_Call struct {
	*mock.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 (*ImageGetter_GetImageVersion_Call) Run

func (*ImageGetter_GetImageVersion_Call) RunAndReturn

type ImageGetter_PullImageInfo_Call

type ImageGetter_PullImageInfo_Call struct {
	*mock.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 (*ImageGetter_PullImageInfo_Call) Run

func (*ImageGetter_PullImageInfo_Call) RunAndReturn

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL