Documentation ¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakePingSources
- func (c *FakePingSources) Create(ctx context.Context, pingSource *v1beta2.PingSource, opts v1.CreateOptions) (result *v1beta2.PingSource, err error)
- func (c *FakePingSources) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakePingSources) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakePingSources) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta2.PingSource, err error)
- func (c *FakePingSources) List(ctx context.Context, opts v1.ListOptions) (result *v1beta2.PingSourceList, err error)
- func (c *FakePingSources) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1beta2.PingSource, err error)
- func (c *FakePingSources) Update(ctx context.Context, pingSource *v1beta2.PingSource, opts v1.UpdateOptions) (result *v1beta2.PingSource, err error)
- func (c *FakePingSources) UpdateStatus(ctx context.Context, pingSource *v1beta2.PingSource, opts v1.UpdateOptions) (*v1beta2.PingSource, error)
- func (c *FakePingSources) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeSourcesV1beta2
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakePingSources ¶
type FakePingSources struct { Fake *FakeSourcesV1beta2 // contains filtered or unexported fields }
FakePingSources implements PingSourceInterface
func (*FakePingSources) Create ¶
func (c *FakePingSources) Create(ctx context.Context, pingSource *v1beta2.PingSource, opts v1.CreateOptions) (result *v1beta2.PingSource, err error)
Create takes the representation of a pingSource and creates it. Returns the server's representation of the pingSource, and an error, if there is any.
func (*FakePingSources) Delete ¶
func (c *FakePingSources) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the pingSource and deletes it. Returns an error if one occurs.
func (*FakePingSources) DeleteCollection ¶
func (c *FakePingSources) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakePingSources) Get ¶
func (c *FakePingSources) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta2.PingSource, err error)
Get takes name of the pingSource, and returns the corresponding pingSource object, and an error if there is any.
func (*FakePingSources) List ¶
func (c *FakePingSources) List(ctx context.Context, opts v1.ListOptions) (result *v1beta2.PingSourceList, err error)
List takes label and field selectors, and returns the list of PingSources that match those selectors.
func (*FakePingSources) Patch ¶
func (c *FakePingSources) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta2.PingSource, err error)
Patch applies the patch and returns the patched pingSource.
func (*FakePingSources) Update ¶
func (c *FakePingSources) Update(ctx context.Context, pingSource *v1beta2.PingSource, opts v1.UpdateOptions) (result *v1beta2.PingSource, err error)
Update takes the representation of a pingSource and updates it. Returns the server's representation of the pingSource, and an error, if there is any.
func (*FakePingSources) UpdateStatus ¶
func (c *FakePingSources) UpdateStatus(ctx context.Context, pingSource *v1beta2.PingSource, opts v1.UpdateOptions) (*v1beta2.PingSource, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakePingSources) Watch ¶
func (c *FakePingSources) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested pingSources.
type FakeSourcesV1beta2 ¶
func (*FakeSourcesV1beta2) PingSources ¶
func (c *FakeSourcesV1beta2) PingSources(namespace string) v1beta2.PingSourceInterface
func (*FakeSourcesV1beta2) RESTClient ¶
func (c *FakeSourcesV1beta2) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.