fake

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 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 FakeCDIConfigs added in v1.6.0

type FakeCDIConfigs struct {
	Fake *FakeCdiV1alpha1
}

FakeCDIConfigs implements CDIConfigInterface

func (*FakeCDIConfigs) Create added in v1.6.0

func (c *FakeCDIConfigs) Create(cDIConfig *v1alpha1.CDIConfig) (result *v1alpha1.CDIConfig, err error)

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

func (*FakeCDIConfigs) Delete added in v1.6.0

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

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

func (*FakeCDIConfigs) DeleteCollection added in v1.6.0

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

DeleteCollection deletes a collection of objects.

func (*FakeCDIConfigs) Get added in v1.6.0

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

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

func (*FakeCDIConfigs) List added in v1.6.0

func (c *FakeCDIConfigs) List(opts v1.ListOptions) (result *v1alpha1.CDIConfigList, err error)

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

func (*FakeCDIConfigs) Patch added in v1.6.0

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

Patch applies the patch and returns the patched cDIConfig.

func (*FakeCDIConfigs) Update added in v1.6.0

func (c *FakeCDIConfigs) Update(cDIConfig *v1alpha1.CDIConfig) (result *v1alpha1.CDIConfig, err error)

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

func (*FakeCDIConfigs) UpdateStatus added in v1.6.0

func (c *FakeCDIConfigs) UpdateStatus(cDIConfig *v1alpha1.CDIConfig) (*v1alpha1.CDIConfig, error)

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

func (*FakeCDIConfigs) Watch added in v1.6.0

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

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

type FakeCDIs

type FakeCDIs struct {
	Fake *FakeCdiV1alpha1
}

FakeCDIs implements CDIInterface

func (*FakeCDIs) Create

func (c *FakeCDIs) Create(cDI *v1alpha1.CDI) (result *v1alpha1.CDI, err error)

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

func (*FakeCDIs) Delete

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

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

func (*FakeCDIs) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeCDIs) Get

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

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

func (*FakeCDIs) List

func (c *FakeCDIs) List(opts v1.ListOptions) (result *v1alpha1.CDIList, err error)

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

func (*FakeCDIs) Patch

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

Patch applies the patch and returns the patched cDI.

func (*FakeCDIs) Update

func (c *FakeCDIs) Update(cDI *v1alpha1.CDI) (result *v1alpha1.CDI, err error)

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

func (*FakeCDIs) UpdateStatus

func (c *FakeCDIs) UpdateStatus(cDI *v1alpha1.CDI) (*v1alpha1.CDI, error)

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

func (*FakeCDIs) Watch

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

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

type FakeCdiV1alpha1

type FakeCdiV1alpha1 struct {
	*testing.Fake
}

func (*FakeCdiV1alpha1) CDIConfigs added in v1.6.0

func (*FakeCdiV1alpha1) CDIs

func (*FakeCdiV1alpha1) DataVolumes

func (c *FakeCdiV1alpha1) DataVolumes(namespace string) v1alpha1.DataVolumeInterface

func (*FakeCdiV1alpha1) RESTClient

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

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

type FakeDataVolumes

type FakeDataVolumes struct {
	Fake *FakeCdiV1alpha1
	// contains filtered or unexported fields
}

FakeDataVolumes implements DataVolumeInterface

func (*FakeDataVolumes) Create

func (c *FakeDataVolumes) Create(dataVolume *v1alpha1.DataVolume) (result *v1alpha1.DataVolume, err error)

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

func (*FakeDataVolumes) Delete

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

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

func (*FakeDataVolumes) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeDataVolumes) Get

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

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

func (*FakeDataVolumes) List

func (c *FakeDataVolumes) List(opts v1.ListOptions) (result *v1alpha1.DataVolumeList, err error)

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

func (*FakeDataVolumes) Patch

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

Patch applies the patch and returns the patched dataVolume.

func (*FakeDataVolumes) Update

func (c *FakeDataVolumes) Update(dataVolume *v1alpha1.DataVolume) (result *v1alpha1.DataVolume, err error)

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

func (*FakeDataVolumes) UpdateStatus

func (c *FakeDataVolumes) UpdateStatus(dataVolume *v1alpha1.DataVolume) (*v1alpha1.DataVolume, error)

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

func (*FakeDataVolumes) Watch

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

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

Jump to

Keyboard shortcuts

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