fake

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Overview

Copyright 2018 Jetstack Ltd.

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.

Copyright 2018 Jetstack Ltd.

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 Jetstack Ltd.

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 Jetstack Ltd.

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 Jetstack Ltd.

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 FakeCassandraClusters

type FakeCassandraClusters struct {
	Fake *FakeNavigator
	// contains filtered or unexported fields
}

FakeCassandraClusters implements CassandraClusterInterface

func (*FakeCassandraClusters) Create

func (c *FakeCassandraClusters) Create(cassandraCluster *navigator.CassandraCluster) (result *navigator.CassandraCluster, err error)

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

func (*FakeCassandraClusters) Delete

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

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

func (*FakeCassandraClusters) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeCassandraClusters) Get

func (c *FakeCassandraClusters) Get(name string, options v1.GetOptions) (result *navigator.CassandraCluster, err error)

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

func (*FakeCassandraClusters) List

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

func (*FakeCassandraClusters) Patch

func (c *FakeCassandraClusters) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *navigator.CassandraCluster, err error)

Patch applies the patch and returns the patched cassandraCluster.

func (*FakeCassandraClusters) Update

func (c *FakeCassandraClusters) Update(cassandraCluster *navigator.CassandraCluster) (result *navigator.CassandraCluster, err error)

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

func (*FakeCassandraClusters) UpdateStatus

func (c *FakeCassandraClusters) UpdateStatus(cassandraCluster *navigator.CassandraCluster) (*navigator.CassandraCluster, error)

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

func (*FakeCassandraClusters) Watch

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

type FakeElasticsearchClusters

type FakeElasticsearchClusters struct {
	Fake *FakeNavigator
	// contains filtered or unexported fields
}

FakeElasticsearchClusters implements ElasticsearchClusterInterface

func (*FakeElasticsearchClusters) Create

func (c *FakeElasticsearchClusters) Create(elasticsearchCluster *navigator.ElasticsearchCluster) (result *navigator.ElasticsearchCluster, err error)

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

func (*FakeElasticsearchClusters) Delete

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

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

func (*FakeElasticsearchClusters) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeElasticsearchClusters) Get

func (c *FakeElasticsearchClusters) Get(name string, options v1.GetOptions) (result *navigator.ElasticsearchCluster, err error)

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

func (*FakeElasticsearchClusters) List

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

func (*FakeElasticsearchClusters) Patch

func (c *FakeElasticsearchClusters) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *navigator.ElasticsearchCluster, err error)

Patch applies the patch and returns the patched elasticsearchCluster.

func (*FakeElasticsearchClusters) Update

func (c *FakeElasticsearchClusters) Update(elasticsearchCluster *navigator.ElasticsearchCluster) (result *navigator.ElasticsearchCluster, err error)

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

func (*FakeElasticsearchClusters) UpdateStatus

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

func (*FakeElasticsearchClusters) Watch

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

type FakeNavigator

type FakeNavigator struct {
	*testing.Fake
}

func (*FakeNavigator) CassandraClusters

func (c *FakeNavigator) CassandraClusters(namespace string) internalversion.CassandraClusterInterface

func (*FakeNavigator) ElasticsearchClusters

func (c *FakeNavigator) ElasticsearchClusters(namespace string) internalversion.ElasticsearchClusterInterface

func (*FakeNavigator) Pilots

func (c *FakeNavigator) Pilots(namespace string) internalversion.PilotInterface

func (*FakeNavigator) RESTClient

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

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

type FakePilots

type FakePilots struct {
	Fake *FakeNavigator
	// contains filtered or unexported fields
}

FakePilots implements PilotInterface

func (*FakePilots) Create

func (c *FakePilots) Create(pilot *navigator.Pilot) (result *navigator.Pilot, err error)

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

func (*FakePilots) Delete

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

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

func (*FakePilots) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakePilots) Get

func (c *FakePilots) Get(name string, options v1.GetOptions) (result *navigator.Pilot, err error)

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

func (*FakePilots) List

func (c *FakePilots) List(opts v1.ListOptions) (result *navigator.PilotList, err error)

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

func (*FakePilots) Patch

func (c *FakePilots) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *navigator.Pilot, err error)

Patch applies the patch and returns the patched pilot.

func (*FakePilots) Update

func (c *FakePilots) Update(pilot *navigator.Pilot) (result *navigator.Pilot, err error)

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

func (*FakePilots) UpdateStatus

func (c *FakePilots) UpdateStatus(pilot *navigator.Pilot) (*navigator.Pilot, error)

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

func (*FakePilots) Watch

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

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

Jump to

Keyboard shortcuts

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