kubefilertest

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockedClient

type MockedClient struct {
	mock.Mock
	client.Client

	ReturnObject client.Object
}

MockedClient use in unit tests instead of a real client

func (*MockedClient) Create

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

Create mocked version of the client's Create method

func (*MockedClient) Get

Get mocked version of the client's Get method

func (*MockedClient) Scheme

func (*MockedClient) Scheme() *runtime.Scheme

Scheme mocked version of the client's Scheme method

Jump to

Keyboard shortcuts

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