fake

package
v0.0.0-...-287d054 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2020 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 FakeGatewayV1alpha1

type FakeGatewayV1alpha1 struct {
	*testing.Fake
}

func (*FakeGatewayV1alpha1) GitHubs

func (c *FakeGatewayV1alpha1) GitHubs(namespace string) v1alpha1.GitHubInterface

func (*FakeGatewayV1alpha1) RESTClient

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

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

func (*FakeGatewayV1alpha1) Slackbots

func (c *FakeGatewayV1alpha1) Slackbots(namespace string) v1alpha1.SlackbotInterface

type FakeGitHubs

type FakeGitHubs struct {
	Fake *FakeGatewayV1alpha1
	// contains filtered or unexported fields
}

FakeGitHubs implements GitHubInterface

func (*FakeGitHubs) Create

func (c *FakeGitHubs) Create(gitHub *v1alpha1.GitHub) (result *v1alpha1.GitHub, err error)

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

func (*FakeGitHubs) Delete

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

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

func (*FakeGitHubs) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeGitHubs) Get

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

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

func (*FakeGitHubs) List

func (c *FakeGitHubs) List(opts v1.ListOptions) (result *v1alpha1.GitHubList, err error)

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

func (*FakeGitHubs) Patch

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

Patch applies the patch and returns the patched gitHub.

func (*FakeGitHubs) Update

func (c *FakeGitHubs) Update(gitHub *v1alpha1.GitHub) (result *v1alpha1.GitHub, err error)

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

func (*FakeGitHubs) UpdateStatus

func (c *FakeGitHubs) UpdateStatus(gitHub *v1alpha1.GitHub) (*v1alpha1.GitHub, error)

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

func (*FakeGitHubs) Watch

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

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

type FakeSlackbots

type FakeSlackbots struct {
	Fake *FakeGatewayV1alpha1
	// contains filtered or unexported fields
}

FakeSlackbots implements SlackbotInterface

func (*FakeSlackbots) Create

func (c *FakeSlackbots) Create(slackbot *v1alpha1.Slackbot) (result *v1alpha1.Slackbot, err error)

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

func (*FakeSlackbots) Delete

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

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

func (*FakeSlackbots) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeSlackbots) Get

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

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

func (*FakeSlackbots) List

func (c *FakeSlackbots) List(opts v1.ListOptions) (result *v1alpha1.SlackbotList, err error)

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

func (*FakeSlackbots) Patch

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

Patch applies the patch and returns the patched slackbot.

func (*FakeSlackbots) Update

func (c *FakeSlackbots) Update(slackbot *v1alpha1.Slackbot) (result *v1alpha1.Slackbot, err error)

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

func (*FakeSlackbots) UpdateStatus

func (c *FakeSlackbots) UpdateStatus(slackbot *v1alpha1.Slackbot) (*v1alpha1.Slackbot, error)

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

func (*FakeSlackbots) Watch

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

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

Jump to

Keyboard shortcuts

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