fake

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package fake provides mocks etc for testing.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SubResourceClient

type SubResourceClient struct {
	// contains filtered or unexported fields
}

SubResourceClient is a fake implementation of client.SubResourceClient that supports the full set of CRUD operations.

func NewSubResourceClient

func NewSubResourceClient(scheme *runtime.Scheme) *SubResourceClient

func (*SubResourceClient) Create

func (c *SubResourceClient) Create(ctx context.Context, obj client.Object, subResource client.Object, opts ...client.SubResourceCreateOption) error

func (*SubResourceClient) Get

func (*SubResourceClient) Patch

func (*SubResourceClient) Reset added in v0.3.1

func (c *SubResourceClient) Reset()

Reset clears the contents of the client.

func (*SubResourceClient) Update

Jump to

Keyboard shortcuts

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