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