Documentation
¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeBranches
- func (c *FakeBranches) Create(branch *v1alpha1.Branch) (result *v1alpha1.Branch, err error)
- func (c *FakeBranches) Delete(name string, options *v1.DeleteOptions) error
- func (c *FakeBranches) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
- func (c *FakeBranches) Get(name string, options v1.GetOptions) (result *v1alpha1.Branch, err error)
- func (c *FakeBranches) List(opts v1.ListOptions) (result *v1alpha1.BranchList, err error)
- func (c *FakeBranches) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.Branch, err error)
- func (c *FakeBranches) Update(branch *v1alpha1.Branch) (result *v1alpha1.Branch, err error)
- func (c *FakeBranches) Watch(opts v1.ListOptions) (watch.Interface, error)
- type FakeGitV1alpha1
- func (c *FakeGitV1alpha1) Branches(namespace string) v1alpha1.BranchInterface
- func (c *FakeGitV1alpha1) PullRequests(namespace string) v1alpha1.PullRequestInterface
- func (c *FakeGitV1alpha1) RESTClient() rest.Interface
- func (c *FakeGitV1alpha1) Repositories(namespace string) v1alpha1.RepositoryInterface
- func (c *FakeGitV1alpha1) Tags(namespace string) v1alpha1.TagInterface
- type FakePullRequests
- func (c *FakePullRequests) Create(pullRequest *v1alpha1.PullRequest) (result *v1alpha1.PullRequest, err error)
- func (c *FakePullRequests) Delete(name string, options *v1.DeleteOptions) error
- func (c *FakePullRequests) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
- func (c *FakePullRequests) Get(name string, options v1.GetOptions) (result *v1alpha1.PullRequest, err error)
- func (c *FakePullRequests) List(opts v1.ListOptions) (result *v1alpha1.PullRequestList, err error)
- func (c *FakePullRequests) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.PullRequest, err error)
- func (c *FakePullRequests) Update(pullRequest *v1alpha1.PullRequest) (result *v1alpha1.PullRequest, err error)
- func (c *FakePullRequests) Watch(opts v1.ListOptions) (watch.Interface, error)
- type FakeRepositories
- func (c *FakeRepositories) Create(repository *v1alpha1.Repository) (result *v1alpha1.Repository, err error)
- func (c *FakeRepositories) Delete(name string, options *v1.DeleteOptions) error
- func (c *FakeRepositories) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
- func (c *FakeRepositories) Get(name string, options v1.GetOptions) (result *v1alpha1.Repository, err error)
- func (c *FakeRepositories) List(opts v1.ListOptions) (result *v1alpha1.RepositoryList, err error)
- func (c *FakeRepositories) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.Repository, err error)
- func (c *FakeRepositories) Update(repository *v1alpha1.Repository) (result *v1alpha1.Repository, err error)
- func (c *FakeRepositories) UpdateStatus(repository *v1alpha1.Repository) (*v1alpha1.Repository, error)
- func (c *FakeRepositories) Watch(opts v1.ListOptions) (watch.Interface, error)
- type FakeTags
- func (c *FakeTags) Create(tag *v1alpha1.Tag) (result *v1alpha1.Tag, err error)
- func (c *FakeTags) Delete(name string, options *v1.DeleteOptions) error
- func (c *FakeTags) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
- func (c *FakeTags) Get(name string, options v1.GetOptions) (result *v1alpha1.Tag, err error)
- func (c *FakeTags) List(opts v1.ListOptions) (result *v1alpha1.TagList, err error)
- func (c *FakeTags) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.Tag, err error)
- func (c *FakeTags) Update(tag *v1alpha1.Tag) (result *v1alpha1.Tag, err error)
- func (c *FakeTags) Watch(opts v1.ListOptions) (watch.Interface, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeBranches ¶
type FakeBranches struct { Fake *FakeGitV1alpha1 // contains filtered or unexported fields }
FakeBranches implements BranchInterface
func (*FakeBranches) Create ¶
Create takes the representation of a branch and creates it. Returns the server's representation of the branch, and an error, if there is any.
func (*FakeBranches) Delete ¶
func (c *FakeBranches) Delete(name string, options *v1.DeleteOptions) error
Delete takes name of the branch and deletes it. Returns an error if one occurs.
func (*FakeBranches) DeleteCollection ¶
func (c *FakeBranches) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeBranches) Get ¶
func (c *FakeBranches) Get(name string, options v1.GetOptions) (result *v1alpha1.Branch, err error)
Get takes name of the branch, and returns the corresponding branch object, and an error if there is any.
func (*FakeBranches) List ¶
func (c *FakeBranches) List(opts v1.ListOptions) (result *v1alpha1.BranchList, err error)
List takes label and field selectors, and returns the list of Branches that match those selectors.
func (*FakeBranches) Patch ¶
func (c *FakeBranches) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.Branch, err error)
Patch applies the patch and returns the patched branch.
func (*FakeBranches) Update ¶
Update takes the representation of a branch and updates it. Returns the server's representation of the branch, and an error, if there is any.
func (*FakeBranches) Watch ¶
func (c *FakeBranches) Watch(opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested branches.
type FakeGitV1alpha1 ¶
func (*FakeGitV1alpha1) Branches ¶
func (c *FakeGitV1alpha1) Branches(namespace string) v1alpha1.BranchInterface
func (*FakeGitV1alpha1) PullRequests ¶
func (c *FakeGitV1alpha1) PullRequests(namespace string) v1alpha1.PullRequestInterface
func (*FakeGitV1alpha1) RESTClient ¶
func (c *FakeGitV1alpha1) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.
func (*FakeGitV1alpha1) Repositories ¶
func (c *FakeGitV1alpha1) Repositories(namespace string) v1alpha1.RepositoryInterface
func (*FakeGitV1alpha1) Tags ¶
func (c *FakeGitV1alpha1) Tags(namespace string) v1alpha1.TagInterface
type FakePullRequests ¶
type FakePullRequests struct { Fake *FakeGitV1alpha1 // contains filtered or unexported fields }
FakePullRequests implements PullRequestInterface
func (*FakePullRequests) Create ¶
func (c *FakePullRequests) Create(pullRequest *v1alpha1.PullRequest) (result *v1alpha1.PullRequest, err error)
Create takes the representation of a pullRequest and creates it. Returns the server's representation of the pullRequest, and an error, if there is any.
func (*FakePullRequests) Delete ¶
func (c *FakePullRequests) Delete(name string, options *v1.DeleteOptions) error
Delete takes name of the pullRequest and deletes it. Returns an error if one occurs.
func (*FakePullRequests) DeleteCollection ¶
func (c *FakePullRequests) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakePullRequests) Get ¶
func (c *FakePullRequests) Get(name string, options v1.GetOptions) (result *v1alpha1.PullRequest, err error)
Get takes name of the pullRequest, and returns the corresponding pullRequest object, and an error if there is any.
func (*FakePullRequests) List ¶
func (c *FakePullRequests) List(opts v1.ListOptions) (result *v1alpha1.PullRequestList, err error)
List takes label and field selectors, and returns the list of PullRequests that match those selectors.
func (*FakePullRequests) Patch ¶
func (c *FakePullRequests) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.PullRequest, err error)
Patch applies the patch and returns the patched pullRequest.
func (*FakePullRequests) Update ¶
func (c *FakePullRequests) Update(pullRequest *v1alpha1.PullRequest) (result *v1alpha1.PullRequest, err error)
Update takes the representation of a pullRequest and updates it. Returns the server's representation of the pullRequest, and an error, if there is any.
func (*FakePullRequests) Watch ¶
func (c *FakePullRequests) Watch(opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested pullRequests.
type FakeRepositories ¶
type FakeRepositories struct { Fake *FakeGitV1alpha1 // contains filtered or unexported fields }
FakeRepositories implements RepositoryInterface
func (*FakeRepositories) Create ¶
func (c *FakeRepositories) Create(repository *v1alpha1.Repository) (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(name string, options *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(options *v1.DeleteOptions, listOptions v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeRepositories) Get ¶
func (c *FakeRepositories) Get(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(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(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.Repository, err error)
Patch applies the patch and returns the patched repository.
func (*FakeRepositories) Update ¶
func (c *FakeRepositories) Update(repository *v1alpha1.Repository) (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(repository *v1alpha1.Repository) (*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(opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested repositories.
type FakeTags ¶
type FakeTags struct { Fake *FakeGitV1alpha1 // contains filtered or unexported fields }
FakeTags implements TagInterface
func (*FakeTags) Create ¶
Create takes the representation of a tag and creates it. Returns the server's representation of the tag, and an error, if there is any.
func (*FakeTags) Delete ¶
func (c *FakeTags) Delete(name string, options *v1.DeleteOptions) error
Delete takes name of the tag and deletes it. Returns an error if one occurs.
func (*FakeTags) DeleteCollection ¶
func (c *FakeTags) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeTags) Get ¶
Get takes name of the tag, and returns the corresponding tag object, and an error if there is any.
func (*FakeTags) List ¶
List takes label and field selectors, and returns the list of Tags that match those selectors.
func (*FakeTags) Patch ¶
func (c *FakeTags) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.Tag, err error)
Patch applies the patch and returns the patched tag.