fake

package
v1.2.6 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2020 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 FakeClusters

type FakeClusters struct {
	Fake *FakeEdgefsV1
	// contains filtered or unexported fields
}

FakeClusters implements ClusterInterface

func (*FakeClusters) Create

func (c *FakeClusters) Create(cluster *edgefsrookiov1.Cluster) (result *edgefsrookiov1.Cluster, err error)

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

func (*FakeClusters) Delete

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

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

func (*FakeClusters) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeClusters) Get

func (c *FakeClusters) Get(name string, options v1.GetOptions) (result *edgefsrookiov1.Cluster, err error)

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

func (*FakeClusters) List

func (c *FakeClusters) List(opts v1.ListOptions) (result *edgefsrookiov1.ClusterList, err error)

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

func (*FakeClusters) Patch

func (c *FakeClusters) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *edgefsrookiov1.Cluster, err error)

Patch applies the patch and returns the patched cluster.

func (*FakeClusters) Update

func (c *FakeClusters) Update(cluster *edgefsrookiov1.Cluster) (result *edgefsrookiov1.Cluster, err error)

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

func (*FakeClusters) Watch

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

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

type FakeEdgefsV1

type FakeEdgefsV1 struct {
	*testing.Fake
}

func (*FakeEdgefsV1) Clusters

func (c *FakeEdgefsV1) Clusters(namespace string) v1.ClusterInterface

func (*FakeEdgefsV1) ISCSIs

func (c *FakeEdgefsV1) ISCSIs(namespace string) v1.ISCSIInterface

func (*FakeEdgefsV1) ISGWs

func (c *FakeEdgefsV1) ISGWs(namespace string) v1.ISGWInterface

func (*FakeEdgefsV1) NFSs

func (c *FakeEdgefsV1) NFSs(namespace string) v1.NFSInterface

func (*FakeEdgefsV1) RESTClient

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

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

func (*FakeEdgefsV1) S3Xs

func (c *FakeEdgefsV1) S3Xs(namespace string) v1.S3XInterface

func (*FakeEdgefsV1) S3s

func (c *FakeEdgefsV1) S3s(namespace string) v1.S3Interface

func (*FakeEdgefsV1) SWIFTs

func (c *FakeEdgefsV1) SWIFTs(namespace string) v1.SWIFTInterface

type FakeISCSIs

type FakeISCSIs struct {
	Fake *FakeEdgefsV1
	// contains filtered or unexported fields
}

FakeISCSIs implements ISCSIInterface

func (*FakeISCSIs) Create

func (c *FakeISCSIs) Create(iSCSI *edgefsrookiov1.ISCSI) (result *edgefsrookiov1.ISCSI, err error)

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

func (*FakeISCSIs) Delete

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

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

func (*FakeISCSIs) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeISCSIs) Get

func (c *FakeISCSIs) Get(name string, options v1.GetOptions) (result *edgefsrookiov1.ISCSI, err error)

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

func (*FakeISCSIs) List

func (c *FakeISCSIs) List(opts v1.ListOptions) (result *edgefsrookiov1.ISCSIList, err error)

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

func (*FakeISCSIs) Patch

func (c *FakeISCSIs) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *edgefsrookiov1.ISCSI, err error)

Patch applies the patch and returns the patched iSCSI.

func (*FakeISCSIs) Update

func (c *FakeISCSIs) Update(iSCSI *edgefsrookiov1.ISCSI) (result *edgefsrookiov1.ISCSI, err error)

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

func (*FakeISCSIs) Watch

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

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

type FakeISGWs

type FakeISGWs struct {
	Fake *FakeEdgefsV1
	// contains filtered or unexported fields
}

FakeISGWs implements ISGWInterface

func (*FakeISGWs) Create

func (c *FakeISGWs) Create(iSGW *edgefsrookiov1.ISGW) (result *edgefsrookiov1.ISGW, err error)

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

func (*FakeISGWs) Delete

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

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

func (*FakeISGWs) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeISGWs) Get

func (c *FakeISGWs) Get(name string, options v1.GetOptions) (result *edgefsrookiov1.ISGW, err error)

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

func (*FakeISGWs) List

func (c *FakeISGWs) List(opts v1.ListOptions) (result *edgefsrookiov1.ISGWList, err error)

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

func (*FakeISGWs) Patch

func (c *FakeISGWs) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *edgefsrookiov1.ISGW, err error)

Patch applies the patch and returns the patched iSGW.

func (*FakeISGWs) Update

func (c *FakeISGWs) Update(iSGW *edgefsrookiov1.ISGW) (result *edgefsrookiov1.ISGW, err error)

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

func (*FakeISGWs) Watch

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

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

