Documentation ¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakePriorityClasses
- func (c *FakePriorityClasses) Apply(ctx context.Context, ...) (result *v1beta1.PriorityClass, err error)
- func (c *FakePriorityClasses) Create(ctx context.Context, priorityClass *v1beta1.PriorityClass, ...) (result *v1beta1.PriorityClass, err error)
- func (c *FakePriorityClasses) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakePriorityClasses) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakePriorityClasses) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.PriorityClass, err error)
- func (c *FakePriorityClasses) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.PriorityClassList, err error)
- func (c *FakePriorityClasses) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1beta1.PriorityClass, err error)
- func (c *FakePriorityClasses) Update(ctx context.Context, priorityClass *v1beta1.PriorityClass, ...) (result *v1beta1.PriorityClass, err error)
- func (c *FakePriorityClasses) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeSchedulingV1beta1
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakePriorityClasses ¶
type FakePriorityClasses struct {
Fake *FakeSchedulingV1beta1
}
FakePriorityClasses implements PriorityClassInterface
func (*FakePriorityClasses) Apply ¶
func (c *FakePriorityClasses) Apply(ctx context.Context, priorityClass *schedulingv1beta1.PriorityClassApplyConfiguration, opts v1.ApplyOptions) (result *v1beta1.PriorityClass, err error)
Apply takes the given apply declarative configuration, applies it and returns the applied priorityClass.
func (*FakePriorityClasses) Create ¶
func (c *FakePriorityClasses) Create(ctx context.Context, priorityClass *v1beta1.PriorityClass, opts v1.CreateOptions) (result *v1beta1.PriorityClass, err error)
Create takes the representation of a priorityClass and creates it. Returns the server's representation of the priorityClass, and an error, if there is any.
func (*FakePriorityClasses) Delete ¶
func (c *FakePriorityClasses) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the priorityClass and deletes it. Returns an error if one occurs.
func (*FakePriorityClasses) DeleteCollection ¶
func (c *FakePriorityClasses) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakePriorityClasses) Get ¶
func (c *FakePriorityClasses) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.PriorityClass, err error)
Get takes name of the priorityClass, and returns the corresponding priorityClass object, and an error if there is any.
func (*FakePriorityClasses) List ¶
func (c *FakePriorityClasses) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.PriorityClassList, err error)
List takes label and field selectors, and returns the list of PriorityClasses that match those selectors.
func (*FakePriorityClasses) Patch ¶
func (c *FakePriorityClasses) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.PriorityClass, err error)
Patch applies the patch and returns the patched priorityClass.
func (*FakePriorityClasses) Update ¶
func (c *FakePriorityClasses) Update(ctx context.Context, priorityClass *v1beta1.PriorityClass, opts v1.UpdateOptions) (result *v1beta1.PriorityClass, err error)
Update takes the representation of a priorityClass and updates it. Returns the server's representation of the priorityClass, and an error, if there is any.
func (*FakePriorityClasses) Watch ¶
func (c *FakePriorityClasses) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested priorityClasses.
type FakeSchedulingV1beta1 ¶
func (*FakeSchedulingV1beta1) PriorityClasses ¶
func (c *FakeSchedulingV1beta1) PriorityClasses() v1beta1.PriorityClassInterface
func (*FakeSchedulingV1beta1) RESTClient ¶
func (c *FakeSchedulingV1beta1) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.