Documentation ¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeDevices
- func (c *FakeDevices) Create(ctx context.Context, device *v1alpha1.Device, opts v1.CreateOptions) (result *v1alpha1.Device, err error)
- func (c *FakeDevices) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeDevices) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeDevices) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Device, err error)
- func (c *FakeDevices) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.DeviceList, err error)
- func (c *FakeDevices) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1alpha1.Device, err error)
- func (c *FakeDevices) Update(ctx context.Context, device *v1alpha1.Device, opts v1.UpdateOptions) (result *v1alpha1.Device, err error)
- func (c *FakeDevices) UpdateStatus(ctx context.Context, device *v1alpha1.Device, opts v1.UpdateOptions) (*v1alpha1.Device, error)
- func (c *FakeDevices) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakePodMigrationJobs
- func (c *FakePodMigrationJobs) Create(ctx context.Context, podMigrationJob *v1alpha1.PodMigrationJob, ...) (result *v1alpha1.PodMigrationJob, err error)
- func (c *FakePodMigrationJobs) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakePodMigrationJobs) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakePodMigrationJobs) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.PodMigrationJob, err error)
- func (c *FakePodMigrationJobs) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.PodMigrationJobList, err error)
- func (c *FakePodMigrationJobs) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1alpha1.PodMigrationJob, err error)
- func (c *FakePodMigrationJobs) Update(ctx context.Context, podMigrationJob *v1alpha1.PodMigrationJob, ...) (result *v1alpha1.PodMigrationJob, err error)
- func (c *FakePodMigrationJobs) UpdateStatus(ctx context.Context, podMigrationJob *v1alpha1.PodMigrationJob, ...) (*v1alpha1.PodMigrationJob, error)
- func (c *FakePodMigrationJobs) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeReservations
- func (c *FakeReservations) Create(ctx context.Context, reservation *v1alpha1.Reservation, opts v1.CreateOptions) (result *v1alpha1.Reservation, err error)
- func (c *FakeReservations) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeReservations) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeReservations) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Reservation, err error)
- func (c *FakeReservations) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ReservationList, err error)
- func (c *FakeReservations) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1alpha1.Reservation, err error)
- func (c *FakeReservations) Update(ctx context.Context, reservation *v1alpha1.Reservation, opts v1.UpdateOptions) (result *v1alpha1.Reservation, err error)
- func (c *FakeReservations) UpdateStatus(ctx context.Context, reservation *v1alpha1.Reservation, opts v1.UpdateOptions) (*v1alpha1.Reservation, error)
- func (c *FakeReservations) 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 FakeDevices ¶
type FakeDevices struct {
Fake *FakeSchedulingV1alpha1
}
FakeDevices implements DeviceInterface
func (*FakeDevices) Create ¶
func (c *FakeDevices) Create(ctx context.Context, device *v1alpha1.Device, opts v1.CreateOptions) (result *v1alpha1.Device, err error)
Create takes the representation of a device and creates it. Returns the server's representation of the device, and an error, if there is any.
func (*FakeDevices) Delete ¶
func (c *FakeDevices) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the device and deletes it. Returns an error if one occurs.
func (*FakeDevices) DeleteCollection ¶
func (c *FakeDevices) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeDevices) Get ¶
func (c *FakeDevices) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Device, err error)
Get takes name of the device, and returns the corresponding device object, and an error if there is any.
func (*FakeDevices) List ¶
func (c *FakeDevices) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.DeviceList, err error)
List takes label and field selectors, and returns the list of Devices that match those selectors.
func (*FakeDevices) Patch ¶
func (c *FakeDevices) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.Device, err error)
Patch applies the patch and returns the patched device.
func (*FakeDevices) Update ¶
func (c *FakeDevices) Update(ctx context.Context, device *v1alpha1.Device, opts v1.UpdateOptions) (result *v1alpha1.Device, err error)
Update takes the representation of a device and updates it. Returns the server's representation of the device, and an error, if there is any.
func (*FakeDevices) UpdateStatus ¶
func (c *FakeDevices) UpdateStatus(ctx context.Context, device *v1alpha1.Device, opts v1.UpdateOptions) (*v1alpha1.Device, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeDevices) Watch ¶
func (c *FakeDevices) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested devices.
type FakePodMigrationJobs ¶ added in v1.0.0
type FakePodMigrationJobs struct {
Fake *FakeSchedulingV1alpha1
}
FakePodMigrationJobs implements PodMigrationJobInterface
func (*FakePodMigrationJobs) Create ¶ added in v1.0.0
func (c *FakePodMigrationJobs) Create(ctx context.Context, podMigrationJob *v1alpha1.PodMigrationJob, opts v1.CreateOptions) (result *v1alpha1.PodMigrationJob, err error)
Create takes the representation of a podMigrationJob and creates it. Returns the server's representation of the podMigrationJob, and an error, if there is any.
func (*FakePodMigrationJobs) Delete ¶ added in v1.0.0
func (c *FakePodMigrationJobs) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the podMigrationJob and deletes it. Returns an error if one occurs.
func (*FakePodMigrationJobs) DeleteCollection ¶ added in v1.0.0
func (c *FakePodMigrationJobs) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakePodMigrationJobs) Get ¶ added in v1.0.0
func (c *FakePodMigrationJobs) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.PodMigrationJob, err error)
Get takes name of the podMigrationJob, and returns the corresponding podMigrationJob object, and an error if there is any.
func (*FakePodMigrationJobs) List ¶ added in v1.0.0
func (c *FakePodMigrationJobs) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.PodMigrationJobList, err error)
List takes label and field selectors, and returns the list of PodMigrationJobs that match those selectors.
func (*FakePodMigrationJobs) Patch ¶ added in v1.0.0
func (c *FakePodMigrationJobs) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.PodMigrationJob, err error)
Patch applies the patch and returns the patched podMigrationJob.
func (*FakePodMigrationJobs) Update ¶ added in v1.0.0
func (c *FakePodMigrationJobs) Update(ctx context.Context, podMigrationJob *v1alpha1.PodMigrationJob, opts v1.UpdateOptions) (result *v1alpha1.PodMigrationJob, err error)
Update takes the representation of a podMigrationJob and updates it. Returns the server's representation of the podMigrationJob, and an error, if there is any.
func (*FakePodMigrationJobs) UpdateStatus ¶ added in v1.0.0
func (c *FakePodMigrationJobs) UpdateStatus(ctx context.Context, podMigrationJob *v1alpha1.PodMigrationJob, opts v1.UpdateOptions) (*v1alpha1.PodMigrationJob, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakePodMigrationJobs) Watch ¶ added in v1.0.0
func (c *FakePodMigrationJobs) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested podMigrationJobs.
type FakeReservations ¶ added in v1.0.0
type FakeReservations struct {
Fake *FakeSchedulingV1alpha1
}
FakeReservations implements ReservationInterface
func (*FakeReservations) Create ¶ added in v1.0.0
func (c *FakeReservations) Create(ctx context.Context, reservation *v1alpha1.Reservation, opts v1.CreateOptions) (result *v1alpha1.Reservation, err error)
Create takes the representation of a reservation and creates it. Returns the server's representation of the reservation, and an error, if there is any.
func (*FakeReservations) Delete ¶ added in v1.0.0
func (c *FakeReservations) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the reservation and deletes it. Returns an error if one occurs.
func (*FakeReservations) DeleteCollection ¶ added in v1.0.0
func (c *FakeReservations) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeReservations) Get ¶ added in v1.0.0
func (c *FakeReservations) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Reservation, err error)
Get takes name of the reservation, and returns the corresponding reservation object, and an error if there is any.
func (*FakeReservations) List ¶ added in v1.0.0
func (c *FakeReservations) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ReservationList, err error)
List takes label and field selectors, and returns the list of Reservations that match those selectors.
func (*FakeReservations) Patch ¶ added in v1.0.0
func (c *FakeReservations) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.Reservation, err error)
Patch applies the patch and returns the patched reservation.
func (*FakeReservations) Update ¶ added in v1.0.0
func (c *FakeReservations) Update(ctx context.Context, reservation *v1alpha1.Reservation, opts v1.UpdateOptions) (result *v1alpha1.Reservation, err error)
Update takes the representation of a reservation and updates it. Returns the server's representation of the reservation, and an error, if there is any.
func (*FakeReservations) UpdateStatus ¶ added in v1.0.0
func (c *FakeReservations) UpdateStatus(ctx context.Context, reservation *v1alpha1.Reservation, opts v1.UpdateOptions) (*v1alpha1.Reservation, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeReservations) Watch ¶ added in v1.0.0
func (c *FakeReservations) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested reservations.
type FakeSchedulingV1alpha1 ¶
func (*FakeSchedulingV1alpha1) Devices ¶
func (c *FakeSchedulingV1alpha1) Devices() v1alpha1.DeviceInterface
func (*FakeSchedulingV1alpha1) PodMigrationJobs ¶ added in v1.0.0
func (c *FakeSchedulingV1alpha1) PodMigrationJobs() v1alpha1.PodMigrationJobInterface
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.
func (*FakeSchedulingV1alpha1) Reservations ¶ added in v1.0.0
func (c *FakeSchedulingV1alpha1) Reservations() v1alpha1.ReservationInterface