Documentation ¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeOpsV1
- type FakeRoutes
- func (c *FakeRoutes) Create(route *opsv1.Route) (result *opsv1.Route, err error)
- func (c *FakeRoutes) Delete(name string, options *v1.DeleteOptions) error
- func (c *FakeRoutes) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
- func (c *FakeRoutes) Get(name string, options v1.GetOptions) (result *opsv1.Route, err error)
- func (c *FakeRoutes) List(opts v1.ListOptions) (result *opsv1.RouteList, err error)
- func (c *FakeRoutes) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *opsv1.Route, err error)
- func (c *FakeRoutes) Update(route *opsv1.Route) (result *opsv1.Route, err error)
- func (c *FakeRoutes) Watch(opts v1.ListOptions) (watch.Interface, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeOpsV1 ¶
func (*FakeOpsV1) RESTClient ¶
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.
type FakeRoutes ¶
type FakeRoutes struct { Fake *FakeOpsV1 // contains filtered or unexported fields }
FakeRoutes implements RouteInterface
func (*FakeRoutes) Create ¶
Create takes the representation of a route and creates it. Returns the server's representation of the route, and an error, if there is any.
func (*FakeRoutes) Delete ¶
func (c *FakeRoutes) Delete(name string, options *v1.DeleteOptions) error
Delete takes name of the route and deletes it. Returns an error if one occurs.
func (*FakeRoutes) DeleteCollection ¶
func (c *FakeRoutes) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeRoutes) Get ¶
func (c *FakeRoutes) Get(name string, options v1.GetOptions) (result *opsv1.Route, err error)
Get takes name of the route, and returns the corresponding route object, and an error if there is any.
func (*FakeRoutes) List ¶
func (c *FakeRoutes) List(opts v1.ListOptions) (result *opsv1.RouteList, err error)
List takes label and field selectors, and returns the list of Routes that match those selectors.
func (*FakeRoutes) Patch ¶
func (c *FakeRoutes) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *opsv1.Route, err error)
Patch applies the patch and returns the patched route.
func (*FakeRoutes) Update ¶
Update takes the representation of a route and updates it. Returns the server's representation of the route, and an error, if there is any.
func (*FakeRoutes) Watch ¶
func (c *FakeRoutes) Watch(opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested routes.