Documentation
¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeCaptainhookV1alpha1
- type FakeHooks
- func (c *FakeHooks) Create(ctx context.Context, hook *v1alpha1.Hook, opts v1.CreateOptions) (result *v1alpha1.Hook, err error)
- func (c *FakeHooks) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeHooks) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeHooks) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Hook, err error)
- func (c *FakeHooks) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.HookList, err error)
- func (c *FakeHooks) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1alpha1.Hook, err error)
- func (c *FakeHooks) Update(ctx context.Context, hook *v1alpha1.Hook, opts v1.UpdateOptions) (result *v1alpha1.Hook, err error)
- func (c *FakeHooks) 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 FakeCaptainhookV1alpha1 ¶
func (*FakeCaptainhookV1alpha1) Hooks ¶
func (c *FakeCaptainhookV1alpha1) Hooks(namespace string) v1alpha1.HookInterface
func (*FakeCaptainhookV1alpha1) RESTClient ¶
func (c *FakeCaptainhookV1alpha1) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.
type FakeHooks ¶
type FakeHooks struct { Fake *FakeCaptainhookV1alpha1 // contains filtered or unexported fields }
FakeHooks implements HookInterface
func (*FakeHooks) Create ¶
func (c *FakeHooks) Create(ctx context.Context, hook *v1alpha1.Hook, opts v1.CreateOptions) (result *v1alpha1.Hook, err error)
Create takes the representation of a hook and creates it. Returns the server's representation of the hook, and an error, if there is any.
func (*FakeHooks) Delete ¶
Delete takes name of the hook and deletes it. Returns an error if one occurs.
func (*FakeHooks) DeleteCollection ¶
func (c *FakeHooks) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeHooks) Get ¶
func (c *FakeHooks) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Hook, err error)
Get takes name of the hook, and returns the corresponding hook object, and an error if there is any.
func (*FakeHooks) List ¶
func (c *FakeHooks) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.HookList, err error)
List takes label and field selectors, and returns the list of Hooks that match those selectors.
func (*FakeHooks) Patch ¶
func (c *FakeHooks) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.Hook, err error)
Patch applies the patch and returns the patched hook.