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