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