Documentation ¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeLocations
- func (c *FakeLocations) Create(ctx context.Context, location *v1alpha1.Location, opts v1.CreateOptions) (result *v1alpha1.Location, err error)
- func (c *FakeLocations) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeLocations) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeLocations) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Location, err error)
- func (c *FakeLocations) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.LocationList, err error)
- func (c *FakeLocations) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1alpha1.Location, err error)
- func (c *FakeLocations) Update(ctx context.Context, location *v1alpha1.Location, opts v1.UpdateOptions) (result *v1alpha1.Location, err error)
- func (c *FakeLocations) UpdateStatus(ctx context.Context, location *v1alpha1.Location, opts v1.UpdateOptions) (*v1alpha1.Location, error)
- func (c *FakeLocations) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakePlacements
- func (c *FakePlacements) Create(ctx context.Context, placement *v1alpha1.Placement, opts v1.CreateOptions) (result *v1alpha1.Placement, err error)
- func (c *FakePlacements) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakePlacements) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakePlacements) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Placement, err error)
- func (c *FakePlacements) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.PlacementList, err error)
- func (c *FakePlacements) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1alpha1.Placement, err error)
- func (c *FakePlacements) Update(ctx context.Context, placement *v1alpha1.Placement, opts v1.UpdateOptions) (result *v1alpha1.Placement, err error)
- func (c *FakePlacements) UpdateStatus(ctx context.Context, placement *v1alpha1.Placement, opts v1.UpdateOptions) (*v1alpha1.Placement, error)
- func (c *FakePlacements) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeSchedulingV1alpha1
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 ¶
func (c *FakeLocations) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
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 ¶
func (c *FakePlacements) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested placements.
type FakeSchedulingV1alpha1 ¶
func (*FakeSchedulingV1alpha1) Locations ¶
func (c *FakeSchedulingV1alpha1) Locations() v1alpha1.LocationInterface
func (*FakeSchedulingV1alpha1) Placements ¶
func (c *FakeSchedulingV1alpha1) Placements() v1alpha1.PlacementInterface
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.