fake

package
v1.6.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 4, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package fake has the automatically generated clients.

Index

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

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

func (c *FakeRules) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error

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().

func (*FakeRules) Watch

func (c *FakeRules) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)

Watch returns a watch.Interface that watches the requested rules.

type FakeRulesV1

type FakeRulesV1 struct {
	*testing.Fake
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL