fake

package
v2.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2020 License: MIT 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 FakeJobs

type FakeJobs struct {
	Fake *FakeStorageosV1
	// contains filtered or unexported fields
}

FakeJobs implements JobInterface

func (*FakeJobs) Create

func (c *FakeJobs) Create(job *storageosv1.Job) (result *storageosv1.Job, err error)

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

func (*FakeJobs) Delete

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

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

func (*FakeJobs) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeJobs) Get

func (c *FakeJobs) Get(name string, options v1.GetOptions) (result *storageosv1.Job, err error)

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

func (*FakeJobs) List

func (c *FakeJobs) List(opts v1.ListOptions) (result *storageosv1.JobList, err error)

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

func (*FakeJobs) Patch

func (c *FakeJobs) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *storageosv1.Job, err error)

Patch applies the patch and returns the patched job.

func (*FakeJobs) Update

func (c *FakeJobs) Update(job *storageosv1.Job) (result *storageosv1.Job, err error)

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

func (*FakeJobs) UpdateStatus

func (c *FakeJobs) UpdateStatus(job *storageosv1.Job) (*storageosv1.Job, error)

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

func (*FakeJobs) Watch

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

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

type FakeNFSServers

type FakeNFSServers struct {
	Fake *FakeStorageosV1
	// contains filtered or unexported fields
}

FakeNFSServers implements NFSServerInterface

func (*FakeNFSServers) Create

func (c *FakeNFSServers) Create(nFSServer *storageosv1.NFSServer) (result *storageosv1.NFSServer, err error)

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

func (*FakeNFSServers) Delete

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

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

func (*FakeNFSServers) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeNFSServers) Get

func (c *FakeNFSServers) Get(name string, options v1.GetOptions) (result *storageosv1.NFSServer, err error)

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

func (*FakeNFSServers) List

func (c *FakeNFSServers) List(opts v1.ListOptions) (result *storageosv1.NFSServerList, err error)

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

func (*FakeNFSServers) Patch

func (c *FakeNFSServers) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *storageosv1.NFSServer, err error)

Patch applies the patch and returns the patched nFSServer.

func (*FakeNFSServers) Update

func (c *FakeNFSServers) Update(nFSServer *storageosv1.NFSServer) (result *storageosv1.NFSServer, err error)

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

func (*FakeNFSServers) UpdateStatus

func (c *FakeNFSServers) UpdateStatus(nFSServer *storageosv1.NFSServer) (*storageosv1.NFSServer, error)

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

func (*FakeNFSServers) Watch

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

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

type FakeStorageOSClusters

type FakeStorageOSClusters struct {
	Fake *FakeStorageosV1
	// contains filtered or unexported fields
}

FakeStorageOSClusters implements StorageOSClusterInterface

func (*FakeStorageOSClusters) Create

func (c *FakeStorageOSClusters) Create(storageOSCluster *storageosv1.StorageOSCluster) (result *storageosv1.StorageOSCluster, err error)

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

func (*FakeStorageOSClusters) Delete

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

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

func (*FakeStorageOSClusters) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeStorageOSClusters) Get

func (c *FakeStorageOSClusters) Get(name string, options v1.GetOptions) (result *storageosv1.StorageOSCluster, err error)

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

func (*FakeStorageOSClusters) List

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

func (*FakeStorageOSClusters) Patch

func (c *FakeStorageOSClusters) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *storageosv1.StorageOSCluster, err error)

Patch applies the patch and returns the patched storageOSCluster.

func (*FakeStorageOSClusters) Update

func (c *FakeStorageOSClusters) Update(storageOSCluster *storageosv1.StorageOSCluster) (result *storageosv1.StorageOSCluster, err error)

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

func (*FakeStorageOSClusters) UpdateStatus

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

func (*FakeStorageOSClusters) Watch

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

type FakeStorageOSUpgrades

type FakeStorageOSUpgrades struct {
	Fake *FakeStorageosV1
	// contains filtered or unexported fields
}

FakeStorageOSUpgrades implements StorageOSUpgradeInterface

func (*FakeStorageOSUpgrades) Create

func (c *FakeStorageOSUpgrades) Create(storageOSUpgrade *storageosv1.StorageOSUpgrade) (result *storageosv1.StorageOSUpgrade, err error)

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

func (*FakeStorageOSUpgrades) Delete

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

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

func (*FakeStorageOSUpgrades) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeStorageOSUpgrades) Get

func (c *FakeStorageOSUpgrades) Get(name string, options v1.GetOptions) (result *storageosv1.StorageOSUpgrade, err error)

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

func (*FakeStorageOSUpgrades) List

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

func (*FakeStorageOSUpgrades) Patch

func (c *FakeStorageOSUpgrades) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *storageosv1.StorageOSUpgrade, err error)

Patch applies the patch and returns the patched storageOSUpgrade.

func (*FakeStorageOSUpgrades) Update

func (c *FakeStorageOSUpgrades) Update(storageOSUpgrade *storageosv1.StorageOSUpgrade) (result *storageosv1.StorageOSUpgrade, err error)

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

func (*FakeStorageOSUpgrades) UpdateStatus

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

func (*FakeStorageOSUpgrades) Watch

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

type FakeStorageosV1

type FakeStorageosV1 struct {
	*testing.Fake
}

func (*FakeStorageosV1) Jobs

func (c *FakeStorageosV1) Jobs(namespace string) v1.JobInterface

func (*FakeStorageosV1) NFSServers

func (c *FakeStorageosV1) NFSServers(namespace string) v1.NFSServerInterface

func (*FakeStorageosV1) RESTClient

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

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

func (*FakeStorageosV1) StorageOSClusters

func (c *FakeStorageosV1) StorageOSClusters(namespace string) v1.StorageOSClusterInterface

func (*FakeStorageosV1) StorageOSUpgrades

func (c *FakeStorageosV1) StorageOSUpgrades(namespace string) v1.StorageOSUpgradeInterface

Jump to

Keyboard shortcuts

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