type FakeNFSs

type FakeNFSs struct {
	Fake *FakeEdgefsV1
	// contains filtered or unexported fields
}

FakeNFSs implements NFSInterface

func (*FakeNFSs) Create

func (c *FakeNFSs) Create(nFS *edgefsrookiov1.NFS) (result *edgefsrookiov1.NFS, err error)

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

func (*FakeNFSs) Delete

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

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

func (*FakeNFSs) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeNFSs) Get

func (c *FakeNFSs) Get(name string, options v1.GetOptions) (result *edgefsrookiov1.NFS, err error)

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

func (*FakeNFSs) List

func (c *FakeNFSs) List(opts v1.ListOptions) (result *edgefsrookiov1.NFSList, err error)

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

func (*FakeNFSs) Patch

func (c *FakeNFSs) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *edgefsrookiov1.NFS, err error)

Patch applies the patch and returns the patched nFS.

func (*FakeNFSs) Update

func (c *FakeNFSs) Update(nFS *edgefsrookiov1.NFS) (result *edgefsrookiov1.NFS, err error)

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

func (*FakeNFSs) Watch

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

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

type FakeS3Xs

type FakeS3Xs struct {
	Fake *FakeEdgefsV1
	// contains filtered or unexported fields
}

FakeS3Xs implements S3XInterface

func (*FakeS3Xs) Create

func (c *FakeS3Xs) Create(s3X *edgefsrookiov1.S3X) (result *edgefsrookiov1.S3X, err error)

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

func (*FakeS3Xs) Delete

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

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

func (*FakeS3Xs) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeS3Xs) Get

func (c *FakeS3Xs) Get(name string, options v1.GetOptions) (result *edgefsrookiov1.S3X, err error)

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

func (*FakeS3Xs) List

func (c *FakeS3Xs) List(opts v1.ListOptions) (result *edgefsrookiov1.S3XList, err error)

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

func (*FakeS3Xs) Patch

func (c *FakeS3Xs) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *edgefsrookiov1.S3X, err error)

Patch applies the patch and returns the patched s3X.

func (*FakeS3Xs) Update

func (c *FakeS3Xs) Update(s3X *edgefsrookiov1.S3X) (result *edgefsrookiov1.S3X, err error)

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

func (*FakeS3Xs) Watch

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

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

type FakeS3s

type FakeS3s struct {
	Fake *FakeEdgefsV1
	// contains filtered or unexported fields
}

FakeS3s implements S3Interface

func (*FakeS3s) Create

func (c *FakeS3s) Create(s3 *edgefsrookiov1.S3) (result *edgefsrookiov1.S3, err error)

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

func (*FakeS3s) Delete

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

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

func (*FakeS3s) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeS3s) Get

func (c *FakeS3s) Get(name string, options v1.GetOptions) (result *edgefsrookiov1.S3, err error)

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

func (*FakeS3s) List

func (c *FakeS3s) List(opts v1.ListOptions) (result *edgefsrookiov1.S3List, err error)

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

func (*FakeS3s) Patch

func (c *FakeS3s) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *edgefsrookiov1.S3, err error)

Patch applies the patch and returns the patched s3.

func (*FakeS3s) Update

func (c *FakeS3s) Update(s3 *edgefsrookiov1.S3) (result *edgefsrookiov1.S3, err error)

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

func (*FakeS3s) Watch

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

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

type FakeSWIFTs

type FakeSWIFTs struct {
	Fake *FakeEdgefsV1
	// contains filtered or unexported fields
}

FakeSWIFTs implements SWIFTInterface

func (*FakeSWIFTs) Create

func (c *FakeSWIFTs) Create(sWIFT *edgefsrookiov1.SWIFT) (result *edgefsrookiov1.SWIFT, err error)

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

func (*FakeSWIFTs) Delete

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

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

func (*FakeSWIFTs) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeSWIFTs) Get

func (c *FakeSWIFTs) Get(name string, options v1.GetOptions) (result *edgefsrookiov1.SWIFT, err error)

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

func (*FakeSWIFTs) List

func (c *FakeSWIFTs) List(opts v1.ListOptions) (result *edgefsrookiov1.SWIFTList, err error)

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

func (*FakeSWIFTs) Patch

func (c *FakeSWIFTs) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *edgefsrookiov1.SWIFT, err error)

Patch applies the patch and returns the patched sWIFT.

func (*FakeSWIFTs) Update

func (c *FakeSWIFTs) Update(sWIFT *edgefsrookiov1.SWIFT) (result *edgefsrookiov1.SWIFT, err error)

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

func (*FakeSWIFTs) Watch

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

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

Jump to

Keyboard shortcuts

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