Documentation ¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeMyprojectV1alpha1
- type FakeSamples
- func (c *FakeSamples) Create(sample *v1alpha1.Sample) (result *v1alpha1.Sample, err error)
- func (c *FakeSamples) Delete(name string, options *v1.DeleteOptions) error
- func (c *FakeSamples) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
- func (c *FakeSamples) Get(name string, options v1.GetOptions) (result *v1alpha1.Sample, err error)
- func (c *FakeSamples) List(opts v1.ListOptions) (result *v1alpha1.SampleList, err error)
- func (c *FakeSamples) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.Sample, err error)
- func (c *FakeSamples) Update(sample *v1alpha1.Sample) (result *v1alpha1.Sample, err error)
- func (c *FakeSamples) Watch(opts v1.ListOptions) (watch.Interface, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeMyprojectV1alpha1 ¶
func (*FakeMyprojectV1alpha1) RESTClient ¶
func (c *FakeMyprojectV1alpha1) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.
func (*FakeMyprojectV1alpha1) Samples ¶
func (c *FakeMyprojectV1alpha1) Samples(namespace string) v1alpha1.SampleInterface
type FakeSamples ¶
type FakeSamples struct { Fake *FakeMyprojectV1alpha1 // contains filtered or unexported fields }
FakeSamples implements SampleInterface
func (*FakeSamples) Create ¶
Create takes the representation of a sample and creates it. Returns the server's representation of the sample, and an error, if there is any.
func (*FakeSamples) Delete ¶
func (c *FakeSamples) Delete(name string, options *v1.DeleteOptions) error
Delete takes name of the sample and deletes it. Returns an error if one occurs.
func (*FakeSamples) DeleteCollection ¶
func (c *FakeSamples) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeSamples) Get ¶
func (c *FakeSamples) Get(name string, options v1.GetOptions) (result *v1alpha1.Sample, err error)
Get takes name of the sample, and returns the corresponding sample object, and an error if there is any.
func (*FakeSamples) List ¶
func (c *FakeSamples) List(opts v1.ListOptions) (result *v1alpha1.SampleList, err error)
List takes label and field selectors, and returns the list of Samples that match those selectors.
func (*FakeSamples) Patch ¶
func (c *FakeSamples) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.Sample, err error)
Patch applies the patch and returns the patched sample.
func (*FakeSamples) Update ¶
Update takes the representation of a sample and updates it. Returns the server's representation of the sample, and an error, if there is any.
func (*FakeSamples) Watch ¶
func (c *FakeSamples) Watch(opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested samples.