fake

package
Version: v1.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 8, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

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 FakeOpsV1alpha1

type FakeOpsV1alpha1 struct {
	*testing.Fake
}

func (*FakeOpsV1alpha1) RESTClient

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

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

func (*FakeOpsV1alpha1) Traceflows

type FakeTraceflows

type FakeTraceflows struct {
	Fake *FakeOpsV1alpha1
}

FakeTraceflows implements TraceflowInterface

func (*FakeTraceflows) Create

func (c *FakeTraceflows) Create(ctx context.Context, traceflow *v1alpha1.Traceflow, opts v1.CreateOptions) (result *v1alpha1.Traceflow, err error)

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

func (*FakeTraceflows) Delete

func (c *FakeTraceflows) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error

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

func (*FakeTraceflows) DeleteCollection

func (c *FakeTraceflows) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeTraceflows) Get

func (c *FakeTraceflows) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Traceflow, err error)

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

func (*FakeTraceflows) List

func (c *FakeTraceflows) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.TraceflowList, err error)

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

func (*FakeTraceflows) Patch

func (c *FakeTraceflows) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.Traceflow, err error)

Patch applies the patch and returns the patched traceflow.

func (*FakeTraceflows) Update

func (c *FakeTraceflows) Update(ctx context.Context, traceflow *v1alpha1.Traceflow, opts v1.UpdateOptions) (result *v1alpha1.Traceflow, err error)

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

func (*FakeTraceflows) UpdateStatus

func (c *FakeTraceflows) UpdateStatus(ctx context.Context, traceflow *v1alpha1.Traceflow, opts v1.UpdateOptions) (*v1alpha1.Traceflow, error)

UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().

func (*FakeTraceflows) Watch

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL