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