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 FakeApplicationFirewallPolicies

type FakeApplicationFirewallPolicies struct {
	Fake *FakeWebV1alpha1
	// contains filtered or unexported fields
}

FakeApplicationFirewallPolicies implements ApplicationFirewallPolicyInterface

func (*FakeApplicationFirewallPolicies) Create

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

func (*FakeApplicationFirewallPolicies) Delete

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

func (*FakeApplicationFirewallPolicies) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeApplicationFirewallPolicies) Get

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

func (*FakeApplicationFirewallPolicies) List

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

func (*FakeApplicationFirewallPolicies) Patch

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

Patch applies the patch and returns the patched applicationFirewallPolicy.

func (*FakeApplicationFirewallPolicies) Update

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

func (*FakeApplicationFirewallPolicies) UpdateStatus

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

func (*FakeApplicationFirewallPolicies) Watch

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

type FakePubsubHubs added in v0.5.0

type FakePubsubHubs struct {
	Fake *FakeWebV1alpha1
	// contains filtered or unexported fields
}

FakePubsubHubs implements PubsubHubInterface

func (*FakePubsubHubs) Create added in v0.5.0

func (c *FakePubsubHubs) Create(ctx context.Context, pubsubHub *v1alpha1.PubsubHub, opts v1.CreateOptions) (result *v1alpha1.PubsubHub, err error)

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

func (*FakePubsubHubs) Delete added in v0.5.0

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

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

func (*FakePubsubHubs) DeleteCollection added in v0.5.0

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

DeleteCollection deletes a collection of objects.

func (*FakePubsubHubs) Get added in v0.5.0

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

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

func (*FakePubsubHubs) List added in v0.5.0

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

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

func (*FakePubsubHubs) Patch added in v0.5.0

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

Patch applies the patch and returns the patched pubsubHub.

func (*FakePubsubHubs) Update added in v0.5.0

func (c *FakePubsubHubs) Update(ctx context.Context, pubsubHub *v1alpha1.PubsubHub, opts v1.UpdateOptions) (result *v1alpha1.PubsubHub, err error)

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

func (*FakePubsubHubs) UpdateStatus added in v0.5.0

func (c *FakePubsubHubs) UpdateStatus(ctx context.Context, pubsubHub *v1alpha1.PubsubHub, opts v1.UpdateOptions) (*v1alpha1.PubsubHub, error)

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

func (*FakePubsubHubs) Watch added in v0.5.0

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

type FakePubsubNetworkACLs added in v0.5.0

type FakePubsubNetworkACLs struct {
	Fake *FakeWebV1alpha1
	// contains filtered or unexported fields
}

FakePubsubNetworkACLs implements PubsubNetworkACLInterface

func (*FakePubsubNetworkACLs) Create added in v0.5.0

func (c *FakePubsubNetworkACLs) Create(ctx context.Context, pubsubNetworkACL *v1alpha1.PubsubNetworkACL, opts v1.CreateOptions) (result *v1alpha1.PubsubNetworkACL, err error)

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

func (*FakePubsubNetworkACLs) Delete added in v0.5.0

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

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

func (*FakePubsubNetworkACLs) DeleteCollection added in v0.5.0

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

DeleteCollection deletes a collection of objects.

func (*FakePubsubNetworkACLs) Get added in v0.5.0

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

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

func (*FakePubsubNetworkACLs) List added in v0.5.0

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

func (*FakePubsubNetworkACLs) Patch added in v0.5.0

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

Patch applies the patch and returns the patched pubsubNetworkACL.

func (*FakePubsubNetworkACLs) Update added in v0.5.0

func (c *FakePubsubNetworkACLs) Update(ctx context.Context, pubsubNetworkACL *v1alpha1.PubsubNetworkACL, opts v1.UpdateOptions) (result *v1alpha1.PubsubNetworkACL, err error)

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

func (*FakePubsubNetworkACLs) UpdateStatus added in v0.5.0

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

func (*FakePubsubNetworkACLs) Watch added in v0.5.0

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

type FakePubsubs added in v0.5.0

type FakePubsubs struct {
	Fake *FakeWebV1alpha1
	// contains filtered or unexported fields
}

FakePubsubs implements PubsubInterface

func (*FakePubsubs) Create added in v0.5.0

func (c *FakePubsubs) Create(ctx context.Context, pubsub *v1alpha1.Pubsub, opts v1.CreateOptions) (result *v1alpha1.Pubsub, err error)

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

func (*FakePubsubs) Delete added in v0.5.0

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

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

func (*FakePubsubs) DeleteCollection added in v0.5.0

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

DeleteCollection deletes a collection of objects.

func (*FakePubsubs) Get added in v0.5.0

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

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

func (*FakePubsubs) List added in v0.5.0

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

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

func (*FakePubsubs) Patch added in v0.5.0

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

Patch applies the patch and returns the patched pubsub.

func (*FakePubsubs) Update added in v0.5.0

func (c *FakePubsubs) Update(ctx context.Context, pubsub *v1alpha1.Pubsub, opts v1.UpdateOptions) (result *v1alpha1.Pubsub, err error)

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

func (*FakePubsubs) UpdateStatus added in v0.5.0

func (c *FakePubsubs) UpdateStatus(ctx context.Context, pubsub *v1alpha1.Pubsub, opts v1.UpdateOptions) (*v1alpha1.Pubsub, error)

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

func (*FakePubsubs) Watch added in v0.5.0

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

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

type FakeWebV1alpha1

type FakeWebV1alpha1 struct {
	*testing.Fake
}

func (*FakeWebV1alpha1) ApplicationFirewallPolicies

func (c *FakeWebV1alpha1) ApplicationFirewallPolicies(namespace string) v1alpha1.ApplicationFirewallPolicyInterface

func (*FakeWebV1alpha1) PubsubHubs added in v0.5.0

func (c *FakeWebV1alpha1) PubsubHubs(namespace string) v1alpha1.PubsubHubInterface

func (*FakeWebV1alpha1) PubsubNetworkACLs added in v0.5.0

func (c *FakeWebV1alpha1) PubsubNetworkACLs(namespace string) v1alpha1.PubsubNetworkACLInterface

func (*FakeWebV1alpha1) Pubsubs added in v0.5.0

func (c *FakeWebV1alpha1) Pubsubs(namespace string) v1alpha1.PubsubInterface

func (*FakeWebV1alpha1) RESTClient

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

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

Jump to

Keyboard shortcuts

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