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.
Index ¶
- type FakeClusters
- func (c *FakeClusters) Create(cluster *v1alpha1.Cluster) (result *v1alpha1.Cluster, err error)
- func (c *FakeClusters) Delete(name string, options *v1.DeleteOptions) error
- func (c *FakeClusters) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
- func (c *FakeClusters) Get(name string, options v1.GetOptions) (result *v1alpha1.Cluster, err error)
- func (c *FakeClusters) List(opts v1.ListOptions) (result *v1alpha1.ClusterList, err error)
- func (c *FakeClusters) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.Cluster, err error)
- func (c *FakeClusters) Update(cluster *v1alpha1.Cluster) (result *v1alpha1.Cluster, err error)
- func (c *FakeClusters) Watch(opts v1.ListOptions) (watch.Interface, error)
- type FakeNodePools
- func (c *FakeNodePools) Create(nodePool *v1alpha1.NodePool) (result *v1alpha1.NodePool, err error)
- func (c *FakeNodePools) Delete(name string, options *v1.DeleteOptions) error
- func (c *FakeNodePools) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
- func (c *FakeNodePools) Get(name string, options v1.GetOptions) (result *v1alpha1.NodePool, err error)
- func (c *FakeNodePools) List(opts v1.ListOptions) (result *v1alpha1.NodePoolList, err error)
- func (c *FakeNodePools) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.NodePool, err error)
- func (c *FakeNodePools) Update(nodePool *v1alpha1.NodePool) (result *v1alpha1.NodePool, err error)
- func (c *FakeNodePools) Watch(opts v1.ListOptions) (watch.Interface, error)
- type FakeOciceV1alpha1
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeClusters ¶
type FakeClusters struct { Fake *FakeOciceV1alpha1 // contains filtered or unexported fields }
FakeClusters implements ClusterInterface
func (*FakeClusters) Create ¶
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 ¶
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 FakeNodePools ¶
type FakeNodePools struct { Fake *FakeOciceV1alpha1 // contains filtered or unexported fields }
FakeNodePools implements NodePoolInterface
func (*FakeNodePools) Create ¶
Create takes the representation of a nodePool and creates it. Returns the server's representation of the nodePool, and an error, if there is any.
func (*FakeNodePools) Delete ¶
func (c *FakeNodePools) Delete(name string, options *v1.DeleteOptions) error
Delete takes name of the nodePool and deletes it. Returns an error if one occurs.
func (*FakeNodePools) DeleteCollection ¶
func (c *FakeNodePools) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeNodePools) Get ¶
func (c *FakeNodePools) Get(name string, options v1.GetOptions) (result *v1alpha1.NodePool, err error)
Get takes name of the nodePool, and returns the corresponding nodePool object, and an error if there is any.
func (*FakeNodePools) List ¶
func (c *FakeNodePools) List(opts v1.ListOptions) (result *v1alpha1.NodePoolList, err error)
List takes label and field selectors, and returns the list of NodePools that match those selectors.
func (*FakeNodePools) Patch ¶
func (c *FakeNodePools) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.NodePool, err error)
Patch applies the patch and returns the patched nodePool.
func (*FakeNodePools) Update ¶
Update takes the representation of a nodePool and updates it. Returns the server's representation of the nodePool, and an error, if there is any.
func (*FakeNodePools) Watch ¶
func (c *FakeNodePools) Watch(opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested nodePools.
type FakeOciceV1alpha1 ¶
func (*FakeOciceV1alpha1) Clusters ¶
func (c *FakeOciceV1alpha1) Clusters(namespace string) v1alpha1.ClusterInterface
func (*FakeOciceV1alpha1) NodePools ¶
func (c *FakeOciceV1alpha1) NodePools(namespace string) v1alpha1.NodePoolInterface
func (*FakeOciceV1alpha1) RESTClient ¶
func (c *FakeOciceV1alpha1) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.