fake

package
v0.0.0-...-b3f0fa4 Latest Latest
Warning

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

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

Documentation

Overview

Copyright 2018 Oracle and/or its affiliates. All rights reserved.

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 Oracle and/or its affiliates. All rights reserved.

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 Oracle and/or its affiliates. All rights reserved.

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 Oracle and/or its affiliates. All rights reserved.

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 Oracle and/or its affiliates. All rights reserved.

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 Oracle and/or its affiliates. All rights reserved.

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 Oracle and/or its affiliates. All rights reserved.

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 Oracle and/or its affiliates. All rights reserved.

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 Oracle and/or its affiliates. All rights reserved.

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 FakeCloudV1alpha1

type FakeCloudV1alpha1 struct {
	*testing.Fake
}

func (*FakeCloudV1alpha1) Clusters

func (c *FakeCloudV1alpha1) Clusters(namespace string) v1alpha1.ClusterInterface

func (*FakeCloudV1alpha1) Computes

func (c *FakeCloudV1alpha1) Computes(namespace string) v1alpha1.ComputeInterface

func (*FakeCloudV1alpha1) Cpods

func (c *FakeCloudV1alpha1) Cpods(namespace string) v1alpha1.CpodInterface

func (*FakeCloudV1alpha1) LoadBalancers

func (c *FakeCloudV1alpha1) LoadBalancers(namespace string) v1alpha1.LoadBalancerInterface

func (*FakeCloudV1alpha1) Networks

func (c *FakeCloudV1alpha1) Networks(namespace string) v1alpha1.NetworkInterface

func (*FakeCloudV1alpha1) RESTClient

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

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

func (*FakeCloudV1alpha1) Securities

func (c *FakeCloudV1alpha1) Securities(namespace string) v1alpha1.SecurityInterface

func (*FakeCloudV1alpha1) Storages

func (c *FakeCloudV1alpha1) Storages(namespace string) v1alpha1.StorageInterface

type FakeClusters

type FakeClusters struct {
	Fake *FakeCloudV1alpha1
	// contains filtered or unexported fields
}

FakeClusters implements ClusterInterface

func (*FakeClusters) Create

func (c *FakeClusters) Create(cluster *v1alpha1.Cluster) (result *v1alpha1.Cluster, err error)

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

func (*FakeClusters) Delete

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

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

func (*FakeClusters) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeClusters) Get

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

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

func (*FakeClusters) List

func (c *FakeClusters) List(opts v1.ListOptions) (result *v1alpha1.ClusterList, err error)

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

func (*FakeClusters) Patch

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

Patch applies the patch and returns the patched cluster.

func (*FakeClusters) Update

func (c *FakeClusters) Update(cluster *v1alpha1.Cluster) (result *v1alpha1.Cluster, err error)

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

func (*FakeClusters) Watch

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

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

type FakeComputes

type FakeComputes struct {
	Fake *FakeCloudV1alpha1
	// contains filtered or unexported fields
}

FakeComputes implements ComputeInterface

func (*FakeComputes) Create

func (c *FakeComputes) Create(compute *v1alpha1.Compute) (result *v1alpha1.Compute, err error)

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

func (*FakeComputes) Delete

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

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

func (*FakeComputes) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeComputes) Get

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

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

func (*FakeComputes) List

func (c *FakeComputes) List(opts v1.ListOptions) (result *v1alpha1.ComputeList, err error)

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

func (*FakeComputes) Patch

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

Patch applies the patch and returns the patched compute.

func (*FakeComputes) Update

func (c *FakeComputes) Update(compute *v1alpha1.Compute) (result *v1alpha1.Compute, err error)

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

func (*FakeComputes) Watch

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

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

type FakeCpods

type FakeCpods struct {
	Fake *FakeCloudV1alpha1
	// contains filtered or unexported fields
}

FakeCpods implements CpodInterface

func (*FakeCpods) Create

func (c *FakeCpods) Create(cpod *v1alpha1.Cpod) (result *v1alpha1.Cpod, err error)

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

func (*FakeCpods) Delete

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

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

func (*FakeCpods) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeCpods) Get

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

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

func (*FakeCpods) List

