Documentation
¶
Index ¶
- type KubectlOptionsRunner
- func (_mock *KubectlOptionsRunner) Apply(opts *apply.ApplyOptions) error
- func (_mock *KubectlOptionsRunner) AuthReconcile(opts *auth.ReconcileOptions) error
- func (_mock *KubectlOptionsRunner) Create(opts *create.CreateOptions, fact util.Factory, cmd *cobra.Command) error
- func (_m *KubectlOptionsRunner) EXPECT() *KubectlOptionsRunner_Expecter
- func (_mock *KubectlOptionsRunner) Replace(opts *replace.ReplaceOptions, fact util.Factory) error
- type KubectlOptionsRunner_Apply_Call
- func (_c *KubectlOptionsRunner_Apply_Call) Return(err error) *KubectlOptionsRunner_Apply_Call
- func (_c *KubectlOptionsRunner_Apply_Call) Run(run func(opts *apply.ApplyOptions)) *KubectlOptionsRunner_Apply_Call
- func (_c *KubectlOptionsRunner_Apply_Call) RunAndReturn(run func(opts *apply.ApplyOptions) error) *KubectlOptionsRunner_Apply_Call
- type KubectlOptionsRunner_AuthReconcile_Call
- func (_c *KubectlOptionsRunner_AuthReconcile_Call) Return(err error) *KubectlOptionsRunner_AuthReconcile_Call
- func (_c *KubectlOptionsRunner_AuthReconcile_Call) Run(run func(opts *auth.ReconcileOptions)) *KubectlOptionsRunner_AuthReconcile_Call
- func (_c *KubectlOptionsRunner_AuthReconcile_Call) RunAndReturn(run func(opts *auth.ReconcileOptions) error) *KubectlOptionsRunner_AuthReconcile_Call
- type KubectlOptionsRunner_Create_Call
- func (_c *KubectlOptionsRunner_Create_Call) Return(err error) *KubectlOptionsRunner_Create_Call
- func (_c *KubectlOptionsRunner_Create_Call) Run(run func(opts *create.CreateOptions, fact util.Factory, cmd *cobra.Command)) *KubectlOptionsRunner_Create_Call
- func (_c *KubectlOptionsRunner_Create_Call) RunAndReturn(...) *KubectlOptionsRunner_Create_Call
- type KubectlOptionsRunner_Expecter
- func (_e *KubectlOptionsRunner_Expecter) Apply(opts any) *KubectlOptionsRunner_Apply_Call
- func (_e *KubectlOptionsRunner_Expecter) AuthReconcile(opts any) *KubectlOptionsRunner_AuthReconcile_Call
- func (_e *KubectlOptionsRunner_Expecter) Create(opts any, fact any, cmd any) *KubectlOptionsRunner_Create_Call
- func (_e *KubectlOptionsRunner_Expecter) Replace(opts any, fact any) *KubectlOptionsRunner_Replace_Call
- type KubectlOptionsRunner_Replace_Call
- func (_c *KubectlOptionsRunner_Replace_Call) Return(err error) *KubectlOptionsRunner_Replace_Call
- func (_c *KubectlOptionsRunner_Replace_Call) Run(run func(opts *replace.ReplaceOptions, fact util.Factory)) *KubectlOptionsRunner_Replace_Call
- func (_c *KubectlOptionsRunner_Replace_Call) RunAndReturn(run func(opts *replace.ReplaceOptions, fact util.Factory) error) *KubectlOptionsRunner_Replace_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KubectlOptionsRunner ¶
KubectlOptionsRunner is an autogenerated mock type for the KubectlOptionsRunner type
func NewKubectlOptionsRunner ¶
func NewKubectlOptionsRunner(t interface {
mock.TestingT
Cleanup(func())
}) *KubectlOptionsRunner
NewKubectlOptionsRunner creates a new instance of KubectlOptionsRunner. 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 (*KubectlOptionsRunner) Apply ¶
func (_mock *KubectlOptionsRunner) Apply(opts *apply.ApplyOptions) error
Apply provides a mock function for the type KubectlOptionsRunner
func (*KubectlOptionsRunner) AuthReconcile ¶
func (_mock *KubectlOptionsRunner) AuthReconcile(opts *auth.ReconcileOptions) error
AuthReconcile provides a mock function for the type KubectlOptionsRunner
func (*KubectlOptionsRunner) Create ¶
func (_mock *KubectlOptionsRunner) Create(opts *create.CreateOptions, fact util.Factory, cmd *cobra.Command) error
Create provides a mock function for the type KubectlOptionsRunner
func (*KubectlOptionsRunner) EXPECT ¶
func (_m *KubectlOptionsRunner) EXPECT() *KubectlOptionsRunner_Expecter
func (*KubectlOptionsRunner) Replace ¶
func (_mock *KubectlOptionsRunner) Replace(opts *replace.ReplaceOptions, fact util.Factory) error
Replace provides a mock function for the type KubectlOptionsRunner
type KubectlOptionsRunner_Apply_Call ¶
KubectlOptionsRunner_Apply_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Apply'
func (*KubectlOptionsRunner_Apply_Call) Return ¶
func (_c *KubectlOptionsRunner_Apply_Call) Return(err error) *KubectlOptionsRunner_Apply_Call
func (*KubectlOptionsRunner_Apply_Call) Run ¶
func (_c *KubectlOptionsRunner_Apply_Call) Run(run func(opts *apply.ApplyOptions)) *KubectlOptionsRunner_Apply_Call
func (*KubectlOptionsRunner_Apply_Call) RunAndReturn ¶
func (_c *KubectlOptionsRunner_Apply_Call) RunAndReturn(run func(opts *apply.ApplyOptions) error) *KubectlOptionsRunner_Apply_Call
type KubectlOptionsRunner_AuthReconcile_Call ¶
KubectlOptionsRunner_AuthReconcile_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AuthReconcile'
func (*KubectlOptionsRunner_AuthReconcile_Call) Return ¶
func (_c *KubectlOptionsRunner_AuthReconcile_Call) Return(err error) *KubectlOptionsRunner_AuthReconcile_Call
func (*KubectlOptionsRunner_AuthReconcile_Call) Run ¶
func (_c *KubectlOptionsRunner_AuthReconcile_Call) Run(run func(opts *auth.ReconcileOptions)) *KubectlOptionsRunner_AuthReconcile_Call
func (*KubectlOptionsRunner_AuthReconcile_Call) RunAndReturn ¶
func (_c *KubectlOptionsRunner_AuthReconcile_Call) RunAndReturn(run func(opts *auth.ReconcileOptions) error) *KubectlOptionsRunner_AuthReconcile_Call
type KubectlOptionsRunner_Create_Call ¶
KubectlOptionsRunner_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*KubectlOptionsRunner_Create_Call) Return ¶
func (_c *KubectlOptionsRunner_Create_Call) Return(err error) *KubectlOptionsRunner_Create_Call
func (*KubectlOptionsRunner_Create_Call) Run ¶
func (_c *KubectlOptionsRunner_Create_Call) Run(run func(opts *create.CreateOptions, fact util.Factory, cmd *cobra.Command)) *KubectlOptionsRunner_Create_Call
func (*KubectlOptionsRunner_Create_Call) RunAndReturn ¶
func (_c *KubectlOptionsRunner_Create_Call) RunAndReturn(run func(opts *create.CreateOptions, fact util.Factory, cmd *cobra.Command) error) *KubectlOptionsRunner_Create_Call
type KubectlOptionsRunner_Expecter ¶
type KubectlOptionsRunner_Expecter struct {
// contains filtered or unexported fields
}
func (*KubectlOptionsRunner_Expecter) Apply ¶
func (_e *KubectlOptionsRunner_Expecter) Apply(opts any) *KubectlOptionsRunner_Apply_Call
Apply is a helper method to define mock.On call
- opts *apply.ApplyOptions
func (*KubectlOptionsRunner_Expecter) AuthReconcile ¶
func (_e *KubectlOptionsRunner_Expecter) AuthReconcile(opts any) *KubectlOptionsRunner_AuthReconcile_Call
AuthReconcile is a helper method to define mock.On call
- opts *auth.ReconcileOptions
func (*KubectlOptionsRunner_Expecter) Create ¶
func (_e *KubectlOptionsRunner_Expecter) Create(opts any, fact any, cmd any) *KubectlOptionsRunner_Create_Call
Create is a helper method to define mock.On call
- opts *create.CreateOptions
- fact util.Factory
- cmd *cobra.Command
func (*KubectlOptionsRunner_Expecter) Replace ¶
func (_e *KubectlOptionsRunner_Expecter) Replace(opts any, fact any) *KubectlOptionsRunner_Replace_Call
Replace is a helper method to define mock.On call
- opts *replace.ReplaceOptions
- fact util.Factory
type KubectlOptionsRunner_Replace_Call ¶
KubectlOptionsRunner_Replace_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Replace'
func (*KubectlOptionsRunner_Replace_Call) Return ¶
func (_c *KubectlOptionsRunner_Replace_Call) Return(err error) *KubectlOptionsRunner_Replace_Call
func (*KubectlOptionsRunner_Replace_Call) Run ¶
func (_c *KubectlOptionsRunner_Replace_Call) Run(run func(opts *replace.ReplaceOptions, fact util.Factory)) *KubectlOptionsRunner_Replace_Call
func (*KubectlOptionsRunner_Replace_Call) RunAndReturn ¶
func (_c *KubectlOptionsRunner_Replace_Call) RunAndReturn(run func(opts *replace.ReplaceOptions, fact util.Factory) error) *KubectlOptionsRunner_Replace_Call