fake

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 12 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 FakeAdminNetworkPolicies

type FakeAdminNetworkPolicies struct {
	Fake *FakePolicyV1alpha1
}

FakeAdminNetworkPolicies implements AdminNetworkPolicyInterface

func (*FakeAdminNetworkPolicies) Apply added in v0.1.3

Apply takes the given apply declarative configuration, applies it and returns the applied adminNetworkPolicy.

func (*FakeAdminNetworkPolicies) ApplyStatus added in v0.1.3

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

func (*FakeAdminNetworkPolicies) Create

func (c *FakeAdminNetworkPolicies) Create(ctx context.Context, adminNetworkPolicy *v1alpha1.AdminNetworkPolicy, opts v1.CreateOptions) (result *v1alpha1.AdminNetworkPolicy, err error)

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

func (*FakeAdminNetworkPolicies) Delete

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

func (*FakeAdminNetworkPolicies) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeAdminNetworkPolicies) Get

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

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

func (*FakeAdminNetworkPolicies) List

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

func (*FakeAdminNetworkPolicies) Patch

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

Patch applies the patch and returns the patched adminNetworkPolicy.

func (*FakeAdminNetworkPolicies) Update

func (c *FakeAdminNetworkPolicies) Update(ctx context.Context, adminNetworkPolicy *v1alpha1.AdminNetworkPolicy, opts v1.UpdateOptions) (result *v1alpha1.AdminNetworkPolicy, err error)

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

func (*FakeAdminNetworkPolicies) UpdateStatus

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

func (*FakeAdminNetworkPolicies) Watch

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

type FakeBaselineAdminNetworkPolicies

type FakeBaselineAdminNetworkPolicies struct {
	Fake *FakePolicyV1alpha1
}

FakeBaselineAdminNetworkPolicies implements BaselineAdminNetworkPolicyInterface

func (*FakeBaselineAdminNetworkPolicies) Apply added in v0.1.3

Apply takes the given apply declarative configuration, applies it and returns the applied baselineAdminNetworkPolicy.

func (*FakeBaselineAdminNetworkPolicies) ApplyStatus added in v0.1.3

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

func (*FakeBaselineAdminNetworkPolicies) Create

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

func (*FakeBaselineAdminNetworkPolicies) Delete

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

func (*FakeBaselineAdminNetworkPolicies) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeBaselineAdminNetworkPolicies) Get

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

func (*FakeBaselineAdminNetworkPolicies) List

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

func (*FakeBaselineAdminNetworkPolicies) Patch

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

Patch applies the patch and returns the patched baselineAdminNetworkPolicy.

func (*FakeBaselineAdminNetworkPolicies) Update

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

func (*FakeBaselineAdminNetworkPolicies) UpdateStatus

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

func (*FakeBaselineAdminNetworkPolicies) Watch

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

type FakePolicyV1alpha1

type FakePolicyV1alpha1 struct {
	*testing.Fake
}

func (*FakePolicyV1alpha1) AdminNetworkPolicies

func (c *FakePolicyV1alpha1) AdminNetworkPolicies() v1alpha1.AdminNetworkPolicyInterface

func (*FakePolicyV1alpha1) BaselineAdminNetworkPolicies

func (c *FakePolicyV1alpha1) BaselineAdminNetworkPolicies() v1alpha1.BaselineAdminNetworkPolicyInterface

func (*FakePolicyV1alpha1) RESTClient

func (c *FakePolicyV1alpha1) 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