func (c *FakeCpods) List(opts v1.ListOptions) (result *v1alpha1.CpodList, err error)

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

func (*FakeCpods) Patch

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

Patch applies the patch and returns the patched cpod.

func (*FakeCpods) Update

func (c *FakeCpods) Update(cpod *v1alpha1.Cpod) (result *v1alpha1.Cpod, err error)

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

func (*FakeCpods) Watch

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

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

type FakeLoadBalancers

type FakeLoadBalancers struct {
	Fake *FakeCloudV1alpha1
	// contains filtered or unexported fields
}

FakeLoadBalancers implements LoadBalancerInterface

func (*FakeLoadBalancers) Create

func (c *FakeLoadBalancers) Create(loadBalancer *v1alpha1.LoadBalancer) (result *v1alpha1.LoadBalancer, err error)

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

func (*FakeLoadBalancers) Delete

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

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

func (*FakeLoadBalancers) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeLoadBalancers) Get

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

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

func (*FakeLoadBalancers) List

func (c *FakeLoadBalancers) List(opts v1.ListOptions) (result *v1alpha1.LoadBalancerList, err error)

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

func (*FakeLoadBalancers) Patch

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

Patch applies the patch and returns the patched loadBalancer.

func (*FakeLoadBalancers) Update

func (c *FakeLoadBalancers) Update(loadBalancer *v1alpha1.LoadBalancer) (result *v1alpha1.LoadBalancer, err error)

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

func (*FakeLoadBalancers) Watch

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

type FakeNetworks

type FakeNetworks struct {
	Fake *FakeCloudV1alpha1
	// contains filtered or unexported fields
}

FakeNetworks implements NetworkInterface

func (*FakeNetworks) Create

func (c *FakeNetworks) Create(network *v1alpha1.Network) (result *v1alpha1.Network, err error)

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

func (*FakeNetworks) Delete

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

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

func (*FakeNetworks) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeNetworks) Get

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

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

func (*FakeNetworks) List

func (c *FakeNetworks) List(opts v1.ListOptions) (result *v1alpha1.NetworkList, err error)

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

func (*FakeNetworks) Patch

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

Patch applies the patch and returns the patched network.

func (*FakeNetworks) Update

func (c *FakeNetworks) Update(network *v1alpha1.Network) (result *v1alpha1.Network, err error)

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

func (*FakeNetworks) Watch

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

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

type FakeSecurities

type FakeSecurities struct {
	Fake *FakeCloudV1alpha1
	// contains filtered or unexported fields
}

FakeSecurities implements SecurityInterface

func (*FakeSecurities) Create

func (c *FakeSecurities) Create(security *v1alpha1.Security) (result *v1alpha1.Security, err error)

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

func (*FakeSecurities) Delete

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

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

func (*FakeSecurities) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeSecurities) Get

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

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

func (*FakeSecurities) List

func (c *FakeSecurities) List(opts v1.ListOptions) (result *v1alpha1.SecurityList, err error)

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

func (*FakeSecurities) Patch

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

Patch applies the patch and returns the patched security.

func (*FakeSecurities) Update

func (c *FakeSecurities) Update(security *v1alpha1.Security) (result *v1alpha1.Security, err error)

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

func (*FakeSecurities) Watch

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

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

type FakeStorages

type FakeStorages struct {
	Fake *FakeCloudV1alpha1
	// contains filtered or unexported fields
}

FakeStorages implements StorageInterface

func (*FakeStorages) Create

func (c *FakeStorages) Create(storage *v1alpha1.Storage) (result *v1alpha1.Storage, err error)

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

func (*FakeStorages) Delete

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

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

func (*FakeStorages) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeStorages) Get

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

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

func (*FakeStorages) List

func (c *FakeStorages) List(opts v1.ListOptions) (result *v1alpha1.StorageList, err error)

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

func (*FakeStorages) Patch

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

Patch applies the patch and returns the patched storage.

func (*FakeStorages) Update

func (c *FakeStorages) Update(storage *v1alpha1.Storage) (result *v1alpha1.Storage, err error)

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

func (*FakeStorages) Watch

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

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

Jump to

Keyboard shortcuts

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