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