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 FakeIngresses

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

      FakeIngresses implements IngressInterface

      func (*FakeIngresses) Create

      func (c *FakeIngresses) Create(ingress *networking.Ingress) (result *networking.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 *networking.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 *networking.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 *networking.Ingress, err error)

                  Patch applies the patch and returns the patched ingress.

                  func (*FakeIngresses) Update

                  func (c *FakeIngresses) Update(ingress *networking.Ingress) (result *networking.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 *networking.Ingress) (*networking.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 FakeNetworkPolicies

                        type FakeNetworkPolicies struct {
                        	Fake *FakeNetworking
                        	// contains filtered or unexported fields
                        }

                          FakeNetworkPolicies implements NetworkPolicyInterface

                          func (*FakeNetworkPolicies) Create

                          func (c *FakeNetworkPolicies) Create(networkPolicy *networking.NetworkPolicy) (result *networking.NetworkPolicy, err error)

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

                            func (*FakeNetworkPolicies) Delete

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

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

                              func (*FakeNetworkPolicies) DeleteCollection

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

                                DeleteCollection deletes a collection of objects.

                                func (*FakeNetworkPolicies) Get

                                func (c *FakeNetworkPolicies) Get(name string, options v1.GetOptions) (result *networking.NetworkPolicy, err error)

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

                                  func (*FakeNetworkPolicies) List

                                  func (c *FakeNetworkPolicies) List(opts v1.ListOptions) (result *networking.NetworkPolicyList, err error)

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

                                    func (*FakeNetworkPolicies) Patch

                                    func (c *FakeNetworkPolicies) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *networking.NetworkPolicy, err error)

                                      Patch applies the patch and returns the patched networkPolicy.

                                      func (*FakeNetworkPolicies) Update

                                      func (c *FakeNetworkPolicies) Update(networkPolicy *networking.NetworkPolicy) (result *networking.NetworkPolicy, err error)

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

                                        func (*FakeNetworkPolicies) Watch

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

                                          type FakeNetworking

                                          type FakeNetworking struct {
                                          	*testing.Fake
                                          }

                                          func (*FakeNetworking) Ingresses

                                          func (c *FakeNetworking) Ingresses(namespace string) internalversion.IngressInterface

                                          func (*FakeNetworking) NetworkPolicies

                                          func (c *FakeNetworking) NetworkPolicies(namespace string) internalversion.NetworkPolicyInterface

                                          func (*FakeNetworking) RESTClient

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

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