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