fake

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: Apache-2.0 Imports: 9 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 FakeBalloonsPolicies

type FakeBalloonsPolicies struct {
	Fake *FakeConfigV1alpha1
	// contains filtered or unexported fields
}

FakeBalloonsPolicies implements BalloonsPolicyInterface

func (*FakeBalloonsPolicies) Create

func (c *FakeBalloonsPolicies) Create(ctx context.Context, balloonsPolicy *v1alpha1.BalloonsPolicy, opts v1.CreateOptions) (result *v1alpha1.BalloonsPolicy, err error)

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

func (*FakeBalloonsPolicies) Delete

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

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

func (*FakeBalloonsPolicies) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeBalloonsPolicies) Get

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

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

func (*FakeBalloonsPolicies) List

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

func (*FakeBalloonsPolicies) Patch

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

Patch applies the patch and returns the patched balloonsPolicy.

func (*FakeBalloonsPolicies) Update

func (c *FakeBalloonsPolicies) Update(ctx context.Context, balloonsPolicy *v1alpha1.BalloonsPolicy, opts v1.UpdateOptions) (result *v1alpha1.BalloonsPolicy, err error)

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

func (*FakeBalloonsPolicies) UpdateStatus

func (c *FakeBalloonsPolicies) UpdateStatus(ctx context.Context, balloonsPolicy *v1alpha1.BalloonsPolicy, opts v1.UpdateOptions) (*v1alpha1.BalloonsPolicy, error)

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

func (*FakeBalloonsPolicies) Watch

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

type FakeConfigV1alpha1

type FakeConfigV1alpha1 struct {
	*testing.Fake
}

func (*FakeConfigV1alpha1) BalloonsPolicies

func (c *FakeConfigV1alpha1) BalloonsPolicies(namespace string) v1alpha1.BalloonsPolicyInterface

func (*FakeConfigV1alpha1) RESTClient

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

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

func (*FakeConfigV1alpha1) TemplatePolicies

func (c *FakeConfigV1alpha1) TemplatePolicies(namespace string) v1alpha1.TemplatePolicyInterface

func (*FakeConfigV1alpha1) TopologyAwarePolicies

func (c *FakeConfigV1alpha1) TopologyAwarePolicies(namespace string) v1alpha1.TopologyAwarePolicyInterface

type FakeTemplatePolicies

type FakeTemplatePolicies struct {
	Fake *FakeConfigV1alpha1
	// contains filtered or unexported fields
}

FakeTemplatePolicies implements TemplatePolicyInterface

func (*FakeTemplatePolicies) Create

func (c *FakeTemplatePolicies) Create(ctx context.Context, templatePolicy *v1alpha1.TemplatePolicy, opts v1.CreateOptions) (result *v1alpha1.TemplatePolicy, err error)

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

func (*FakeTemplatePolicies) Delete

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

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

func (*FakeTemplatePolicies) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeTemplatePolicies) Get

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

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

func (*FakeTemplatePolicies) List

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

func (*FakeTemplatePolicies) Patch

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

Patch applies the patch and returns the patched templatePolicy.

func (*FakeTemplatePolicies) Update

func (c *FakeTemplatePolicies) Update(ctx context.Context, templatePolicy *v1alpha1.TemplatePolicy, opts v1.UpdateOptions) (result *v1alpha1.TemplatePolicy, err error)

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

func (*FakeTemplatePolicies) UpdateStatus

func (c *FakeTemplatePolicies) UpdateStatus(ctx context.Context, templatePolicy *v1alpha1.TemplatePolicy, opts v1.UpdateOptions) (*v1alpha1.TemplatePolicy, error)

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

func (*FakeTemplatePolicies) Watch

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

type FakeTopologyAwarePolicies

type FakeTopologyAwarePolicies struct {
	Fake *FakeConfigV1alpha1
	// contains filtered or unexported fields
}

FakeTopologyAwarePolicies implements TopologyAwarePolicyInterface

func (*FakeTopologyAwarePolicies) Create

func (c *FakeTopologyAwarePolicies) Create(ctx context.Context, topologyAwarePolicy *v1alpha1.TopologyAwarePolicy, opts v1.CreateOptions) (result *v1alpha1.TopologyAwarePolicy, err error)

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

func (*FakeTopologyAwarePolicies) Delete

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

func (*FakeTopologyAwarePolicies) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeTopologyAwarePolicies) Get

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

func (*FakeTopologyAwarePolicies) List

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

func (*FakeTopologyAwarePolicies) Patch

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

Patch applies the patch and returns the patched topologyAwarePolicy.

func (*FakeTopologyAwarePolicies) Update

func (c *FakeTopologyAwarePolicies) Update(ctx context.Context, topologyAwarePolicy *v1alpha1.TopologyAwarePolicy, opts v1.UpdateOptions) (result *v1alpha1.TopologyAwarePolicy, err error)

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

func (*FakeTopologyAwarePolicies) UpdateStatus

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

func (*FakeTopologyAwarePolicies) Watch

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

Jump to

Keyboard shortcuts

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