fake

package
v0.0.0-...-0f3bb69 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2023 License: Apache-2.0 Imports: 10 Imported by: 1

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 FakeLocations

type FakeLocations struct {
	Fake *FakeSchedulingV1alpha1
}

FakeLocations implements LocationInterface

func (*FakeLocations) Create

func (c *FakeLocations) Create(ctx context.Context, location *v1alpha1.Location, opts v1.CreateOptions) (result *v1alpha1.Location, err error)

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

func (*FakeLocations) Delete

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

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

func (*FakeLocations) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeLocations) Get

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

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

func (*FakeLocations) List

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

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

func (*FakeLocations) Patch

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

Patch applies the patch and returns the patched location.

func (*FakeLocations) Update

func (c *FakeLocations) Update(ctx context.Context, location *v1alpha1.Location, opts v1.UpdateOptions) (result *v1alpha1.Location, err error)

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

func (*FakeLocations) UpdateStatus

func (c *FakeLocations) UpdateStatus(ctx context.Context, location *v1alpha1.Location, opts v1.UpdateOptions) (*v1alpha1.Location, error)

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

func (*FakeLocations) Watch

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

type FakePlacements

type FakePlacements struct {
	Fake *FakeSchedulingV1alpha1
}

FakePlacements implements PlacementInterface

func (*FakePlacements) Create

func (c *FakePlacements) Create(ctx context.Context, placement *v1alpha1.Placement, opts v1.CreateOptions) (result *v1alpha1.Placement, err error)

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

func (*FakePlacements) Delete

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

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

func (*FakePlacements) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakePlacements) Get

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

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

func (*FakePlacements) List

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

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

func (*FakePlacements) Patch

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

Patch applies the patch and returns the patched placement.

func (*FakePlacements) Update

func (c *FakePlacements) Update(ctx context.Context, placement *v1alpha1.Placement, opts v1.UpdateOptions) (result *v1alpha1.Placement, err error)

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

func (*FakePlacements) UpdateStatus

func (c *FakePlacements) UpdateStatus(ctx context.Context, placement *v1alpha1.Placement, opts v1.UpdateOptions) (*v1alpha1.Placement, error)

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

func (*FakePlacements) Watch

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

type FakeSchedulingV1alpha1

type FakeSchedulingV1alpha1 struct {
	*testing.Fake
}

func (*FakeSchedulingV1alpha1) Locations

func (*FakeSchedulingV1alpha1) Placements

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