mocks

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KubectlOptionsRunner

type KubectlOptionsRunner struct {
	mock.Mock
}

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 (*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

type KubectlOptionsRunner_Apply_Call struct {
	*mock.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 (*KubectlOptionsRunner_Apply_Call) Run

func (*KubectlOptionsRunner_Apply_Call) RunAndReturn

type KubectlOptionsRunner_AuthReconcile_Call

type KubectlOptionsRunner_AuthReconcile_Call struct {
	*mock.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 (*KubectlOptionsRunner_AuthReconcile_Call) Run

func (*KubectlOptionsRunner_AuthReconcile_Call) RunAndReturn

type KubectlOptionsRunner_Create_Call

type KubectlOptionsRunner_Create_Call struct {
	*mock.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 (*KubectlOptionsRunner_Create_Call) Run

func (*KubectlOptionsRunner_Create_Call) RunAndReturn

type KubectlOptionsRunner_Expecter

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

func (*KubectlOptionsRunner_Expecter) Apply

Apply is a helper method to define mock.On call

  • opts *apply.ApplyOptions

func (*KubectlOptionsRunner_Expecter) AuthReconcile

AuthReconcile is a helper method to define mock.On call

  • opts *auth.ReconcileOptions

func (*KubectlOptionsRunner_Expecter) Create

Create is a helper method to define mock.On call

  • opts *create.CreateOptions
  • fact util.Factory
  • cmd *cobra.Command

func (*KubectlOptionsRunner_Expecter) Replace

Replace is a helper method to define mock.On call

  • opts *replace.ReplaceOptions
  • fact util.Factory

type KubectlOptionsRunner_Replace_Call

type KubectlOptionsRunner_Replace_Call struct {
	*mock.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 (*KubectlOptionsRunner_Replace_Call) Run

func (*KubectlOptionsRunner_Replace_Call) RunAndReturn

Jump to

Keyboard shortcuts

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