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