Documentation ¶
Index ¶
- type Application
- func (_m *Application) Create(ctx context.Context, app *v1alpha1.Application) (*v1alpha1.Application, error)
- func (_m *Application) Delete(ctx context.Context, name string, namespace string) error
- func (_m *Application) EXPECT() *Application_Expecter
- func (_m *Application) Get(ctx context.Context, name string, namespace string) (*v1alpha1.Application, error)
- func (_m *Application) List(ctx context.Context, selector backend.ApplicationSelector) ([]v1alpha1.Application, error)
- func (_m *Application) Patch(ctx context.Context, name string, namespace string, patch []byte) (*v1alpha1.Application, error)
- func (_m *Application) StartInformer(ctx context.Context)
- func (_m *Application) SupportsPatch() bool
- func (_m *Application) Update(ctx context.Context, app *v1alpha1.Application) (*v1alpha1.Application, error)
- type Application_Create_Call
- func (_c *Application_Create_Call) Return(_a0 *v1alpha1.Application, _a1 error) *Application_Create_Call
- func (_c *Application_Create_Call) Run(run func(ctx context.Context, app *v1alpha1.Application)) *Application_Create_Call
- func (_c *Application_Create_Call) RunAndReturn(...) *Application_Create_Call
- type Application_Delete_Call
- func (_c *Application_Delete_Call) Return(_a0 error) *Application_Delete_Call
- func (_c *Application_Delete_Call) Run(run func(ctx context.Context, name string, namespace string)) *Application_Delete_Call
- func (_c *Application_Delete_Call) RunAndReturn(run func(context.Context, string, string) error) *Application_Delete_Call
- type Application_Expecter
- func (_e *Application_Expecter) Create(ctx interface{}, app interface{}) *Application_Create_Call
- func (_e *Application_Expecter) Delete(ctx interface{}, name interface{}, namespace interface{}) *Application_Delete_Call
- func (_e *Application_Expecter) Get(ctx interface{}, name interface{}, namespace interface{}) *Application_Get_Call
- func (_e *Application_Expecter) List(ctx interface{}, selector interface{}) *Application_List_Call
- func (_e *Application_Expecter) Patch(ctx interface{}, name interface{}, namespace interface{}, patch interface{}) *Application_Patch_Call
- func (_e *Application_Expecter) StartInformer(ctx interface{}) *Application_StartInformer_Call
- func (_e *Application_Expecter) SupportsPatch() *Application_SupportsPatch_Call
- func (_e *Application_Expecter) Update(ctx interface{}, app interface{}) *Application_Update_Call
- type Application_Get_Call
- func (_c *Application_Get_Call) Return(_a0 *v1alpha1.Application, _a1 error) *Application_Get_Call
- func (_c *Application_Get_Call) Run(run func(ctx context.Context, name string, namespace string)) *Application_Get_Call
- func (_c *Application_Get_Call) RunAndReturn(run func(context.Context, string, string) (*v1alpha1.Application, error)) *Application_Get_Call
- type Application_List_Call
- func (_c *Application_List_Call) Return(_a0 []v1alpha1.Application, _a1 error) *Application_List_Call
- func (_c *Application_List_Call) Run(run func(ctx context.Context, selector backend.ApplicationSelector)) *Application_List_Call
- func (_c *Application_List_Call) RunAndReturn(...) *Application_List_Call
- type Application_Patch_Call
- func (_c *Application_Patch_Call) Return(_a0 *v1alpha1.Application, _a1 error) *Application_Patch_Call
- func (_c *Application_Patch_Call) Run(run func(ctx context.Context, name string, namespace string, patch []byte)) *Application_Patch_Call
- func (_c *Application_Patch_Call) RunAndReturn(...) *Application_Patch_Call
- type Application_StartInformer_Call
- func (_c *Application_StartInformer_Call) Return() *Application_StartInformer_Call
- func (_c *Application_StartInformer_Call) Run(run func(ctx context.Context)) *Application_StartInformer_Call
- func (_c *Application_StartInformer_Call) RunAndReturn(run func(context.Context)) *Application_StartInformer_Call
- type Application_SupportsPatch_Call
- type Application_Update_Call
- func (_c *Application_Update_Call) Return(_a0 *v1alpha1.Application, _a1 error) *Application_Update_Call
- func (_c *Application_Update_Call) Run(run func(ctx context.Context, app *v1alpha1.Application)) *Application_Update_Call
- func (_c *Application_Update_Call) RunAndReturn(...) *Application_Update_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶
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 ¶
func (_m *Application) Create(ctx context.Context, app *v1alpha1.Application) (*v1alpha1.Application, error)
Create provides a mock function with given fields: ctx, app
func (*Application) Delete ¶
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 ¶
func (_m *Application) List(ctx context.Context, selector backend.ApplicationSelector) ([]v1alpha1.Application, error)
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 ¶
func (_m *Application) Update(ctx context.Context, app *v1alpha1.Application) (*v1alpha1.Application, error)
Update provides a mock function with given fields: ctx, app
type Application_Create_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 (_c *Application_Create_Call) Return(_a0 *v1alpha1.Application, _a1 error) *Application_Create_Call
func (*Application_Create_Call) Run ¶
func (_c *Application_Create_Call) Run(run func(ctx context.Context, app *v1alpha1.Application)) *Application_Create_Call
func (*Application_Create_Call) RunAndReturn ¶
func (_c *Application_Create_Call) RunAndReturn(run func(context.Context, *v1alpha1.Application) (*v1alpha1.Application, error)) *Application_Create_Call
type Application_Delete_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 (_c *Application_Delete_Call) Return(_a0 error) *Application_Delete_Call
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 ¶
func (_c *Application_Delete_Call) RunAndReturn(run func(context.Context, string, string) error) *Application_Delete_Call
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 ¶
func (_e *Application_Expecter) SupportsPatch() *Application_SupportsPatch_Call
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 ¶
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 (_c *Application_Get_Call) Return(_a0 *v1alpha1.Application, _a1 error) *Application_Get_Call
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 ¶
func (_c *Application_Get_Call) RunAndReturn(run func(context.Context, string, string) (*v1alpha1.Application, error)) *Application_Get_Call
type Application_List_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 (_c *Application_List_Call) Return(_a0 []v1alpha1.Application, _a1 error) *Application_List_Call
func (*Application_List_Call) Run ¶
func (_c *Application_List_Call) Run(run func(ctx context.Context, selector backend.ApplicationSelector)) *Application_List_Call
func (*Application_List_Call) RunAndReturn ¶
func (_c *Application_List_Call) RunAndReturn(run func(context.Context, backend.ApplicationSelector) ([]v1alpha1.Application, error)) *Application_List_Call
type Application_Patch_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 (_c *Application_Patch_Call) Return(_a0 *v1alpha1.Application, _a1 error) *Application_Patch_Call
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 ¶
func (_c *Application_Patch_Call) RunAndReturn(run func(context.Context, string, string, []byte) (*v1alpha1.Application, error)) *Application_Patch_Call
type Application_StartInformer_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 (_c *Application_StartInformer_Call) Return() *Application_StartInformer_Call
func (*Application_StartInformer_Call) Run ¶
func (_c *Application_StartInformer_Call) Run(run func(ctx context.Context)) *Application_StartInformer_Call
func (*Application_StartInformer_Call) RunAndReturn ¶
func (_c *Application_StartInformer_Call) RunAndReturn(run func(context.Context)) *Application_StartInformer_Call
type Application_SupportsPatch_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 (_c *Application_SupportsPatch_Call) Return(_a0 bool) *Application_SupportsPatch_Call
func (*Application_SupportsPatch_Call) Run ¶
func (_c *Application_SupportsPatch_Call) Run(run func()) *Application_SupportsPatch_Call
func (*Application_SupportsPatch_Call) RunAndReturn ¶
func (_c *Application_SupportsPatch_Call) RunAndReturn(run func() bool) *Application_SupportsPatch_Call
type Application_Update_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 (_c *Application_Update_Call) Return(_a0 *v1alpha1.Application, _a1 error) *Application_Update_Call
func (*Application_Update_Call) Run ¶
func (_c *Application_Update_Call) Run(run func(ctx context.Context, app *v1alpha1.Application)) *Application_Update_Call
func (*Application_Update_Call) RunAndReturn ¶
func (_c *Application_Update_Call) RunAndReturn(run func(context.Context, *v1alpha1.Application) (*v1alpha1.Application, error)) *Application_Update_Call