mocks

package
v0.0.0-...-5f509e1 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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	mock.Mock
}

Client is an autogenerated mock type for the Client type

func NewClient

func NewClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *Client

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

func (_m *Client) Create(ctx context.Context, shoot *v1beta1.Shoot, opts v1.CreateOptions) (*v1beta1.Shoot, error)

Create provides a mock function with given fields: ctx, shoot, opts

func (*Client) Get

func (_m *Client) Get(ctx context.Context, name string, opts v1.GetOptions) (*v1beta1.Shoot, error)

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

func (*Client) Patch

func (_m *Client) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (*v1beta1.Shoot, error)

Patch provides a mock function with given fields: ctx, name, pt, data, opts, subresources

type ShootClient

type ShootClient struct {
	mock.Mock
}

ShootClient is an autogenerated mock type for the ShootClient type

func NewShootClient

func NewShootClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *ShootClient

NewShootClient creates a new instance of ShootClient. 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 (*ShootClient) List

func (_m *ShootClient) List(ctx context.Context, opts v1.ListOptions) (*v1beta1.ShootList, error)

List provides a mock function with given fields: ctx, opts

Jump to

Keyboard shortcuts

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