Documentation ¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeCrV1
- type FakeExamples
- func (c *FakeExamples) Create(example *crv1.Example) (result *crv1.Example, err error)
- func (c *FakeExamples) Delete(name string, options *v1.DeleteOptions) error
- func (c *FakeExamples) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
- func (c *FakeExamples) Get(name string, options v1.GetOptions) (result *crv1.Example, err error)
- func (c *FakeExamples) List(opts v1.ListOptions) (result *crv1.ExampleList, err error)
- func (c *FakeExamples) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *crv1.Example, err error)
- func (c *FakeExamples) Update(example *crv1.Example) (result *crv1.Example, err error)
- func (c *FakeExamples) Watch(opts v1.ListOptions) (watch.Interface, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeCrV1 ¶
func (*FakeCrV1) RESTClient ¶
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 ¶
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 ¶
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.