mocks

package
v0.0.0-...-65c2b02 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 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 Application

type Application struct {
	mock.Mock
}

Application is an autogenerated mock type for the Application type

func NewApplication

func NewApplication(t interface {
	mock.TestingT
	Cleanup(func())
}) *Application

NewApplication creates a new instance of Application. 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 (*Application) Create

Create provides a mock function with given fields: ctx, app

func (*Application) Delete

func (_m *Application) Delete(ctx context.Context, name string, namespace string) error

Delete provides a mock function with given fields: ctx, name, namespace

func (*Application) EXPECT

func (_m *Application) EXPECT() *Application_Expecter

func (*Application) Get

func (_m *Application) Get(ctx context.Context, name string, namespace string) (*v1alpha1.Application, error)

Get provides a mock function with given fields: ctx, name, namespace

func (*Application) List

List provides a mock function with given fields: ctx, selector

func (*Application) Patch

func (_m *Application) Patch(ctx context.Context, name string, namespace string, patch []byte) (*v1alpha1.Application, error)

Patch provides a mock function with given fields: ctx, name, namespace, patch

func (*Application) StartInformer

func (_m *Application) StartInformer(ctx context.Context)

StartInformer provides a mock function with given fields: ctx

func (*Application) SupportsPatch

func (_m *Application) SupportsPatch() bool

SupportsPatch provides a mock function with given fields:

func (*Application) Update

Update provides a mock function with given fields: ctx, app

type Application_Create_Call

type Application_Create_Call struct {
	*mock.Call
}

Application_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'

func (*Application_Create_Call) Return

func (*Application_Create_Call) Run

func (*Application_Create_Call) RunAndReturn

type Application_Delete_Call

type Application_Delete_Call struct {
	*mock.Call
}

Application_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'

func (*Application_Delete_Call) Return

func (*Application_Delete_Call) Run

func (_c *Application_Delete_Call) Run(run func(ctx context.Context, name string, namespace string)) *Application_Delete_Call

func (*Application_Delete_Call) RunAndReturn

type Application_Expecter

type Application_Expecter struct {
	// contains filtered or unexported fields
}

func (*Application_Expecter) Create

func (_e *Application_Expecter) Create(ctx interface{}, app interface{}) *Application_Create_Call

Create is a helper method to define mock.On call

  • ctx context.Context
  • app *v1alpha1.Application

func (*Application_Expecter) Delete

func (_e *Application_Expecter) Delete(ctx interface{}, name interface{}, namespace interface{}) *Application_Delete_Call

Delete is a helper method to define mock.On call

  • ctx context.Context
  • name string
  • namespace string

func (*Application_Expecter) Get

func (_e *Application_Expecter) Get(ctx interface{}, name interface{}, namespace interface{}) *Application_Get_Call

Get is a helper method to define mock.On call

  • ctx context.Context
  • name string
  • namespace string

func (*Application_Expecter) List

func (_e *Application_Expecter) List(ctx interface{}, selector interface{}) *Application_List_Call

List is a helper method to define mock.On call

  • ctx context.Context
  • selector backend.ApplicationSelector

func (*Application_Expecter) Patch

func (_e *Application_Expecter) Patch(ctx interface{}, name interface{}, namespace interface{}, patch interface{}) *Application_Patch_Call

Patch is a helper method to define mock.On call

  • ctx context.Context
  • name string
  • namespace string
  • patch []byte

func (*Application_Expecter) StartInformer

func (_e *Application_Expecter) StartInformer(ctx interface{}) *Application_StartInformer_Call

StartInformer is a helper method to define mock.On call

  • ctx context.Context

func (*Application_Expecter) SupportsPatch

SupportsPatch is a helper method to define mock.On call

func (*Application_Expecter) Update

func (_e *Application_Expecter) Update(ctx interface{}, app interface{}) *Application_Update_Call

Update is a helper method to define mock.On call

  • ctx context.Context
  • app *v1alpha1.Application

type Application_Get_Call

type Application_Get_Call struct {
	*mock.Call
}

Application_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'

func (*Application_Get_Call) Return

func (*Application_Get_Call) Run

func (_c *Application_Get_Call) Run(run func(ctx context.Context, name string, namespace string)) *Application_Get_Call

func (*Application_Get_Call) RunAndReturn

type Application_List_Call

type Application_List_Call struct {
	*mock.Call
}

Application_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'

func (*Application_List_Call) Return

func (*Application_List_Call) Run

func (*Application_List_Call) RunAndReturn

type Application_Patch_Call

type Application_Patch_Call struct {
	*mock.Call
}

Application_Patch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Patch'

func (*Application_Patch_Call) Return

func (*Application_Patch_Call) Run

func (_c *Application_Patch_Call) Run(run func(ctx context.Context, name string, namespace string, patch []byte)) *Application_Patch_Call

func (*Application_Patch_Call) RunAndReturn

type Application_StartInformer_Call

type Application_StartInformer_Call struct {
	*mock.Call
}

Application_StartInformer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StartInformer'

func (*Application_StartInformer_Call) Return

func (*Application_StartInformer_Call) Run

func (*Application_StartInformer_Call) RunAndReturn

type Application_SupportsPatch_Call

type Application_SupportsPatch_Call struct {
	*mock.Call
}

Application_SupportsPatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SupportsPatch'

func (*Application_SupportsPatch_Call) Return

func (*Application_SupportsPatch_Call) Run

func (*Application_SupportsPatch_Call) RunAndReturn

type Application_Update_Call

type Application_Update_Call struct {
	*mock.Call
}

Application_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'

func (*Application_Update_Call) Return

func (*Application_Update_Call) Run

func (*Application_Update_Call) RunAndReturn

Jump to

Keyboard shortcuts

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