fake

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 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 FakeCertificates

type FakeCertificates struct {
	Fake *FakeNetworkingV1alpha1
	// contains filtered or unexported fields
}

FakeCertificates implements CertificateInterface

func (*FakeCertificates) Create

func (c *FakeCertificates) Create(certificate *v1alpha1.Certificate) (result *v1alpha1.Certificate, err error)

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

func (*FakeCertificates) Delete

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

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

func (*FakeCertificates) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeCertificates) Get

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

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

func (*FakeCertificates) List

func (c *FakeCertificates) List(opts v1.ListOptions) (result *v1alpha1.CertificateList, err error)

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

func (*FakeCertificates) Patch

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

Patch applies the patch and returns the patched certificate.

func (*FakeCertificates) Update

func (c *FakeCertificates) Update(certificate *v1alpha1.Certificate) (result *v1alpha1.Certificate, err error)

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

func (*FakeCertificates) UpdateStatus

func (c *FakeCertificates) UpdateStatus(certificate *v1alpha1.Certificate) (*v1alpha1.Certificate, error)

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

func (*FakeCertificates) Watch

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

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

type FakeIngresses

type FakeIngresses struct {
	Fake *FakeNetworkingV1alpha1
	// contains filtered or unexported fields
}

FakeIngresses implements IngressInterface

func (*FakeIngresses) Create

func (c *FakeIngresses) Create(ingress *v1alpha1.Ingress) (result *v1alpha1.Ingress, err error)

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

func (*FakeIngresses) Delete

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

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

func (*FakeIngresses) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeIngresses) Get

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

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

func (*FakeIngresses) List

func (c *FakeIngresses) List(opts v1.ListOptions) (result *v1alpha1.IngressList, err error)

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

func (*FakeIngresses) Patch

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

Patch applies the patch and returns the patched ingress.

func (*FakeIngresses) Update

func (c *FakeIngresses) Update(ingress *v1alpha1.Ingress) (result *v1alpha1.Ingress, err error)

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

func (*FakeIngresses) UpdateStatus

func (c *FakeIngresses) UpdateStatus(ingress *v1alpha1.Ingress) (*v1alpha1.Ingress, error)

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

func (*FakeIngresses) Watch

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

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

type FakeNetworkingV1alpha1

type FakeNetworkingV1alpha1 struct {
	*testing.Fake
}

func (*FakeNetworkingV1alpha1) Certificates

func (c *FakeNetworkingV1alpha1) Certificates(namespace string) v1alpha1.CertificateInterface

func (*FakeNetworkingV1alpha1) Ingresses

func (c *FakeNetworkingV1alpha1) Ingresses(namespace string) v1alpha1.IngressInterface

func (*FakeNetworkingV1alpha1) RESTClient

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

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

func (*FakeNetworkingV1alpha1) ServerlessServices

func (c *FakeNetworkingV1alpha1) ServerlessServices(namespace string) v1alpha1.ServerlessServiceInterface

type FakeServerlessServices

type FakeServerlessServices struct {
	Fake *FakeNetworkingV1alpha1
	// contains filtered or unexported fields
}

FakeServerlessServices implements ServerlessServiceInterface

func (*FakeServerlessServices) Create

func (c *FakeServerlessServices) Create(serverlessService *v1alpha1.ServerlessService) (result *v1alpha1.ServerlessService, err error)

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

func (*FakeServerlessServices) Delete

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

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

func (*FakeServerlessServices) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeServerlessServices) Get

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

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

func (*FakeServerlessServices) List

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

func (*FakeServerlessServices) Patch

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

Patch applies the patch and returns the patched serverlessService.

func (*FakeServerlessServices) Update

func (c *FakeServerlessServices) Update(serverlessService *v1alpha1.ServerlessService) (result *v1alpha1.ServerlessService, err error)

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

func (*FakeServerlessServices) UpdateStatus

func (c *FakeServerlessServices) UpdateStatus(serverlessService *v1alpha1.ServerlessService) (*v1alpha1.ServerlessService, error)

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

func (*FakeServerlessServices) Watch

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

Jump to

Keyboard shortcuts

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