fake

package
Version: v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Copyright 2018 The etcd-operator Authors

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.

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.

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 FakeEtcdBackups

type FakeEtcdBackups struct {
	Fake *FakeEtcdV1beta2
	// contains filtered or unexported fields
}

FakeEtcdBackups implements EtcdBackupInterface

func (*FakeEtcdBackups) Create

func (c *FakeEtcdBackups) Create(etcdBackup *v1beta2.EtcdBackup) (result *v1beta2.EtcdBackup, err error)

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

func (*FakeEtcdBackups) Delete

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

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

func (*FakeEtcdBackups) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeEtcdBackups) Get

func (c *FakeEtcdBackups) Get(name string, options v1.GetOptions) (result *v1beta2.EtcdBackup, err error)

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

func (*FakeEtcdBackups) List

func (c *FakeEtcdBackups) List(opts v1.ListOptions) (result *v1beta2.EtcdBackupList, err error)

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

func (*FakeEtcdBackups) Patch

func (c *FakeEtcdBackups) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1beta2.EtcdBackup, err error)

Patch applies the patch and returns the patched etcdBackup.

func (*FakeEtcdBackups) Update

func (c *FakeEtcdBackups) Update(etcdBackup *v1beta2.EtcdBackup) (result *v1beta2.EtcdBackup, err error)

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

func (*FakeEtcdBackups) UpdateStatus

func (c *FakeEtcdBackups) UpdateStatus(etcdBackup *v1beta2.EtcdBackup) (*v1beta2.EtcdBackup, error)

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

func (*FakeEtcdBackups) Watch

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

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

type FakeEtcdClusters

type FakeEtcdClusters struct {
	Fake *FakeEtcdV1beta2
	// contains filtered or unexported fields
}

FakeEtcdClusters implements EtcdClusterInterface

func (*FakeEtcdClusters) Create

func (c *FakeEtcdClusters) Create(etcdCluster *v1beta2.EtcdCluster) (result *v1beta2.EtcdCluster, err error)

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

func (*FakeEtcdClusters) Delete

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

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

func (*FakeEtcdClusters) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeEtcdClusters) Get

func (c *FakeEtcdClusters) Get(name string, options v1.GetOptions) (result *v1beta2.EtcdCluster, err error)

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

func (*FakeEtcdClusters) List

func (c *FakeEtcdClusters) List(opts v1.ListOptions) (result *v1beta2.EtcdClusterList, err error)

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

func (*FakeEtcdClusters) Patch

func (c *FakeEtcdClusters) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1beta2.EtcdCluster, err error)

Patch applies the patch and returns the patched etcdCluster.

func (*FakeEtcdClusters) Update

func (c *FakeEtcdClusters) Update(etcdCluster *v1beta2.EtcdCluster) (result *v1beta2.EtcdCluster, err error)

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

func (*FakeEtcdClusters) UpdateStatus

func (c *FakeEtcdClusters) UpdateStatus(etcdCluster *v1beta2.EtcdCluster) (*v1beta2.EtcdCluster, error)

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

func (*FakeEtcdClusters) Watch

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

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

type FakeEtcdRestores

type FakeEtcdRestores struct {
	Fake *FakeEtcdV1beta2
	// contains filtered or unexported fields
}

FakeEtcdRestores implements EtcdRestoreInterface

func (*FakeEtcdRestores) Create

func (c *FakeEtcdRestores) Create(etcdRestore *v1beta2.EtcdRestore) (result *v1beta2.EtcdRestore, err error)

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

func (*FakeEtcdRestores) Delete

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

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

func (*FakeEtcdRestores) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeEtcdRestores) Get

func (c *FakeEtcdRestores) Get(name string, options v1.GetOptions) (result *v1beta2.EtcdRestore, err error)

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

func (*FakeEtcdRestores) List

func (c *FakeEtcdRestores) List(opts v1.ListOptions) (result *v1beta2.EtcdRestoreList, err error)

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

func (*FakeEtcdRestores) Patch

func (c *FakeEtcdRestores) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1beta2.EtcdRestore, err error)

Patch applies the patch and returns the patched etcdRestore.

func (*FakeEtcdRestores) Update

func (c *FakeEtcdRestores) Update(etcdRestore *v1beta2.EtcdRestore) (result *v1beta2.EtcdRestore, err error)

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

func (*FakeEtcdRestores) UpdateStatus

func (c *FakeEtcdRestores) UpdateStatus(etcdRestore *v1beta2.EtcdRestore) (*v1beta2.EtcdRestore, error)

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

func (*FakeEtcdRestores) Watch

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

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

type FakeEtcdV1beta2

type FakeEtcdV1beta2 struct {
	*testing.Fake
}

func (*FakeEtcdV1beta2) EtcdBackups

func (c *FakeEtcdV1beta2) EtcdBackups(namespace string) v1beta2.EtcdBackupInterface

func (*FakeEtcdV1beta2) EtcdClusters

func (c *FakeEtcdV1beta2) EtcdClusters(namespace string) v1beta2.EtcdClusterInterface

func (*FakeEtcdV1beta2) EtcdRestores

func (c *FakeEtcdV1beta2) EtcdRestores(namespace string) v1beta2.EtcdRestoreInterface

func (*FakeEtcdV1beta2) RESTClient

func (c *FakeEtcdV1beta2) 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