fake

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2022 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 FakeCustomHTTPSConfigurations

type FakeCustomHTTPSConfigurations struct {
	Fake *FakeFrontdoorV1alpha1
	// contains filtered or unexported fields
}

FakeCustomHTTPSConfigurations implements CustomHTTPSConfigurationInterface

func (*FakeCustomHTTPSConfigurations) Create

Create takes the representation of a customHTTPSConfiguration and creates it. Returns the server's representation of the customHTTPSConfiguration, and an error, if there is any.

func (*FakeCustomHTTPSConfigurations) Delete

Delete takes name of the customHTTPSConfiguration and deletes it. Returns an error if one occurs.

func (*FakeCustomHTTPSConfigurations) DeleteCollection

func (c *FakeCustomHTTPSConfigurations) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeCustomHTTPSConfigurations) Get

Get takes name of the customHTTPSConfiguration, and returns the corresponding customHTTPSConfiguration object, and an error if there is any.

func (*FakeCustomHTTPSConfigurations) List

List takes label and field selectors, and returns the list of CustomHTTPSConfigurations that match those selectors.

func (*FakeCustomHTTPSConfigurations) Patch

func (c *FakeCustomHTTPSConfigurations) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.CustomHTTPSConfiguration, err error)

Patch applies the patch and returns the patched customHTTPSConfiguration.

func (*FakeCustomHTTPSConfigurations) Update

Update takes the representation of a customHTTPSConfiguration and updates it. Returns the server's representation of the customHTTPSConfiguration, and an error, if there is any.

func (*FakeCustomHTTPSConfigurations) UpdateStatus

UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().

func (*FakeCustomHTTPSConfigurations) Watch

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

type FakeFirewallPolicies

type FakeFirewallPolicies struct {
	Fake *FakeFrontdoorV1alpha1
	// contains filtered or unexported fields
}

FakeFirewallPolicies implements FirewallPolicyInterface

func (*FakeFirewallPolicies) Create

func (c *FakeFirewallPolicies) Create(ctx context.Context, firewallPolicy *v1alpha1.FirewallPolicy, opts v1.CreateOptions) (result *v1alpha1.FirewallPolicy, err error)

Create takes the representation of a firewallPolicy and creates it. Returns the server's representation of the firewallPolicy, and an error, if there is any.

func (*FakeFirewallPolicies) Delete

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

Delete takes name of the firewallPolicy and deletes it. Returns an error if one occurs.

func (*FakeFirewallPolicies) DeleteCollection

func (c *FakeFirewallPolicies) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeFirewallPolicies) Get

func (c *FakeFirewallPolicies) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.FirewallPolicy, err error)

Get takes name of the firewallPolicy, and returns the corresponding firewallPolicy object, and an error if there is any.

func (*FakeFirewallPolicies) List

List takes label and field selectors, and returns the list of FirewallPolicies that match those selectors.

func (*FakeFirewallPolicies) Patch

func (c *FakeFirewallPolicies) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.FirewallPolicy, err error)

Patch applies the patch and returns the patched firewallPolicy.

func (*FakeFirewallPolicies) Update

func (c *FakeFirewallPolicies) Update(ctx context.Context, firewallPolicy *v1alpha1.FirewallPolicy, opts v1.UpdateOptions) (result *v1alpha1.FirewallPolicy, err error)

Update takes the representation of a firewallPolicy and updates it. Returns the server's representation of the firewallPolicy, and an error, if there is any.

func (*FakeFirewallPolicies) UpdateStatus

func (c *FakeFirewallPolicies) UpdateStatus(ctx context.Context, firewallPolicy *v1alpha1.FirewallPolicy, opts v1.UpdateOptions) (*v1alpha1.FirewallPolicy, error)

UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().

func (*FakeFirewallPolicies) Watch

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

type FakeFrontdoorV1alpha1

type FakeFrontdoorV1alpha1 struct {
	*testing.Fake
}

func (*FakeFrontdoorV1alpha1) CustomHTTPSConfigurations

func (c *FakeFrontdoorV1alpha1) CustomHTTPSConfigurations(namespace string) v1alpha1.CustomHTTPSConfigurationInterface

func (*FakeFrontdoorV1alpha1) FirewallPolicies

func (c *FakeFrontdoorV1alpha1) FirewallPolicies(namespace string) v1alpha1.FirewallPolicyInterface

func (*FakeFrontdoorV1alpha1) Frontdoors

func (c *FakeFrontdoorV1alpha1) Frontdoors(namespace string) v1alpha1.FrontdoorInterface

