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