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