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