Documentation
¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeCockroachDBs
- func (c *FakeCockroachDBs) Create(cockroachDB *v1alpha1.CockroachDB) (result *v1alpha1.CockroachDB, err error)
- func (c *FakeCockroachDBs) Delete(name string, options *v1.DeleteOptions) error
- func (c *FakeCockroachDBs) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
- func (c *FakeCockroachDBs) Get(name string, options v1.GetOptions) (result *v1alpha1.CockroachDB, err error)
- func (c *FakeCockroachDBs) List(opts v1.ListOptions) (result *v1alpha1.CockroachDBList, err error)
- func (c *FakeCockroachDBs) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.CockroachDB, err error)
- func (c *FakeCockroachDBs) Update(cockroachDB *v1alpha1.CockroachDB) (result *v1alpha1.CockroachDB, err error)
- func (c *FakeCockroachDBs) UpdateStatus(cockroachDB *v1alpha1.CockroachDB) (*v1alpha1.CockroachDB, error)
- func (c *FakeCockroachDBs) Watch(opts v1.ListOptions) (watch.Interface, error)
- type FakeDbV1alpha1
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeCockroachDBs ¶
type FakeCockroachDBs struct { Fake *FakeDbV1alpha1 // contains filtered or unexported fields }
FakeCockroachDBs implements CockroachDBInterface
func (*FakeCockroachDBs) Create ¶
func (c *FakeCockroachDBs) Create(cockroachDB *v1alpha1.CockroachDB) (result *v1alpha1.CockroachDB, err error)
Create takes the representation of a cockroachDB and creates it. Returns the server's representation of the cockroachDB, and an error, if there is any.
func (*FakeCockroachDBs) Delete ¶
func (c *FakeCockroachDBs) Delete(name string, options *v1.DeleteOptions) error
Delete takes name of the cockroachDB and deletes it. Returns an error if one occurs.
func (*FakeCockroachDBs) DeleteCollection ¶
func (c *FakeCockroachDBs) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeCockroachDBs) Get ¶
func (c *FakeCockroachDBs) Get(name string, options v1.GetOptions) (result *v1alpha1.CockroachDB, err error)
Get takes name of the cockroachDB, and returns the corresponding cockroachDB object, and an error if there is any.
func (*FakeCockroachDBs) List ¶
func (c *FakeCockroachDBs) List(opts v1.ListOptions) (result *v1alpha1.CockroachDBList, err error)
List takes label and field selectors, and returns the list of CockroachDBs that match those selectors.
func (*FakeCockroachDBs) Patch ¶
func (c *FakeCockroachDBs) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.CockroachDB, err error)
Patch applies the patch and returns the patched cockroachDB.
func (*FakeCockroachDBs) Update ¶
func (c *FakeCockroachDBs) Update(cockroachDB *v1alpha1.CockroachDB) (result *v1alpha1.CockroachDB, err error)
Update takes the representation of a cockroachDB and updates it. Returns the server's representation of the cockroachDB, and an error, if there is any.
func (*FakeCockroachDBs) UpdateStatus ¶
func (c *FakeCockroachDBs) UpdateStatus(cockroachDB *v1alpha1.CockroachDB) (*v1alpha1.CockroachDB, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeCockroachDBs) Watch ¶
func (c *FakeCockroachDBs) Watch(opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested cockroachDBs.
type FakeDbV1alpha1 ¶
func (*FakeDbV1alpha1) CockroachDBs ¶
func (c *FakeDbV1alpha1) CockroachDBs(namespace string) v1alpha1.CockroachDBInterface
func (*FakeDbV1alpha1) RESTClient ¶
func (c *FakeDbV1alpha1) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.