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