Documentation
¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeMovements
- func (c *FakeMovements) Create(ctx context.Context, movement *v1alpha1.Movement, opts v1.CreateOptions) (result *v1alpha1.Movement, err error)
- func (c *FakeMovements) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeMovements) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeMovements) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Movement, err error)
- func (c *FakeMovements) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.MovementList, err error)
- func (c *FakeMovements) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1alpha1.Movement, err error)
- func (c *FakeMovements) Update(ctx context.Context, movement *v1alpha1.Movement, opts v1.UpdateOptions) (result *v1alpha1.Movement, err error)
- func (c *FakeMovements) UpdateStatus(ctx context.Context, movement *v1alpha1.Movement, opts v1.UpdateOptions) (*v1alpha1.Movement, error)
- func (c *FakeMovements) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakePodGroups
- func (c *FakePodGroups) Create(ctx context.Context, podGroup *v1alpha1.PodGroup, opts v1.CreateOptions) (result *v1alpha1.PodGroup, err error)
- func (c *FakePodGroups) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakePodGroups) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakePodGroups) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.PodGroup, err error)
- func (c *FakePodGroups) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.PodGroupList, err error)
- func (c *FakePodGroups) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1alpha1.PodGroup, err error)
- func (c *FakePodGroups) Update(ctx context.Context, podGroup *v1alpha1.PodGroup, opts v1.UpdateOptions) (result *v1alpha1.PodGroup, err error)
- func (c *FakePodGroups) UpdateStatus(ctx context.Context, podGroup *v1alpha1.PodGroup, opts v1.UpdateOptions) (*v1alpha1.PodGroup, error)
- func (c *FakePodGroups) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeSchedulers
- func (c *FakeSchedulers) Create(ctx context.Context, scheduler *v1alpha1.Scheduler, opts v1.CreateOptions) (result *v1alpha1.Scheduler, err error)
- func (c *FakeSchedulers) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeSchedulers) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeSchedulers) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Scheduler, err error)
- func (c *FakeSchedulers) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.SchedulerList, err error)
- func (c *FakeSchedulers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1alpha1.Scheduler, err error)
- func (c *FakeSchedulers) Update(ctx context.Context, scheduler *v1alpha1.Scheduler, opts v1.UpdateOptions) (result *v1alpha1.Scheduler, err error)
- func (c *FakeSchedulers) UpdateStatus(ctx context.Context, scheduler *v1alpha1.Scheduler, opts v1.UpdateOptions) (*v1alpha1.Scheduler, error)
- func (c *FakeSchedulers) 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 FakeMovements ¶
type FakeMovements struct {
Fake *FakeSchedulingV1alpha1
}
FakeMovements implements MovementInterface
func (*FakeMovements) Create ¶
func (c *FakeMovements) Create(ctx context.Context, movement *v1alpha1.Movement, opts v1.CreateOptions) (result *v1alpha1.Movement, err error)
Create takes the representation of a movement and creates it. Returns the server's representation of the movement, and an error, if there is any.
func (*FakeMovements) Delete ¶
func (c *FakeMovements) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the movement and deletes it. Returns an error if one occurs.
func (*FakeMovements) DeleteCollection ¶
func (c *FakeMovements) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeMovements) Get ¶
func (c *FakeMovements) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Movement, err error)
Get takes name of the movement, and returns the corresponding movement object, and an error if there is any.
func (*FakeMovements) List ¶
func (c *FakeMovements) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.MovementList, err error)
List takes label and field selectors, and returns the list of Movements that match those selectors.
func (*FakeMovements) Patch ¶
func (c *FakeMovements) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.Movement, err error)
Patch applies the patch and returns the patched movement.
func (*FakeMovements) Update ¶
func (c *FakeMovements) Update(ctx context.Context, movement *v1alpha1.Movement, opts v1.UpdateOptions) (result *v1alpha1.Movement, err error)
Update takes the representation of a movement and updates it. Returns the server's representation of the movement, and an error, if there is any.
func (*FakeMovements) UpdateStatus ¶
func (c *FakeMovements) UpdateStatus(ctx context.Context, movement *v1alpha1.Movement, opts v1.UpdateOptions) (*v1alpha1.Movement, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeMovements) Watch ¶
func (c *FakeMovements) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested movements.
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 ¶
func (c *FakePodGroups) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested podGroups.
type FakeSchedulers ¶
type FakeSchedulers struct {
Fake *FakeSchedulingV1alpha1
}
FakeSchedulers implements SchedulerInterface
func (*FakeSchedulers) Create ¶
func (c *FakeSchedulers) Create(ctx context.Context, scheduler *v1alpha1.Scheduler, opts v1.CreateOptions) (result *v1alpha1.Scheduler, err error)
Create takes the representation of a scheduler and creates it. Returns the server's representation of the scheduler, and an error, if there is any.
func (*FakeSchedulers) Delete ¶
func (c *FakeSchedulers) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the scheduler and deletes it. Returns an error if one occurs.
func (*FakeSchedulers) DeleteCollection ¶
func (c *FakeSchedulers) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeSchedulers) Get ¶
func (c *FakeSchedulers) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Scheduler, err error)
Get takes name of the scheduler, and returns the corresponding scheduler object, and an error if there is any.
func (*FakeSchedulers) List ¶
func (c *FakeSchedulers) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.SchedulerList, err error)
List takes label and field selectors, and returns the list of Schedulers that match those selectors.
func (*FakeSchedulers) Patch ¶
func (c *FakeSchedulers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.Scheduler, err error)
Patch applies the patch and returns the patched scheduler.
func (*FakeSchedulers) Update ¶
func (c *FakeSchedulers) Update(ctx context.Context, scheduler *v1alpha1.Scheduler, opts v1.UpdateOptions) (result *v1alpha1.Scheduler, err error)
Update takes the representation of a scheduler and updates it. Returns the server's representation of the scheduler, and an error, if there is any.
func (*FakeSchedulers) UpdateStatus ¶
func (c *FakeSchedulers) UpdateStatus(ctx context.Context, scheduler *v1alpha1.Scheduler, opts v1.UpdateOptions) (*v1alpha1.Scheduler, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeSchedulers) Watch ¶
func (c *FakeSchedulers) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested schedulers.
type FakeSchedulingV1alpha1 ¶
func (*FakeSchedulingV1alpha1) Movements ¶
func (c *FakeSchedulingV1alpha1) Movements() v1alpha1.MovementInterface
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.
func (*FakeSchedulingV1alpha1) Schedulers ¶
func (c *FakeSchedulingV1alpha1) Schedulers() v1alpha1.SchedulerInterface