fake

package
v0.0.0-...-6e10ded Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2017 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package fake has the automatically generated clients.

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.

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.

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

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeDatabases

type FakeDatabases struct {
	Fake *FakeKinkyV1alpha1
	// contains filtered or unexported fields
}

FakeDatabases implements DatabaseInterface

func (*FakeDatabases) Create

func (c *FakeDatabases) Create(database *v1alpha1.Database) (result *v1alpha1.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 *v1alpha1.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 *v1alpha1.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 *v1alpha1.Database, err error)

Patch applies the patch and returns the patched database.

func (*FakeDatabases) Update

func (c *FakeDatabases) Update(database *v1alpha1.Database) (result *v1alpha1.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 FakeKinkies

type FakeKinkies struct {
	Fake *FakeKinkyV1alpha1
	// contains filtered or unexported fields
}

FakeKinkies implements KinkyInterface

func (*FakeKinkies) Create

func (c *FakeKinkies) Create(kinky *v1alpha1.Kinky) (result *v1alpha1.Kinky, err error)

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

func (*FakeKinkies) Delete

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

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

func (*FakeKinkies) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeKinkies) Get

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

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

func (*FakeKinkies) List

func (c *FakeKinkies) List(opts v1.ListOptions) (result *v1alpha1.KinkyList, err error)

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

func (*FakeKinkies) Patch

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

Patch applies the patch and returns the patched kinky.

func (*FakeKinkies) Update

func (c *FakeKinkies) Update(kinky *v1alpha1.Kinky) (result *v1alpha1.Kinky, err error)

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

func (*FakeKinkies) Watch

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

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

type FakeKinkyV1alpha1

type FakeKinkyV1alpha1 struct {
	*testing.Fake
}

func (*FakeKinkyV1alpha1) Kinkies

func (c *FakeKinkyV1alpha1) Kinkies(namespace string) v1alpha1.KinkyInterface

func (*FakeKinkyV1alpha1) RESTClient

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

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

Jump to

Keyboard shortcuts

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