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