mocks

package
v1.3.7 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockClient

type MockClient struct {
	client.Client
	mock.Mock
	StatusMock *StatusClient
}

Client is a mock for the controller-runtime dynamic client interface.

func NewClient

func NewClient() *MockClient

func (*MockClient) Create

func (c *MockClient) Create(ctx context.Context, obj client.Object, opts ...client.CreateOption) error

Writer interface

func (*MockClient) Delete

func (c *MockClient) Delete(ctx context.Context, obj client.Object, opts ...client.DeleteOption) error

func (*MockClient) DeleteAllOf

func (c *MockClient) DeleteAllOf(ctx context.Context, obj client.Object, opts ...client.DeleteAllOfOption) error

func (*MockClient) Get

Reader interface

func (*MockClient) List

func (c *MockClient) List(ctx context.Context, list client.ObjectList, opts ...client.ListOption) error

func (*MockClient) Patch

func (c *MockClient) Patch(ctx context.Context, obj client.Object, patch client.Patch, opts ...client.PatchOption) error

func (*MockClient) RESTMapper

func (c *MockClient) RESTMapper() meta.RESTMapper

func (*MockClient) Scheme

func (c *MockClient) Scheme() *runtime.Scheme

func (*MockClient) Status

func (c *MockClient) Status() client.StatusWriter

func (*MockClient) TriggerFSM

func (c *MockClient) TriggerFSM(ctx context.Context, sliceGw *kubeslicev1beta1.SliceGateway,
	slice *kubeslicev1beta1.Slice, hubClient *hub.HubClientConfig, meshClient client.Client, gatewayPod *corev1.Pod,
	eventRecorder *monitoringEvents.EventRecorder, controllerName, gwRecyclerName string) (bool, error)

func (*MockClient) Update

func (c *MockClient) Update(ctx context.Context, obj client.Object, opts ...client.UpdateOption) error

type StatusClient

type StatusClient struct {
	mock.Mock
}

func (*StatusClient) Create added in v1.3.0

func (*StatusClient) Patch

func (*StatusClient) Update

Jump to

Keyboard shortcuts

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