Documentation ¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeGpuNodes
- func (c *FakeGpuNodes) Create(ctx context.Context, gpuNode *gpunodev1.GpuNode, opts v1.CreateOptions) (result *gpunodev1.GpuNode, err error)
- func (c *FakeGpuNodes) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeGpuNodes) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeGpuNodes) Get(ctx context.Context, name string, options v1.GetOptions) (result *gpunodev1.GpuNode, err error)
- func (c *FakeGpuNodes) List(ctx context.Context, opts v1.ListOptions) (result *gpunodev1.GpuNodeList, err error)
- func (c *FakeGpuNodes) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *gpunodev1.GpuNode, err error)
- func (c *FakeGpuNodes) Update(ctx context.Context, gpuNode *gpunodev1.GpuNode, opts v1.UpdateOptions) (result *gpunodev1.GpuNode, err error)
- func (c *FakeGpuNodes) UpdateStatus(ctx context.Context, gpuNode *gpunodev1.GpuNode, opts v1.UpdateOptions) (*gpunodev1.GpuNode, error)
- func (c *FakeGpuNodes) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeGpunodeV1
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeGpuNodes ¶
type FakeGpuNodes struct { Fake *FakeGpunodeV1 // contains filtered or unexported fields }
FakeGpuNodes implements GpuNodeInterface
func (*FakeGpuNodes) Create ¶
func (c *FakeGpuNodes) Create(ctx context.Context, gpuNode *gpunodev1.GpuNode, opts v1.CreateOptions) (result *gpunodev1.GpuNode, err error)
Create takes the representation of a gpuNode and creates it. Returns the server's representation of the gpuNode, and an error, if there is any.
func (*FakeGpuNodes) Delete ¶
func (c *FakeGpuNodes) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the gpuNode and deletes it. Returns an error if one occurs.
func (*FakeGpuNodes) DeleteCollection ¶
func (c *FakeGpuNodes) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeGpuNodes) Get ¶
func (c *FakeGpuNodes) Get(ctx context.Context, name string, options v1.GetOptions) (result *gpunodev1.GpuNode, err error)
Get takes name of the gpuNode, and returns the corresponding gpuNode object, and an error if there is any.
func (*FakeGpuNodes) List ¶
func (c *FakeGpuNodes) List(ctx context.Context, opts v1.ListOptions) (result *gpunodev1.GpuNodeList, err error)
List takes label and field selectors, and returns the list of GpuNodes that match those selectors.
func (*FakeGpuNodes) Patch ¶
func (c *FakeGpuNodes) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *gpunodev1.GpuNode, err error)
Patch applies the patch and returns the patched gpuNode.
func (*FakeGpuNodes) Update ¶
func (c *FakeGpuNodes) Update(ctx context.Context, gpuNode *gpunodev1.GpuNode, opts v1.UpdateOptions) (result *gpunodev1.GpuNode, err error)
Update takes the representation of a gpuNode and updates it. Returns the server's representation of the gpuNode, and an error, if there is any.
func (*FakeGpuNodes) UpdateStatus ¶
func (c *FakeGpuNodes) UpdateStatus(ctx context.Context, gpuNode *gpunodev1.GpuNode, opts v1.UpdateOptions) (*gpunodev1.GpuNode, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeGpuNodes) Watch ¶
func (c *FakeGpuNodes) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested gpuNodes.
type FakeGpunodeV1 ¶
func (*FakeGpunodeV1) GpuNodes ¶
func (c *FakeGpunodeV1) GpuNodes(namespace string) v1.GpuNodeInterface
func (*FakeGpunodeV1) RESTClient ¶
func (c *FakeGpunodeV1) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.