fake

package
v0.0.0-...-ce1bbda Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2019 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 FakeChaosEngines

type FakeChaosEngines struct {
	Fake *FakeLitmuschaosV1alpha1
	// contains filtered or unexported fields
}

FakeChaosEngines implements ChaosEngineInterface

func (*FakeChaosEngines) Create

func (c *FakeChaosEngines) Create(chaosEngine *v1alpha1.ChaosEngine) (result *v1alpha1.ChaosEngine, err error)

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

func (*FakeChaosEngines) Delete

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

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

func (*FakeChaosEngines) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeChaosEngines) Get

func (c *FakeChaosEngines) Get(name string, options v1.GetOptions) (result *v1alpha1.ChaosEngine, err error)

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

func (*FakeChaosEngines) List

func (c *FakeChaosEngines) List(opts v1.ListOptions) (result *v1alpha1.ChaosEngineList, err error)

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

func (*FakeChaosEngines) Patch

func (c *FakeChaosEngines) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.ChaosEngine, err error)

Patch applies the patch and returns the patched chaosEngine.

func (*FakeChaosEngines) Update

func (c *FakeChaosEngines) Update(chaosEngine *v1alpha1.ChaosEngine) (result *v1alpha1.ChaosEngine, err error)

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

func (*FakeChaosEngines) UpdateStatus

func (c *FakeChaosEngines) UpdateStatus(chaosEngine *v1alpha1.ChaosEngine) (*v1alpha1.ChaosEngine, error)

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

func (*FakeChaosEngines) Watch

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

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

type FakeChaosExperiments

type FakeChaosExperiments struct {
	Fake *FakeLitmuschaosV1alpha1
	// contains filtered or unexported fields
}

FakeChaosExperiments implements ChaosExperimentInterface

func (*FakeChaosExperiments) Create

func (c *FakeChaosExperiments) Create(chaosExperiment *v1alpha1.ChaosExperiment) (result *v1alpha1.ChaosExperiment, err error)

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

func (*FakeChaosExperiments) Delete

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

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

func (*FakeChaosExperiments) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeChaosExperiments) Get

func (c *FakeChaosExperiments) Get(name string, options v1.GetOptions) (result *v1alpha1.ChaosExperiment, err error)

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

func (*FakeChaosExperiments) List

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

func (*FakeChaosExperiments) Patch

func (c *FakeChaosExperiments) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.ChaosExperiment, err error)

Patch applies the patch and returns the patched chaosExperiment.

func (*FakeChaosExperiments) Update

func (c *FakeChaosExperiments) Update(chaosExperiment *v1alpha1.ChaosExperiment) (result *v1alpha1.ChaosExperiment, err error)

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

func (*FakeChaosExperiments) UpdateStatus

func (c *FakeChaosExperiments) UpdateStatus(chaosExperiment *v1alpha1.ChaosExperiment) (*v1alpha1.ChaosExperiment, error)

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

func (*FakeChaosExperiments) Watch

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

type FakeChaosResults

type FakeChaosResults struct {
	Fake *FakeLitmuschaosV1alpha1
	// contains filtered or unexported fields
}

FakeChaosResults implements ChaosResultInterface

func (*FakeChaosResults) Create

func (c *FakeChaosResults) Create(chaosResult *v1alpha1.ChaosResult) (result *v1alpha1.ChaosResult, err error)

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

func (*FakeChaosResults) Delete

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

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

func (*FakeChaosResults) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeChaosResults) Get

func (c *FakeChaosResults) Get(name string, options v1.GetOptions) (result *v1alpha1.ChaosResult, err error)

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

func (*FakeChaosResults) List

func (c *FakeChaosResults) List(opts v1.ListOptions) (result *v1alpha1.ChaosResultList, err error)

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

func (*FakeChaosResults) Patch

func (c *FakeChaosResults) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.ChaosResult, err error)

Patch applies the patch and returns the patched chaosResult.

func (*FakeChaosResults) Update

func (c *FakeChaosResults) Update(chaosResult *v1alpha1.ChaosResult) (result *v1alpha1.ChaosResult, err error)

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

func (*FakeChaosResults) UpdateStatus

func (c *FakeChaosResults) UpdateStatus(chaosResult *v1alpha1.ChaosResult) (*v1alpha1.ChaosResult, error)

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

func (*FakeChaosResults) Watch

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

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

type FakeLitmuschaosV1alpha1

type FakeLitmuschaosV1alpha1 struct {
	*testing.Fake
}

func (*FakeLitmuschaosV1alpha1) ChaosEngines

func (c *FakeLitmuschaosV1alpha1) ChaosEngines(namespace string) v1alpha1.ChaosEngineInterface

func (*FakeLitmuschaosV1alpha1) ChaosExperiments

func (c *FakeLitmuschaosV1alpha1) ChaosExperiments(namespace string) v1alpha1.ChaosExperimentInterface

func (*FakeLitmuschaosV1alpha1) ChaosResults

func (c *FakeLitmuschaosV1alpha1) ChaosResults(namespace string) v1alpha1.ChaosResultInterface

func (*FakeLitmuschaosV1alpha1) RESTClient

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

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

Jump to

Keyboard shortcuts

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