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 FakeApplicationRuleCollections

type FakeApplicationRuleCollections struct {
	Fake *FakeFirewallV1alpha1
	// contains filtered or unexported fields
}

FakeApplicationRuleCollections implements ApplicationRuleCollectionInterface

func (*FakeApplicationRuleCollections) Create

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

func (*FakeApplicationRuleCollections) Delete

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

func (*FakeApplicationRuleCollections) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeApplicationRuleCollections) Get

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

func (*FakeApplicationRuleCollections) List

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

func (*FakeApplicationRuleCollections) Patch

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

Patch applies the patch and returns the patched applicationRuleCollection.

func (*FakeApplicationRuleCollections) Update

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

func (*FakeApplicationRuleCollections) UpdateStatus

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

func (*FakeApplicationRuleCollections) Watch

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

type FakeFirewallV1alpha1

type FakeFirewallV1alpha1 struct {
	*testing.Fake
}

func (*FakeFirewallV1alpha1) ApplicationRuleCollections

func (c *FakeFirewallV1alpha1) ApplicationRuleCollections(namespace string) v1alpha1.ApplicationRuleCollectionInterface

func (*FakeFirewallV1alpha1) Firewalls

func (c *FakeFirewallV1alpha1) Firewalls(namespace string) v1alpha1.FirewallInterface

func (*FakeFirewallV1alpha1) NatRuleCollections

func (c *FakeFirewallV1alpha1) NatRuleCollections(namespace string) v1alpha1.NatRuleCollectionInterface

func (*FakeFirewallV1alpha1) NetworkRuleCollections

func (c *FakeFirewallV1alpha1) NetworkRuleCollections(namespace string) v1alpha1.NetworkRuleCollectionInterface

func (*FakeFirewallV1alpha1) Policies

func (c *FakeFirewallV1alpha1) Policies(namespace string) v1alpha1.PolicyInterface

func (*FakeFirewallV1alpha1) PolicyRuleCollectionGroups

func (c *FakeFirewallV1alpha1) PolicyRuleCollectionGroups(namespace string) v1alpha1.PolicyRuleCollectionGroupInterface

func (*FakeFirewallV1alpha1) RESTClient

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

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

type FakeFirewalls

type FakeFirewalls struct {
	Fake *FakeFirewallV1alpha1
	// contains filtered or unexported fields
}

FakeFirewalls implements FirewallInterface

func (*FakeFirewalls) Create

func (c *FakeFirewalls) Create(ctx context.Context, firewall *v1alpha1.Firewall, opts v1.CreateOptions) (result *v1alpha1.Firewall, err error)

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

func (*FakeFirewalls) Delete

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

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

func (*FakeFirewalls) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeFirewalls) Get

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

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

func (*FakeFirewalls) List

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

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

func (*FakeFirewalls) Patch

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

Patch applies the patch and returns the patched firewall.

func (*FakeFirewalls) Update

func (c *FakeFirewalls) Update(ctx context.Context, firewall *v1alpha1.Firewall, opts v1.UpdateOptions) (result *v1alpha1.Firewall, err error)

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

func (*FakeFirewalls) UpdateStatus

func (c *FakeFirewalls) UpdateStatus(ctx context.Context, firewall *v1alpha1.Firewall, opts v1.UpdateOptions) (*v1alpha1.Firewall, error)

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

func (*FakeFirewalls) Watch

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

type FakeNatRuleCollections

type FakeNatRuleCollections struct {
	Fake *FakeFirewallV1alpha1
	// contains filtered or unexported fields
}

FakeNatRuleCollections implements NatRuleCollectionInterface

func (*FakeNatRuleCollections) Create

func (c *FakeNatRuleCollections) Create(ctx context.Context, natRuleCollection *v1alpha1.NatRuleCollection, opts v1.CreateOptions) (result *v1alpha1.NatRuleCollection, err error)

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

func (*FakeNatRuleCollections) Delete

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

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

func (*FakeNatRuleCollections) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeNatRuleCollections) Get

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

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

func (*FakeNatRuleCollections) List

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

func (*FakeNatRuleCollections) Patch

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

Patch applies the patch and returns the patched natRuleCollection.

func (*FakeNatRuleCollections) Update

func (c *FakeNatRuleCollections) Update(ctx context.Context, natRuleCollection *v1alpha1.NatRuleCollection, opts v1.UpdateOptions) (result *v1alpha1.NatRuleCollection, err error)

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

func (*FakeNatRuleCollections) UpdateStatus

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

func (*FakeNatRuleCollections) Watch

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

type FakeNetworkRuleCollections

type FakeNetworkRuleCollections struct {
	Fake *FakeFirewallV1alpha1
	// contains filtered or unexported fields
}

FakeNetworkRuleCollections implements NetworkRuleCollectionInterface

func (*FakeNetworkRuleCollections) Create

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

func (*FakeNetworkRuleCollections) Delete

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

func (*FakeNetworkRuleCollections) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeNetworkRuleCollections) Get

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

func (*FakeNetworkRuleCollections) List

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

func (*FakeNetworkRuleCollections) Patch

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

Patch applies the patch and returns the patched networkRuleCollection.

func (*FakeNetworkRuleCollections) Update

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

func (*FakeNetworkRuleCollections) UpdateStatus

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

func (*FakeNetworkRuleCollections) Watch

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

type FakePolicies

type FakePolicies struct {
	Fake *FakeFirewallV1alpha1
	// contains filtered or unexported fields
}

FakePolicies implements PolicyInterface

func (*FakePolicies) Create

func (c *FakePolicies) Create(ctx context.Context, policy *v1alpha1.Policy, opts v1.CreateOptions) (result *v1alpha1.Policy, err error)

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

func (*FakePolicies) Delete

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

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

func (*FakePolicies) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakePolicies) Get

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

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

func (*FakePolicies) List

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

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

func (*FakePolicies) Patch

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

Patch applies the patch and returns the patched policy.

func (*FakePolicies) Update

func (c *FakePolicies) Update(ctx context.Context, policy *v1alpha1.Policy, opts v1.UpdateOptions) (result *v1alpha1.Policy, err error)

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

func (*FakePolicies) UpdateStatus

func (c *FakePolicies) UpdateStatus(ctx context.Context, policy *v1alpha1.Policy, opts v1.UpdateOptions) (*v1alpha1.Policy, error)

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

func (*FakePolicies) Watch

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

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

type FakePolicyRuleCollectionGroups

type FakePolicyRuleCollectionGroups struct {
	Fake *FakeFirewallV1alpha1
	// contains filtered or unexported fields
}

FakePolicyRuleCollectionGroups implements PolicyRuleCollectionGroupInterface

func (*FakePolicyRuleCollectionGroups) Create

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

func (*FakePolicyRuleCollectionGroups) Delete

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

func (*FakePolicyRuleCollectionGroups) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakePolicyRuleCollectionGroups) Get

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

func (*FakePolicyRuleCollectionGroups) List

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

func (*FakePolicyRuleCollectionGroups) Patch

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

Patch applies the patch and returns the patched policyRuleCollectionGroup.

func (*FakePolicyRuleCollectionGroups) Update

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

func (*FakePolicyRuleCollectionGroups) UpdateStatus

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

func (*FakePolicyRuleCollectionGroups) Watch

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

Jump to

Keyboard shortcuts

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