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