fake

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 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 FakeElasticQuotas

type FakeElasticQuotas struct {
	Fake *FakeSchedulingV1alpha1
	// contains filtered or unexported fields
}

FakeElasticQuotas implements ElasticQuotaInterface

func (*FakeElasticQuotas) Create

func (c *FakeElasticQuotas) Create(ctx context.Context, elasticQuota *v1alpha1.ElasticQuota, opts v1.CreateOptions) (result *v1alpha1.ElasticQuota, err error)

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

func (*FakeElasticQuotas) Delete

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

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

func (*FakeElasticQuotas) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeElasticQuotas) Get

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

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

func (*FakeElasticQuotas) List

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

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

func (*FakeElasticQuotas) Patch

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

Patch applies the patch and returns the patched elasticQuota.

func (*FakeElasticQuotas) Update

func (c *FakeElasticQuotas) Update(ctx context.Context, elasticQuota *v1alpha1.ElasticQuota, opts v1.UpdateOptions) (result *v1alpha1.ElasticQuota, err error)

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

func (*FakeElasticQuotas) Watch

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

type FakePodGroups

type FakePodGroups struct {
	Fake *FakeSchedulingV1alpha1
	// contains filtered or unexported fields
}

FakePodGroups implements PodGroupInterface

func (*FakePodGroups) Create

func (c *FakePodGroups) Create(ctx context.Context, podGroup *v1alpha1.PodGroup, opts v1.CreateOptions) (result *v1alpha1.PodGroup, err error)

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

func (*FakePodGroups) Delete

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

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

func (*FakePodGroups) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakePodGroups) Get

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

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

func (*FakePodGroups) List

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

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

func (*FakePodGroups) Patch

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

Patch applies the patch and returns the patched podGroup.

func (*FakePodGroups) Update

func (c *FakePodGroups) Update(ctx context.Context, podGroup *v1alpha1.PodGroup, opts v1.UpdateOptions) (result *v1alpha1.PodGroup, err error)

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

func (*FakePodGroups) UpdateStatus

func (c *FakePodGroups) UpdateStatus(ctx context.Context, podGroup *v1alpha1.PodGroup, opts v1.UpdateOptions) (*v1alpha1.PodGroup, error)

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

func (*FakePodGroups) Watch

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

type FakeSchedulingV1alpha1

type FakeSchedulingV1alpha1 struct {
	*testing.Fake
}

func (*FakeSchedulingV1alpha1) ElasticQuotas

func (c *FakeSchedulingV1alpha1) ElasticQuotas(namespace string) v1alpha1.ElasticQuotaInterface

func (*FakeSchedulingV1alpha1) PodGroups

func (c *FakeSchedulingV1alpha1) PodGroups(namespace string) v1alpha1.PodGroupInterface

func (*FakeSchedulingV1alpha1) RESTClient

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