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