Documentation ¶
Overview ¶
Package fake has the automatically generated clients.
Copyright by bingerambo@gmail.com
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 by bingerambo@gmail.com
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 FakeInspurV1
- type FakeNodeCaches
- func (c *FakeNodeCaches) Create(nodeCache *inspur_com_v1.NodeCache) (result *inspur_com_v1.NodeCache, err error)
- func (c *FakeNodeCaches) Delete(name string, options *v1.DeleteOptions) error
- func (c *FakeNodeCaches) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
- func (c *FakeNodeCaches) Get(name string, options v1.GetOptions) (result *inspur_com_v1.NodeCache, err error)
- func (c *FakeNodeCaches) List(opts v1.ListOptions) (result *inspur_com_v1.NodeCacheList, err error)
- func (c *FakeNodeCaches) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *inspur_com_v1.NodeCache, err error)
- func (c *FakeNodeCaches) Update(nodeCache *inspur_com_v1.NodeCache) (result *inspur_com_v1.NodeCache, err error)
- func (c *FakeNodeCaches) UpdateStatus(nodeCache *inspur_com_v1.NodeCache) (*inspur_com_v1.NodeCache, error)
- func (c *FakeNodeCaches) Watch(opts v1.ListOptions) (watch.Interface, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeInspurV1 ¶
func (*FakeInspurV1) NodeCaches ¶
func (c *FakeInspurV1) NodeCaches(namespace string) v1.NodeCacheInterface
func (*FakeInspurV1) RESTClient ¶
func (c *FakeInspurV1) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.
type FakeNodeCaches ¶
type FakeNodeCaches struct { Fake *FakeInspurV1 // contains filtered or unexported fields }
FakeNodeCaches implements NodeCacheInterface
func (*FakeNodeCaches) Create ¶
func (c *FakeNodeCaches) Create(nodeCache *inspur_com_v1.NodeCache) (result *inspur_com_v1.NodeCache, err error)
Create takes the representation of a nodeCache and creates it. Returns the server's representation of the nodeCache, and an error, if there is any.
func (*FakeNodeCaches) Delete ¶
func (c *FakeNodeCaches) Delete(name string, options *v1.DeleteOptions) error
Delete takes name of the nodeCache and deletes it. Returns an error if one occurs.
func (*FakeNodeCaches) DeleteCollection ¶
func (c *FakeNodeCaches) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeNodeCaches) Get ¶
func (c *FakeNodeCaches) Get(name string, options v1.GetOptions) (result *inspur_com_v1.NodeCache, err error)
Get takes name of the nodeCache, and returns the corresponding nodeCache object, and an error if there is any.
func (*FakeNodeCaches) List ¶
func (c *FakeNodeCaches) List(opts v1.ListOptions) (result *inspur_com_v1.NodeCacheList, err error)
List takes label and field selectors, and returns the list of NodeCaches that match those selectors.
func (*FakeNodeCaches) Patch ¶
func (c *FakeNodeCaches) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *inspur_com_v1.NodeCache, err error)
Patch applies the patch and returns the patched nodeCache.
func (*FakeNodeCaches) Update ¶
func (c *FakeNodeCaches) Update(nodeCache *inspur_com_v1.NodeCache) (result *inspur_com_v1.NodeCache, err error)
Update takes the representation of a nodeCache and updates it. Returns the server's representation of the nodeCache, and an error, if there is any.
func (*FakeNodeCaches) UpdateStatus ¶
func (c *FakeNodeCaches) UpdateStatus(nodeCache *inspur_com_v1.NodeCache) (*inspur_com_v1.NodeCache, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeNodeCaches) Watch ¶
func (c *FakeNodeCaches) Watch(opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested nodeCaches.