Documentation ¶
Overview ¶
Package fake has the automatically generated clients.
Copyright 2018 The Openshift Evangelists ¶
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2018 The Openshift Evangelists ¶
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- type FakeDatabases
- func (c *FakeDatabases) Create(database *example_com_v1.Database) (result *example_com_v1.Database, err error)
- func (c *FakeDatabases) Delete(name string, options *v1.DeleteOptions) error
- func (c *FakeDatabases) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
- func (c *FakeDatabases) Get(name string, options v1.GetOptions) (result *example_com_v1.Database, err error)
- func (c *FakeDatabases) List(opts v1.ListOptions) (result *example_com_v1.DatabaseList, err error)
- func (c *FakeDatabases) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *example_com_v1.Database, err error)
- func (c *FakeDatabases) Update(database *example_com_v1.Database) (result *example_com_v1.Database, err error)
- func (c *FakeDatabases) Watch(opts v1.ListOptions) (watch.Interface, error)
- type FakeExampleV1
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeDatabases ¶
type FakeDatabases struct { Fake *FakeExampleV1 // contains filtered or unexported fields }
FakeDatabases implements DatabaseInterface
func (*FakeDatabases) Create ¶
func (c *FakeDatabases) Create(database *example_com_v1.Database) (result *example_com_v1.Database, err error)
Create takes the representation of a database and creates it. Returns the server's representation of the database, and an error, if there is any.
func (*FakeDatabases) Delete ¶
func (c *FakeDatabases) Delete(name string, options *v1.DeleteOptions) error
Delete takes name of the database and deletes it. Returns an error if one occurs.
func (*FakeDatabases) DeleteCollection ¶
func (c *FakeDatabases) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeDatabases) Get ¶
func (c *FakeDatabases) Get(name string, options v1.GetOptions) (result *example_com_v1.Database, err error)
Get takes name of the database, and returns the corresponding database object, and an error if there is any.
func (*FakeDatabases) List ¶
func (c *FakeDatabases) List(opts v1.ListOptions) (result *example_com_v1.DatabaseList, err error)
List takes label and field selectors, and returns the list of Databases that match those selectors.
func (*FakeDatabases) Patch ¶
func (c *FakeDatabases) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *example_com_v1.Database, err error)
Patch applies the patch and returns the patched database.
func (*FakeDatabases) Update ¶
func (c *FakeDatabases) Update(database *example_com_v1.Database) (result *example_com_v1.Database, err error)
Update takes the representation of a database and updates it. Returns the server's representation of the database, and an error, if there is any.
func (*FakeDatabases) Watch ¶
func (c *FakeDatabases) Watch(opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested databases.
type FakeExampleV1 ¶
func (*FakeExampleV1) Databases ¶
func (c *FakeExampleV1) Databases(namespace string) v1.DatabaseInterface
func (*FakeExampleV1) RESTClient ¶
func (c *FakeExampleV1) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.