fake

package
v0.0.0-...-1fec092 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2023 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

Package fake has the automatically generated clients.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeSBCs

type FakeSBCs struct {
	Fake *FakeSbcV1
	// contains filtered or unexported fields
}

FakeSBCs implements SBCInterface

func (*FakeSBCs) Create

func (c *FakeSBCs) Create(ctx context.Context, sBC *v1.SBC, opts metav1.CreateOptions) (result *v1.SBC, err error)

Create takes the representation of a sBC and creates it. Returns the server's representation of the sBC, and an error, if there is any.

func (*FakeSBCs) Delete

func (c *FakeSBCs) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error

Delete takes name of the sBC and deletes it. Returns an error if one occurs.

func (*FakeSBCs) DeleteCollection

func (c *FakeSBCs) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeSBCs) Get

func (c *FakeSBCs) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.SBC, err error)

Get takes name of the sBC, and returns the corresponding sBC object, and an error if there is any.

func (*FakeSBCs) List

func (c *FakeSBCs) List(ctx context.Context, opts metav1.ListOptions) (result *v1.SBCList, err error)

List takes label and field selectors, and returns the list of SBCs that match those selectors.

func (*FakeSBCs) Patch

func (c *FakeSBCs) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.SBC, err error)

Patch applies the patch and returns the patched sBC.

func (*FakeSBCs) Update

func (c *FakeSBCs) Update(ctx context.Context, sBC *v1.SBC, opts metav1.UpdateOptions) (result *v1.SBC, err error)

Update takes the representation of a sBC and updates it. Returns the server's representation of the sBC, and an error, if there is any.

func (*FakeSBCs) Watch

func (c *FakeSBCs) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)

Watch returns a watch.Interface that watches the requested sBCs.

type FakeSbcV1

type FakeSbcV1 struct {
	*testing.Fake
}

func (*FakeSbcV1) RESTClient

func (c *FakeSbcV1) RESTClient() rest.Interface

RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.

func (*FakeSbcV1) SBCs

func (c *FakeSbcV1) SBCs(namespace string) v1.SBCInterface

Jump to

Keyboard shortcuts

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