func (*FakeFrontdoorV1alpha1) RESTClient

func (c *FakeFrontdoorV1alpha1) RESTClient() rest.Interface

RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.

func (*FakeFrontdoorV1alpha1) RulesEngines added in v0.5.0

func (c *FakeFrontdoorV1alpha1) RulesEngines(namespace string) v1alpha1.RulesEngineInterface

type FakeFrontdoors

type FakeFrontdoors struct {
	Fake *FakeFrontdoorV1alpha1
	// contains filtered or unexported fields
}

FakeFrontdoors implements FrontdoorInterface

func (*FakeFrontdoors) Create

func (c *FakeFrontdoors) Create(ctx context.Context, frontdoor *v1alpha1.Frontdoor, opts v1.CreateOptions) (result *v1alpha1.Frontdoor, err error)

Create takes the representation of a frontdoor and creates it. Returns the server's representation of the frontdoor, and an error, if there is any.

func (*FakeFrontdoors) Delete

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

Delete takes name of the frontdoor and deletes it. Returns an error if one occurs.

func (*FakeFrontdoors) DeleteCollection

func (c *FakeFrontdoors) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeFrontdoors) Get

func (c *FakeFrontdoors) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Frontdoor, err error)

Get takes name of the frontdoor, and returns the corresponding frontdoor object, and an error if there is any.

func (*FakeFrontdoors) List

func (c *FakeFrontdoors) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.FrontdoorList, err error)

List takes label and field selectors, and returns the list of Frontdoors that match those selectors.

func (*FakeFrontdoors) Patch

func (c *FakeFrontdoors) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.Frontdoor, err error)

Patch applies the patch and returns the patched frontdoor.

func (*FakeFrontdoors) Update

func (c *FakeFrontdoors) Update(ctx context.Context, frontdoor *v1alpha1.Frontdoor, opts v1.UpdateOptions) (result *v1alpha1.Frontdoor, err error)

Update takes the representation of a frontdoor and updates it. Returns the server's representation of the frontdoor, and an error, if there is any.

func (*FakeFrontdoors) UpdateStatus

func (c *FakeFrontdoors) UpdateStatus(ctx context.Context, frontdoor *v1alpha1.Frontdoor, opts v1.UpdateOptions) (*v1alpha1.Frontdoor, error)

UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().

func (*FakeFrontdoors) Watch

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

type FakeRulesEngines added in v0.5.0

type FakeRulesEngines struct {
	Fake *FakeFrontdoorV1alpha1
	// contains filtered or unexported fields
}

FakeRulesEngines implements RulesEngineInterface

func (*FakeRulesEngines) Create added in v0.5.0

func (c *FakeRulesEngines) Create(ctx context.Context, rulesEngine *v1alpha1.RulesEngine, opts v1.CreateOptions) (result *v1alpha1.RulesEngine, err error)

Create takes the representation of a rulesEngine and creates it. Returns the server's representation of the rulesEngine, and an error, if there is any.

func (*FakeRulesEngines) Delete added in v0.5.0

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

Delete takes name of the rulesEngine and deletes it. Returns an error if one occurs.

func (*FakeRulesEngines) DeleteCollection added in v0.5.0

func (c *FakeRulesEngines) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeRulesEngines) Get added in v0.5.0

func (c *FakeRulesEngines) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.RulesEngine, err error)

Get takes name of the rulesEngine, and returns the corresponding rulesEngine object, and an error if there is any.

func (*FakeRulesEngines) List added in v0.5.0

func (c *FakeRulesEngines) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.RulesEngineList, err error)

List takes label and field selectors, and returns the list of RulesEngines that match those selectors.

func (*FakeRulesEngines) Patch added in v0.5.0

func (c *FakeRulesEngines) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.RulesEngine, err error)

Patch applies the patch and returns the patched rulesEngine.

func (*FakeRulesEngines) Update added in v0.5.0

func (c *FakeRulesEngines) Update(ctx context.Context, rulesEngine *v1alpha1.RulesEngine, opts v1.UpdateOptions) (result *v1alpha1.RulesEngine, err error)

Update takes the representation of a rulesEngine and updates it. Returns the server's representation of the rulesEngine, and an error, if there is any.

func (*FakeRulesEngines) UpdateStatus added in v0.5.0

func (c *FakeRulesEngines) UpdateStatus(ctx context.Context, rulesEngine *v1alpha1.RulesEngine, opts v1.UpdateOptions) (*v1alpha1.RulesEngine, error)

UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().

func (*FakeRulesEngines) Watch added in v0.5.0

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

Jump to

Keyboard shortcuts

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