fake

package
v0.0.0-...-c29577e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 20, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package fake has the automatically generated clients.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeRepoV1alpha1

type FakeRepoV1alpha1 struct {
	*testing.Fake
}

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

func (c *FakeRepos) Create(repo *v1alpha1.Repo) (result *v1alpha1.Repo, err error)

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

func (c *FakeRepos) Get(name string, options v1.GetOptions) (result *v1alpha1.Repo, err error)

Get takes name of the repo, and returns the corresponding repo object, and an error if there is any.

func (*FakeRepos) List

func (c *FakeRepos) List(opts v1.ListOptions) (result *v1alpha1.RepoList, err error)

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

func (c *FakeRepos) Update(repo *v1alpha1.Repo) (result *v1alpha1.Repo, err error)

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

func (c *FakeRepos) UpdateStatus(repo *v1alpha1.Repo) (*v1alpha1.Repo, error)

UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().

func (*FakeRepos) Watch

func (c *FakeRepos) Watch(opts v1.ListOptions) (watch.Interface, error)

Watch returns a watch.Interface that watches the requested repos.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL