fake

package
v0.0.0-...-173f4c4 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.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 FakeAtomV1

type FakeAtomV1 struct {
	*testing.Fake
}

func (*FakeAtomV1) AtomVersions

func (c *FakeAtomV1) AtomVersions(namespace string) v1.AtomVersionInterface

func (*FakeAtomV1) Atoms

func (c *FakeAtomV1) Atoms(namespace string) v1.AtomInterface

func (*FakeAtomV1) RESTClient

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

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

type FakeAtomVersions

type FakeAtomVersions struct {
	Fake *FakeAtomV1
	// contains filtered or unexported fields
}

FakeAtomVersions implements AtomVersionInterface

func (*FakeAtomVersions) Create

func (c *FakeAtomVersions) Create(atomVersion *atomv1.AtomVersion) (result *atomv1.AtomVersion, err error)

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

func (*FakeAtomVersions) Delete

func (c *FakeAtomVersions) Delete(name string, options *v1.DeleteOptions) error

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

func (*FakeAtomVersions) DeleteCollection

func (c *FakeAtomVersions) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeAtomVersions) Get

func (c *FakeAtomVersions) Get(name string, options v1.GetOptions) (result *atomv1.AtomVersion, err error)

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

func (*FakeAtomVersions) List

func (c *FakeAtomVersions) List(opts v1.ListOptions) (result *atomv1.AtomVersionList, err error)

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

func (*FakeAtomVersions) Patch

func (c *FakeAtomVersions) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *atomv1.AtomVersion, err error)

Patch applies the patch and returns the patched atomVersion.

func (*FakeAtomVersions) Update

func (c *FakeAtomVersions) Update(atomVersion *atomv1.AtomVersion) (result *atomv1.AtomVersion, err error)

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

func (*FakeAtomVersions) UpdateStatus

func (c *FakeAtomVersions) UpdateStatus(atomVersion *atomv1.AtomVersion) (*atomv1.AtomVersion, error)

UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().

func (*FakeAtomVersions) Watch

func (c *FakeAtomVersions) Watch(opts v1.ListOptions) (watch.Interface, error)

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

type FakeAtoms

type FakeAtoms struct {
	Fake *FakeAtomV1
	// contains filtered or unexported fields
}

FakeAtoms implements AtomInterface

func (*FakeAtoms) Create

func (c *FakeAtoms) Create(atom *atomv1.Atom) (result *atomv1.Atom, err error)

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

func (*FakeAtoms) Delete

func (c *FakeAtoms) Delete(name string, options *v1.DeleteOptions) error

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

func (*FakeAtoms) DeleteCollection

func (c *FakeAtoms) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeAtoms) Get

func (c *FakeAtoms) Get(name string, options v1.GetOptions) (result *atomv1.Atom, err error)

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

func (*FakeAtoms) List

func (c *FakeAtoms) List(opts v1.ListOptions) (result *atomv1.AtomList, err error)

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

func (*FakeAtoms) Patch

func (c *FakeAtoms) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *atomv1.Atom, err error)

Patch applies the patch and returns the patched atom.

func (*FakeAtoms) Update

func (c *FakeAtoms) Update(atom *atomv1.Atom) (result *atomv1.Atom, err error)

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

func (*FakeAtoms) UpdateStatus

func (c *FakeAtoms) UpdateStatus(atom *atomv1.Atom) (*atomv1.Atom, error)

UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().

func (*FakeAtoms) Watch

func (c *FakeAtoms) Watch(opts v1.ListOptions) (watch.Interface, error)

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

Jump to

Keyboard shortcuts

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