fake

package
v0.0.0-...-b219a09 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 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 FakeGitHooks

type FakeGitHooks struct {
	Fake *FakeKubegitV1alpha1
	// contains filtered or unexported fields
}

FakeGitHooks implements GitHookInterface

func (*FakeGitHooks) Create

func (c *FakeGitHooks) Create(gitHook *v1alpha1.GitHook) (result *v1alpha1.GitHook, err error)

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

func (*FakeGitHooks) Delete

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

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

func (*FakeGitHooks) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeGitHooks) Get

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

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

func (*FakeGitHooks) List

func (c *FakeGitHooks) List(opts v1.ListOptions) (result *v1alpha1.GitHookList, err error)

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

func (*FakeGitHooks) Patch

func (c *FakeGitHooks) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.GitHook, err error)

Patch applies the patch and returns the patched gitHook.

func (*FakeGitHooks) Update

func (c *FakeGitHooks) Update(gitHook *v1alpha1.GitHook) (result *v1alpha1.GitHook, err error)

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

func (*FakeGitHooks) UpdateStatus

func (c *FakeGitHooks) UpdateStatus(gitHook *v1alpha1.GitHook) (*v1alpha1.GitHook, error)

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

func (*FakeGitHooks) Watch

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

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

type FakeKubegitV1alpha1

type FakeKubegitV1alpha1 struct {
	*testing.Fake
}

func (*FakeKubegitV1alpha1) GitHooks

func (c *FakeKubegitV1alpha1) GitHooks(namespace string) v1alpha1.GitHookInterface

func (*FakeKubegitV1alpha1) RESTClient

func (c *FakeKubegitV1alpha1) 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