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 FakeCrV1

    type FakeCrV1 struct {
    	*testing.Fake
    }

    func (*FakeCrV1) Examples

    func (c *FakeCrV1) Examples(namespace string) v1.ExampleInterface

    func (*FakeCrV1) RESTClient

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

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

      type FakeExamples

      type FakeExamples struct {
      	Fake *FakeCrV1
      	// contains filtered or unexported fields
      }

        FakeExamples implements ExampleInterface

        func (*FakeExamples) Create

        func (c *FakeExamples) Create(example *crv1.Example) (result *crv1.Example, err error)

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

          func (*FakeExamples) Delete

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

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

            func (*FakeExamples) DeleteCollection

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

              DeleteCollection deletes a collection of objects.

              func (*FakeExamples) Get

              func (c *FakeExamples) Get(name string, options v1.GetOptions) (result *crv1.Example, err error)

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

                func (*FakeExamples) List

                func (c *FakeExamples) List(opts v1.ListOptions) (result *crv1.ExampleList, err error)

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

                  func (*FakeExamples) Patch

                  func (c *FakeExamples) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *crv1.Example, err error)

                    Patch applies the patch and returns the patched example.

                    func (*FakeExamples) Update

                    func (c *FakeExamples) Update(example *crv1.Example) (result *crv1.Example, err error)

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

                      func (*FakeExamples) Watch

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

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