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