fake

package
v0.0.0-...-cb3e436 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 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 FakeCronJobSources

type FakeCronJobSources struct {
	Fake *FakeSourcesV1alpha1
	// contains filtered or unexported fields
}

FakeCronJobSources implements CronJobSourceInterface

func (*FakeCronJobSources) Create

func (c *FakeCronJobSources) Create(cronJobSource *v1alpha1.CronJobSource) (result *v1alpha1.CronJobSource, err error)

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

func (*FakeCronJobSources) Delete

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

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

func (*FakeCronJobSources) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeCronJobSources) Get

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

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

func (*FakeCronJobSources) List

func (c *FakeCronJobSources) List(opts v1.ListOptions) (result *v1alpha1.CronJobSourceList, err error)

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

func (*FakeCronJobSources) Patch

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

Patch applies the patch and returns the patched cronJobSource.

func (*FakeCronJobSources) Update

func (c *FakeCronJobSources) Update(cronJobSource *v1alpha1.CronJobSource) (result *v1alpha1.CronJobSource, err error)

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

func (*FakeCronJobSources) UpdateStatus

func (c *FakeCronJobSources) UpdateStatus(cronJobSource *v1alpha1.CronJobSource) (*v1alpha1.CronJobSource, error)

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

func (*FakeCronJobSources) Watch

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

type FakeJobSources

type FakeJobSources struct {
	Fake *FakeSourcesV1alpha1
	// contains filtered or unexported fields
}

FakeJobSources implements JobSourceInterface

func (*FakeJobSources) Create

func (c *FakeJobSources) Create(jobSource *v1alpha1.JobSource) (result *v1alpha1.JobSource, err error)

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

func (*FakeJobSources) Delete

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

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

func (*FakeJobSources) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeJobSources) Get

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

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

func (*FakeJobSources) List

func (c *FakeJobSources) List(opts v1.ListOptions) (result *v1alpha1.JobSourceList, err error)

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

func (*FakeJobSources) Patch

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

Patch applies the patch and returns the patched jobSource.

func (*FakeJobSources) Update

func (c *FakeJobSources) Update(jobSource *v1alpha1.JobSource) (result *v1alpha1.JobSource, err error)

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

func (*FakeJobSources) UpdateStatus

func (c *FakeJobSources) UpdateStatus(jobSource *v1alpha1.JobSource) (*v1alpha1.JobSource, error)

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

func (*FakeJobSources) Watch

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

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

type FakeServiceSources

type FakeServiceSources struct {
	Fake *FakeSourcesV1alpha1
	// contains filtered or unexported fields
}

FakeServiceSources implements ServiceSourceInterface

func (*FakeServiceSources) Create

func (c *FakeServiceSources) Create(serviceSource *v1alpha1.ServiceSource) (result *v1alpha1.ServiceSource, err error)

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

func (*FakeServiceSources) Delete

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

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

func (*FakeServiceSources) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeServiceSources) Get

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

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

func (*FakeServiceSources) List

func (c *FakeServiceSources) List(opts v1.ListOptions) (result *v1alpha1.ServiceSourceList, err error)

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

func (*FakeServiceSources) Patch

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

Patch applies the patch and returns the patched serviceSource.

func (*FakeServiceSources) Update

func (c *FakeServiceSources) Update(serviceSource *v1alpha1.ServiceSource) (result *v1alpha1.ServiceSource, err error)

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

func (*FakeServiceSources) UpdateStatus

func (c *FakeServiceSources) UpdateStatus(serviceSource *v1alpha1.ServiceSource) (*v1alpha1.ServiceSource, error)

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

func (*FakeServiceSources) Watch

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

type FakeSourcesV1alpha1

type FakeSourcesV1alpha1 struct {
	*testing.Fake
}

func (*FakeSourcesV1alpha1) CronJobSources

func (c *FakeSourcesV1alpha1) CronJobSources(namespace string) v1alpha1.CronJobSourceInterface

func (*FakeSourcesV1alpha1) JobSources

func (c *FakeSourcesV1alpha1) JobSources(namespace string) v1alpha1.JobSourceInterface

func (*FakeSourcesV1alpha1) RESTClient

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

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

func (*FakeSourcesV1alpha1) ServiceSources

func (c *FakeSourcesV1alpha1) ServiceSources(namespace string) v1alpha1.ServiceSourceInterface

Jump to

Keyboard shortcuts

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