mocks

package
v0.0.0-...-2b3457a Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2021 License: MIT Imports: 8 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 {
	mock.Mock
	RuntimeScheme *runtime.Scheme
}

func NewMockClient

func NewMockClient(t *testing.T) *MockClient

func (*MockClient) Create

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

func (*MockClient) Delete

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

func (*MockClient) DeleteAllOf

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

func (*MockClient) Get

func (m *MockClient) Get(ctx context.Context, key client.ObjectKey, obj client.Object) error

func (*MockClient) List

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

func (*MockClient) Patch

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

func (*MockClient) RESTMapper

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

func (*MockClient) Scheme

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

func (*MockClient) Status

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

func (*MockClient) Update

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

type MockEndpointManager

type MockEndpointManager struct {
	mock.Mock
}

func (*MockEndpointManager) Setup

func (m *MockEndpointManager) Setup(c *restful.Container)

Jump to

Keyboard shortcuts

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