subresource

package
v0.1.2 Latest Latest
Warning

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

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

Documentation

Overview

Package subresource provides a fake client for testing subresources.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client is a fake subresource client.s

func NewClient

func NewClient(scheme *runtime.Scheme) *Client

func (*Client) Create

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

func (*Client) Get

func (c *Client) Get(ctx context.Context, obj client.Object, subResource client.Object, opts ...client.SubResourceGetOption) error

func (*Client) Patch

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

func (*Client) Reset

func (c *Client) Reset()

Reset clears the contents of the client.

func (*Client) Update

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

Jump to

Keyboard shortcuts

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