fake

package
Version: v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 28, 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 FakeClusterNetworkPolicies

type FakeClusterNetworkPolicies struct {
	Fake *FakeSecurityV1alpha1
}

FakeClusterNetworkPolicies implements ClusterNetworkPolicyInterface

func (*FakeClusterNetworkPolicies) Create

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

func (*FakeClusterNetworkPolicies) Delete

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

func (*FakeClusterNetworkPolicies) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeClusterNetworkPolicies) Get

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

func (*FakeClusterNetworkPolicies) List

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

func (*FakeClusterNetworkPolicies) Patch

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

Patch applies the patch and returns the patched clusterNetworkPolicy.

func (*FakeClusterNetworkPolicies) Update

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

func (*FakeClusterNetworkPolicies) UpdateStatus

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

func (*FakeClusterNetworkPolicies) Watch

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

type FakeNetworkPolicies

type FakeNetworkPolicies struct {
	Fake *FakeSecurityV1alpha1
	// contains filtered or unexported fields
}

FakeNetworkPolicies implements NetworkPolicyInterface

func (*FakeNetworkPolicies) Create

func (c *FakeNetworkPolicies) Create(ctx context.Context, networkPolicy *v1alpha1.NetworkPolicy, opts v1.CreateOptions) (result *v1alpha1.NetworkPolicy, err error)

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

func (*FakeNetworkPolicies) Delete

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

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

func (*FakeNetworkPolicies) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeNetworkPolicies) Get

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

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

func (*FakeNetworkPolicies) List

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

func (*FakeNetworkPolicies) Patch

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

Patch applies the patch and returns the patched networkPolicy.

func (*FakeNetworkPolicies) Update

func (c *FakeNetworkPolicies) Update(ctx context.Context, networkPolicy *v1alpha1.NetworkPolicy, opts v1.UpdateOptions) (result *v1alpha1.NetworkPolicy, err error)

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

func (*FakeNetworkPolicies) UpdateStatus

func (c *FakeNetworkPolicies) UpdateStatus(ctx context.Context, networkPolicy *v1alpha1.NetworkPolicy, opts v1.UpdateOptions) (*v1alpha1.NetworkPolicy, error)

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

func (*FakeNetworkPolicies) Watch

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

type FakeSecurityV1alpha1

type FakeSecurityV1alpha1 struct {
	*testing.Fake
}

func (*FakeSecurityV1alpha1) ClusterNetworkPolicies

func (c *FakeSecurityV1alpha1) ClusterNetworkPolicies() v1alpha1.ClusterNetworkPolicyInterface

func (*FakeSecurityV1alpha1) NetworkPolicies

func (c *FakeSecurityV1alpha1) NetworkPolicies(namespace string) v1alpha1.NetworkPolicyInterface

func (*FakeSecurityV1alpha1) RESTClient

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

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

func (*FakeSecurityV1alpha1) Tiers

type FakeTiers

type FakeTiers struct {
	Fake *FakeSecurityV1alpha1
}

FakeTiers implements TierInterface

func (*FakeTiers) Create

func (c *FakeTiers) Create(ctx context.Context, tier *v1alpha1.Tier, opts v1.CreateOptions) (result *v1alpha1.Tier, err error)

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

func (*FakeTiers) Delete

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

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

func (*FakeTiers) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeTiers) Get

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

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

func (*FakeTiers) List

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

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

func (*FakeTiers) Patch

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

Patch applies the patch and returns the patched tier.

func (*FakeTiers) Update

func (c *FakeTiers) Update(ctx context.Context, tier *v1alpha1.Tier, opts v1.UpdateOptions) (result *v1alpha1.Tier, err error)

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

func (*FakeTiers) Watch

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

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

Jump to

Keyboard shortcuts

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