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