mocks

package
v0.0.0-...-a959b0e Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppProject

type AppProject struct {
	mock.Mock
}

AppProject is an autogenerated mock type for the AppProject type

func NewAppProject

func NewAppProject(t interface {
	mock.TestingT
	Cleanup(func())
}) *AppProject

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

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

func (*AppProject) Delete

func (_m *AppProject) Delete(ctx context.Context, name string, namespace string, deletionPropagation *backend.DeletionPropagation) error

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

func (*AppProject) EXPECT

func (_m *AppProject) EXPECT() *AppProject_Expecter

func (*AppProject) EnsureSynced

func (_m *AppProject) EnsureSynced(duration time.Duration) error

EnsureSynced provides a mock function with given fields: duration

func (*AppProject) Get

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

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

func (*AppProject) List

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

func (*AppProject) Patch

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

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

func (*AppProject) StartInformer

func (_m *AppProject) StartInformer(ctx context.Context) error

StartInformer provides a mock function with given fields: ctx

func (*AppProject) SupportsPatch

func (_m *AppProject) SupportsPatch() bool

SupportsPatch provides a mock function with given fields:

func (*AppProject) Update

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

type AppProject_Create_Call

type AppProject_Create_Call struct {
	*mock.Call
}

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

func (*AppProject_Create_Call) Return

func (*AppProject_Create_Call) Run

func (*AppProject_Create_Call) RunAndReturn

type AppProject_Delete_Call

type AppProject_Delete_Call struct {
	*mock.Call
}

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

func (*AppProject_Delete_Call) Return

func (*AppProject_Delete_Call) Run

func (_c *AppProject_Delete_Call) Run(run func(ctx context.Context, name string, namespace string, deletionPropagation *backend.DeletionPropagation)) *AppProject_Delete_Call

func (*AppProject_Delete_Call) RunAndReturn

type AppProject_EnsureSynced_Call

type AppProject_EnsureSynced_Call struct {
	*mock.Call
}

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

func (*AppProject_EnsureSynced_Call) Return

func (*AppProject_EnsureSynced_Call) Run

func (*AppProject_EnsureSynced_Call) RunAndReturn

type AppProject_Expecter

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

func (*AppProject_Expecter) Create

func (_e *AppProject_Expecter) Create(ctx interface{}, app interface{}) *AppProject_Create_Call

Create is a helper method to define mock.On call

  • ctx context.Context
  • app *v1alpha1.AppProject

func (*AppProject_Expecter) Delete

func (_e *AppProject_Expecter) Delete(ctx interface{}, name interface{}, namespace interface{}, deletionPropagation interface{}) *AppProject_Delete_Call

Delete is a helper method to define mock.On call

  • ctx context.Context
  • name string
  • namespace string
  • deletionPropagation *backend.DeletionPropagation

func (*AppProject_Expecter) EnsureSynced

func (_e *AppProject_Expecter) EnsureSynced(duration interface{}) *AppProject_EnsureSynced_Call

EnsureSynced is a helper method to define mock.On call

  • duration time.Duration

func (*AppProject_Expecter) Get

func (_e *AppProject_Expecter) Get(ctx interface{}, name interface{}, namespace interface{}) *AppProject_Get_Call

Get is a helper method to define mock.On call

  • ctx context.Context
  • name string
  • namespace string

func (*AppProject_Expecter) List

func (_e *AppProject_Expecter) List(ctx interface{}, selector interface{}) *AppProject_List_Call

List is a helper method to define mock.On call

  • ctx context.Context
  • selector backend.AppProjectSelector

func (*AppProject_Expecter) Patch

func (_e *AppProject_Expecter) Patch(ctx interface{}, name interface{}, namespace interface{}, patch interface{}) *AppProject_Patch_Call

Patch is a helper method to define mock.On call

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

func (*AppProject_Expecter) StartInformer

func (_e *AppProject_Expecter) StartInformer(ctx interface{}) *AppProject_StartInformer_Call

StartInformer is a helper method to define mock.On call

  • ctx context.Context

func (*AppProject_Expecter) SupportsPatch

SupportsPatch is a helper method to define mock.On call

func (*AppProject_Expecter) Update

func (_e *AppProject_Expecter) Update(ctx interface{}, app interface{}) *AppProject_Update_Call

Update is a helper method to define mock.On call

  • ctx context.Context
  • app *v1alpha1.AppProject

type AppProject_Get_Call

type AppProject_Get_Call struct {
	*mock.Call
}

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

func (*AppProject_Get_Call) Return

func (*AppProject_Get_Call) Run

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

func (*AppProject_Get_Call) RunAndReturn

type AppProject_List_Call

type AppProject_List_Call struct {
	*mock.Call
}

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

func (*AppProject_List_Call) Return

func (*AppProject_List_Call) Run

func (*AppProject_List_Call) RunAndReturn

type AppProject_Patch_Call

type AppProject_Patch_Call struct {
	*mock.Call
}

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

func (*AppProject_Patch_Call) Return

func (*AppProject_Patch_Call) Run

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

func (*AppProject_Patch_Call) RunAndReturn

type AppProject_StartInformer_Call

type AppProject_StartInformer_Call struct {
	*mock.Call
}

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

func (*AppProject_StartInformer_Call) Return

func (*AppProject_StartInformer_Call) Run

func (*AppProject_StartInformer_Call) RunAndReturn

type AppProject_SupportsPatch_Call

type AppProject_SupportsPatch_Call struct {
	*mock.Call
}

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

func (*AppProject_SupportsPatch_Call) Return

func (*AppProject_SupportsPatch_Call) Run

func (*AppProject_SupportsPatch_Call) RunAndReturn

type AppProject_Update_Call

type AppProject_Update_Call struct {
	*mock.Call
}

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

func (*AppProject_Update_Call) Return

func (*AppProject_Update_Call) Run

func (*AppProject_Update_Call) RunAndReturn

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, deletionPropagation *backend.DeletionPropagation) error

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

func (*Application) EXPECT

func (_m *Application) EXPECT() *Application_Expecter

func (*Application) EnsureSynced

func (_m *Application) EnsureSynced(duration time.Duration) error

EnsureSynced provides a mock function with given fields: duration

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) error

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, deletionPropagation *backend.DeletionPropagation)) *Application_Delete_Call

func (*Application_Delete_Call) RunAndReturn

type Application_EnsureSynced_Call

type Application_EnsureSynced_Call struct {
	*mock.Call
}

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

func (*Application_EnsureSynced_Call) Return

func (*Application_EnsureSynced_Call) Run

func (*Application_EnsureSynced_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{}, deletionPropagation interface{}) *Application_Delete_Call

Delete is a helper method to define mock.On call

  • ctx context.Context
  • name string
  • namespace string
  • deletionPropagation *backend.DeletionPropagation

func (*Application_Expecter) EnsureSynced

func (_e *Application_Expecter) EnsureSynced(duration interface{}) *Application_EnsureSynced_Call

EnsureSynced is a helper method to define mock.On call

  • duration time.Duration

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