Documentation ¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeQueueUnits
- func (c *FakeQueueUnits) Create(ctx context.Context, queueUnit *v1alpha1.QueueUnit, opts v1.CreateOptions) (result *v1alpha1.QueueUnit, err error)
- func (c *FakeQueueUnits) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeQueueUnits) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeQueueUnits) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.QueueUnit, err error)
- func (c *FakeQueueUnits) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.QueueUnitList, err error)
- func (c *FakeQueueUnits) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1alpha1.QueueUnit, err error)
- func (c *FakeQueueUnits) Update(ctx context.Context, queueUnit *v1alpha1.QueueUnit, opts v1.UpdateOptions) (result *v1alpha1.QueueUnit, err error)
- func (c *FakeQueueUnits) UpdateStatus(ctx context.Context, queueUnit *v1alpha1.QueueUnit, opts v1.UpdateOptions) (*v1alpha1.QueueUnit, error)
- func (c *FakeQueueUnits) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeQueues
- func (c *FakeQueues) Create(ctx context.Context, queue *v1alpha1.Queue, opts v1.CreateOptions) (result *v1alpha1.Queue, err error)
- func (c *FakeQueues) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeQueues) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeQueues) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Queue, err error)
- func (c *FakeQueues) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.QueueList, err error)
- func (c *FakeQueues) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1alpha1.Queue, err error)
- func (c *FakeQueues) Update(ctx context.Context, queue *v1alpha1.Queue, opts v1.UpdateOptions) (result *v1alpha1.Queue, err error)
- func (c *FakeQueues) UpdateStatus(ctx context.Context, queue *v1alpha1.Queue, opts v1.UpdateOptions) (*v1alpha1.Queue, error)
- func (c *FakeQueues) 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 FakeQueueUnits ¶
type FakeQueueUnits struct { Fake *FakeSchedulingV1alpha1 // contains filtered or unexported fields }
FakeQueueUnits implements QueueUnitInterface
func (*FakeQueueUnits) Create ¶
func (c *FakeQueueUnits) Create(ctx context.Context, queueUnit *v1alpha1.QueueUnit, opts v1.CreateOptions) (result *v1alpha1.QueueUnit, err error)
Create takes the representation of a queueUnit and creates it. Returns the server's representation of the queueUnit, and an error, if there is any.
func (*FakeQueueUnits) Delete ¶
func (c *FakeQueueUnits) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the queueUnit and deletes it. Returns an error if one occurs.
func (*FakeQueueUnits) DeleteCollection ¶
func (c *FakeQueueUnits) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeQueueUnits) Get ¶
func (c *FakeQueueUnits) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.QueueUnit, err error)
Get takes name of the queueUnit, and returns the corresponding queueUnit object, and an error if there is any.
func (*FakeQueueUnits) List ¶
func (c *FakeQueueUnits) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.QueueUnitList, err error)
List takes label and field selectors, and returns the list of QueueUnits that match those selectors.
func (*FakeQueueUnits) Patch ¶
func (c *FakeQueueUnits) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.QueueUnit, err error)
Patch applies the patch and returns the patched queueUnit.
func (*FakeQueueUnits) Update ¶
func (c *FakeQueueUnits) Update(ctx context.Context, queueUnit *v1alpha1.QueueUnit, opts v1.UpdateOptions) (result *v1alpha1.QueueUnit, err error)
Update takes the representation of a queueUnit and updates it. Returns the server's representation of the queueUnit, and an error, if there is any.
func (*FakeQueueUnits) UpdateStatus ¶
func (c *FakeQueueUnits) UpdateStatus(ctx context.Context, queueUnit *v1alpha1.QueueUnit, opts v1.UpdateOptions) (*v1alpha1.QueueUnit, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeQueueUnits) Watch ¶
func (c *FakeQueueUnits) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested queueUnits.
type FakeQueues ¶
type FakeQueues struct { Fake *FakeSchedulingV1alpha1 // contains filtered or unexported fields }
FakeQueues implements QueueInterface
func (*FakeQueues) Create ¶
func (c *FakeQueues) Create(ctx context.Context, queue *v1alpha1.Queue, opts v1.CreateOptions) (result *v1alpha1.Queue, err error)
Create takes the representation of a queue and creates it. Returns the server's representation of the queue, and an error, if there is any.
func (*FakeQueues) Delete ¶
func (c *FakeQueues) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the queue and deletes it. Returns an error if one occurs.
func (*FakeQueues) DeleteCollection ¶
func (c *FakeQueues) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeQueues) Get ¶
func (c *FakeQueues) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Queue, err error)
Get takes name of the queue, and returns the corresponding queue object, and an error if there is any.
func (*FakeQueues) List ¶
func (c *FakeQueues) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.QueueList, err error)
List takes label and field selectors, and returns the list of Queues that match those selectors.
func (*FakeQueues) Patch ¶
func (c *FakeQueues) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.Queue, err error)
Patch applies the patch and returns the patched queue.
func (*FakeQueues) Update ¶
func (c *FakeQueues) Update(ctx context.Context, queue *v1alpha1.Queue, opts v1.UpdateOptions) (result *v1alpha1.Queue, err error)
Update takes the representation of a queue and updates it. Returns the server's representation of the queue, and an error, if there is any.
func (*FakeQueues) UpdateStatus ¶
func (c *FakeQueues) UpdateStatus(ctx context.Context, queue *v1alpha1.Queue, opts v1.UpdateOptions) (*v1alpha1.Queue, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeQueues) Watch ¶
func (c *FakeQueues) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested queues.
type FakeSchedulingV1alpha1 ¶
func (*FakeSchedulingV1alpha1) QueueUnits ¶
func (c *FakeSchedulingV1alpha1) QueueUnits(namespace string) v1alpha1.QueueUnitInterface
func (*FakeSchedulingV1alpha1) Queues ¶
func (c *FakeSchedulingV1alpha1) Queues(namespace string) v1alpha1.QueueInterface
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.