automock

package
v0.0.0-...-d6d012e Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type K8SClient

type K8SClient struct {
	mock.Mock
}

K8SClient is an autogenerated mock type for the K8SClient type

func NewK8SClient

func NewK8SClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *K8SClient

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

func (_m *K8SClient) Create(ctx context.Context, operation *v1alpha1.Operation) (*v1alpha1.Operation, error)

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

func (*K8SClient) Get

func (_m *K8SClient) Get(ctx context.Context, name string, options v1.GetOptions) (*v1alpha1.Operation, error)

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

func (*K8SClient) Update

func (_m *K8SClient) Update(ctx context.Context, operation *v1alpha1.Operation) (*v1alpha1.Operation, error)

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

Jump to

Keyboard shortcuts

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