Documentation ¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeRoboscaleV1alpha1
- type FakeRobots
- func (c *FakeRobots) Create(ctx context.Context, robot *v1alpha1.Robot, opts v1.CreateOptions) (result *v1alpha1.Robot, err error)
- func (c *FakeRobots) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeRobots) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeRobots) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Robot, err error)
- func (c *FakeRobots) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.RobotList, err error)
- func (c *FakeRobots) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1alpha1.Robot, err error)
- func (c *FakeRobots) Update(ctx context.Context, robot *v1alpha1.Robot, opts v1.UpdateOptions) (result *v1alpha1.Robot, err error)
- func (c *FakeRobots) UpdateStatus(ctx context.Context, robot *v1alpha1.Robot, opts v1.UpdateOptions) (*v1alpha1.Robot, error)
- func (c *FakeRobots) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeRoboscaleV1alpha1 ¶
func (*FakeRoboscaleV1alpha1) RESTClient ¶
func (c *FakeRoboscaleV1alpha1) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.
func (*FakeRoboscaleV1alpha1) Robots ¶
func (c *FakeRoboscaleV1alpha1) Robots(namespace string) v1alpha1.RobotInterface
type FakeRobots ¶
type FakeRobots struct { Fake *FakeRoboscaleV1alpha1 // contains filtered or unexported fields }
FakeRobots implements RobotInterface
func (*FakeRobots) Create ¶
func (c *FakeRobots) Create(ctx context.Context, robot *v1alpha1.Robot, opts v1.CreateOptions) (result *v1alpha1.Robot, err error)
Create takes the representation of a robot and creates it. Returns the server's representation of the robot, and an error, if there is any.
func (*FakeRobots) Delete ¶
func (c *FakeRobots) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the robot and deletes it. Returns an error if one occurs.
func (*FakeRobots) DeleteCollection ¶
func (c *FakeRobots) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeRobots) Get ¶
func (c *FakeRobots) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Robot, err error)
Get takes name of the robot, and returns the corresponding robot object, and an error if there is any.
func (*FakeRobots) List ¶
func (c *FakeRobots) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.RobotList, err error)
List takes label and field selectors, and returns the list of Robots that match those selectors.
func (*FakeRobots) Patch ¶
func (c *FakeRobots) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.Robot, err error)
Patch applies the patch and returns the patched robot.
func (*FakeRobots) Update ¶
func (c *FakeRobots) Update(ctx context.Context, robot *v1alpha1.Robot, opts v1.UpdateOptions) (result *v1alpha1.Robot, err error)
Update takes the representation of a robot and updates it. Returns the server's representation of the robot, and an error, if there is any.
func (*FakeRobots) UpdateStatus ¶
func (c *FakeRobots) UpdateStatus(ctx context.Context, robot *v1alpha1.Robot, opts v1.UpdateOptions) (*v1alpha1.Robot, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeRobots) Watch ¶
func (c *FakeRobots) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested robots.