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