Documentation ¶
Index ¶
- type ResourceRewriter
- type ResourceRewriter_BeforeImport_Call
- func (_c *ResourceRewriter_BeforeImport_Call) Return(_a0 error) *ResourceRewriter_BeforeImport_Call
- func (_c *ResourceRewriter_BeforeImport_Call) Run(run func(u *unstructured.Unstructured)) *ResourceRewriter_BeforeImport_Call
- func (_c *ResourceRewriter_BeforeImport_Call) RunAndReturn(run func(*unstructured.Unstructured) error) *ResourceRewriter_BeforeImport_Call
- type ResourceRewriter_BeforeServing_Call
- func (_c *ResourceRewriter_BeforeServing_Call) Return(_a0 error) *ResourceRewriter_BeforeServing_Call
- func (_c *ResourceRewriter_BeforeServing_Call) Run(run func(u *unstructured.Unstructured)) *ResourceRewriter_BeforeServing_Call
- func (_c *ResourceRewriter_BeforeServing_Call) RunAndReturn(run func(*unstructured.Unstructured) error) *ResourceRewriter_BeforeServing_Call
- type ResourceRewriter_Expecter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ResourceRewriter ¶
ResourceRewriter is an autogenerated mock type for the ResourceRewriter type
func NewResourceRewriter ¶
func NewResourceRewriter(t mockConstructorTestingTNewResourceRewriter) *ResourceRewriter
NewResourceRewriter creates a new instance of ResourceRewriter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*ResourceRewriter) BeforeImport ¶
func (_m *ResourceRewriter) BeforeImport(u *unstructured.Unstructured) error
BeforeImport provides a mock function with given fields: u
func (*ResourceRewriter) BeforeServing ¶
func (_m *ResourceRewriter) BeforeServing(u *unstructured.Unstructured) error
BeforeServing provides a mock function with given fields: u
func (*ResourceRewriter) EXPECT ¶
func (_m *ResourceRewriter) EXPECT() *ResourceRewriter_Expecter
type ResourceRewriter_BeforeImport_Call ¶
ResourceRewriter_BeforeImport_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BeforeImport'
func (*ResourceRewriter_BeforeImport_Call) Return ¶
func (_c *ResourceRewriter_BeforeImport_Call) Return(_a0 error) *ResourceRewriter_BeforeImport_Call
func (*ResourceRewriter_BeforeImport_Call) Run ¶
func (_c *ResourceRewriter_BeforeImport_Call) Run(run func(u *unstructured.Unstructured)) *ResourceRewriter_BeforeImport_Call
func (*ResourceRewriter_BeforeImport_Call) RunAndReturn ¶
func (_c *ResourceRewriter_BeforeImport_Call) RunAndReturn(run func(*unstructured.Unstructured) error) *ResourceRewriter_BeforeImport_Call
type ResourceRewriter_BeforeServing_Call ¶
ResourceRewriter_BeforeServing_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BeforeServing'
func (*ResourceRewriter_BeforeServing_Call) Return ¶
func (_c *ResourceRewriter_BeforeServing_Call) Return(_a0 error) *ResourceRewriter_BeforeServing_Call
func (*ResourceRewriter_BeforeServing_Call) Run ¶
func (_c *ResourceRewriter_BeforeServing_Call) Run(run func(u *unstructured.Unstructured)) *ResourceRewriter_BeforeServing_Call
func (*ResourceRewriter_BeforeServing_Call) RunAndReturn ¶
func (_c *ResourceRewriter_BeforeServing_Call) RunAndReturn(run func(*unstructured.Unstructured) error) *ResourceRewriter_BeforeServing_Call
type ResourceRewriter_Expecter ¶
type ResourceRewriter_Expecter struct {
// contains filtered or unexported fields
}
func (*ResourceRewriter_Expecter) BeforeImport ¶
func (_e *ResourceRewriter_Expecter) BeforeImport(u interface{}) *ResourceRewriter_BeforeImport_Call
BeforeImport is a helper method to define mock.On call
- u *unstructured.Unstructured
func (*ResourceRewriter_Expecter) BeforeServing ¶
func (_e *ResourceRewriter_Expecter) BeforeServing(u interface{}) *ResourceRewriter_BeforeServing_Call
BeforeServing is a helper method to define mock.On call
- u *unstructured.Unstructured