fake

package
v0.4.5 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 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 FakeGitCommits

type FakeGitCommits struct {
	Fake *FakeGitwatcherV1
	// contains filtered or unexported fields
}

FakeGitCommits implements GitCommitInterface

func (*FakeGitCommits) Create

Create takes the representation of a gitCommit and creates it. Returns the server's representation of the gitCommit, and an error, if there is any.

func (*FakeGitCommits) Delete

func (c *FakeGitCommits) Delete(name string, options *v1.DeleteOptions) error

Delete takes name of the gitCommit and deletes it. Returns an error if one occurs.

func (*FakeGitCommits) DeleteCollection

func (c *FakeGitCommits) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeGitCommits) Get

func (c *FakeGitCommits) Get(name string, options v1.GetOptions) (result *gitwatchercattleiov1.GitCommit, err error)

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

func (*FakeGitCommits) List

List takes label and field selectors, and returns the list of GitCommits that match those selectors.

func (*FakeGitCommits) Patch

func (c *FakeGitCommits) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *gitwatchercattleiov1.GitCommit, err error)

Patch applies the patch and returns the patched gitCommit.

func (*FakeGitCommits) Update

Update takes the representation of a gitCommit and updates it. Returns the server's representation of the gitCommit, and an error, if there is any.

func (*FakeGitCommits) UpdateStatus

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

func (*FakeGitCommits) Watch

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

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

type FakeGitWatchers

type FakeGitWatchers struct {
	Fake *FakeGitwatcherV1
	// contains filtered or unexported fields
}

FakeGitWatchers implements GitWatcherInterface

func (*FakeGitWatchers) Create

Create takes the representation of a gitWatcher and creates it. Returns the server's representation of the gitWatcher, and an error, if there is any.

func (*FakeGitWatchers) Delete

func (c *FakeGitWatchers) Delete(name string, options *v1.DeleteOptions) error

Delete takes name of the gitWatcher and deletes it. Returns an error if one occurs.

func (*FakeGitWatchers) DeleteCollection

func (c *FakeGitWatchers) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeGitWatchers) Get

func (c *FakeGitWatchers) Get(name string, options v1.GetOptions) (result *gitwatchercattleiov1.GitWatcher, err error)

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

func (*FakeGitWatchers) List

List takes label and field selectors, and returns the list of GitWatchers that match those selectors.

func (*FakeGitWatchers) Patch

func (c *FakeGitWatchers) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *gitwatchercattleiov1.GitWatcher, err error)

Patch applies the patch and returns the patched gitWatcher.

func (*FakeGitWatchers) Update

Update takes the representation of a gitWatcher and updates it. Returns the server's representation of the gitWatcher, and an error, if there is any.

func (*FakeGitWatchers) UpdateStatus

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

func (*FakeGitWatchers) Watch

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

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

type FakeGitwatcherV1

type FakeGitwatcherV1 struct {
	*testing.Fake
}

func (*FakeGitwatcherV1) GitCommits

func (c *FakeGitwatcherV1) GitCommits(namespace string) v1.GitCommitInterface

func (*FakeGitwatcherV1) GitWatchers

func (c *FakeGitwatcherV1) GitWatchers(namespace string) v1.GitWatcherInterface

func (*FakeGitwatcherV1) RESTClient

func (c *FakeGitwatcherV1) RESTClient() rest.Interface

RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.

Jump to

Keyboard shortcuts

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