fake

package
v1.2.46 Latest Latest
Warning

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

Go to latest
Published: May 13, 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 FakeJenkinsV1

type FakeJenkinsV1 struct {
	*testing.Fake
}

func (*FakeJenkinsV1) RESTClient

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

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

func (*FakeJenkinsV1) SSOs

func (c *FakeJenkinsV1) SSOs(namespace string) v1.SSOInterface

type FakeSSOs

type FakeSSOs struct {
	Fake *FakeJenkinsV1
	// contains filtered or unexported fields
}

FakeSSOs implements SSOInterface

func (*FakeSSOs) Create

func (c *FakeSSOs) Create(sSO *jenkinsiov1.SSO) (result *jenkinsiov1.SSO, err error)

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

func (*FakeSSOs) Delete

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

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

func (*FakeSSOs) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeSSOs) Get

func (c *FakeSSOs) Get(name string, options v1.GetOptions) (result *jenkinsiov1.SSO, err error)

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

func (*FakeSSOs) List

func (c *FakeSSOs) List(opts v1.ListOptions) (result *jenkinsiov1.SSOList, err error)

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

func (*FakeSSOs) Patch

func (c *FakeSSOs) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *jenkinsiov1.SSO, err error)

Patch applies the patch and returns the patched sSO.

func (*FakeSSOs) Update

func (c *FakeSSOs) Update(sSO *jenkinsiov1.SSO) (result *jenkinsiov1.SSO, err error)

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

func (*FakeSSOs) Watch

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

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

Jump to

Keyboard shortcuts

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