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