fake

package
Version: v0.28.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 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 FakeFlowsV1

type FakeFlowsV1 struct {
	*testing.Fake
}

func (*FakeFlowsV1) Parallels

func (c *FakeFlowsV1) Parallels(namespace string) v1.ParallelInterface

func (*FakeFlowsV1) RESTClient

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

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

func (*FakeFlowsV1) Sequences

func (c *FakeFlowsV1) Sequences(namespace string) v1.SequenceInterface

type FakeParallels

type FakeParallels struct {
	Fake *FakeFlowsV1
	// contains filtered or unexported fields
}

FakeParallels implements ParallelInterface

func (*FakeParallels) Create

func (c *FakeParallels) Create(ctx context.Context, parallel *flowsv1.Parallel, opts v1.CreateOptions) (result *flowsv1.Parallel, err error)

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

func (*FakeParallels) Delete

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

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

func (*FakeParallels) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeParallels) Get

func (c *FakeParallels) Get(ctx context.Context, name string, options v1.GetOptions) (result *flowsv1.Parallel, err error)

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

func (*FakeParallels) List

func (c *FakeParallels) List(ctx context.Context, opts v1.ListOptions) (result *flowsv1.ParallelList, err error)

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

func (*FakeParallels) Patch

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

Patch applies the patch and returns the patched parallel.

func (*FakeParallels) Update

func (c *FakeParallels) Update(ctx context.Context, parallel *flowsv1.Parallel, opts v1.UpdateOptions) (result *flowsv1.Parallel, err error)

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

func (*FakeParallels) UpdateStatus

func (c *FakeParallels) UpdateStatus(ctx context.Context, parallel *flowsv1.Parallel, opts v1.UpdateOptions) (*flowsv1.Parallel, error)

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

func (*FakeParallels) Watch

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

type FakeSequences

type FakeSequences struct {
	Fake *FakeFlowsV1
	// contains filtered or unexported fields
}

FakeSequences implements SequenceInterface

func (*FakeSequences) Create

func (c *FakeSequences) Create(ctx context.Context, sequence *flowsv1.Sequence, opts v1.CreateOptions) (result *flowsv1.Sequence, err error)

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

func (*FakeSequences) Delete

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

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

func (*FakeSequences) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeSequences) Get

func (c *FakeSequences) Get(ctx context.Context, name string, options v1.GetOptions) (result *flowsv1.Sequence, err error)

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

func (*FakeSequences) List

func (c *FakeSequences) List(ctx context.Context, opts v1.ListOptions) (result *flowsv1.SequenceList, err error)

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

func (*FakeSequences) Patch

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

Patch applies the patch and returns the patched sequence.

func (*FakeSequences) Update

func (c *FakeSequences) Update(ctx context.Context, sequence *flowsv1.Sequence, opts v1.UpdateOptions) (result *flowsv1.Sequence, err error)

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

func (*FakeSequences) UpdateStatus

func (c *FakeSequences) UpdateStatus(ctx context.Context, sequence *flowsv1.Sequence, opts v1.UpdateOptions) (*flowsv1.Sequence, error)

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

func (*FakeSequences) Watch

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

Jump to

Keyboard shortcuts

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