fake

package
v0.0.0-...-750586a Latest Latest
Warning

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

Go to latest
Published: Aug 27, 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 FakeFlowV1

type FakeFlowV1 struct {
	*testing.Fake
}

func (*FakeFlowV1) RESTClient

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

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

func (*FakeFlowV1) StateMachineRunners

func (c *FakeFlowV1) StateMachineRunners(namespace string) v1.StateMachineRunnerInterface

func (*FakeFlowV1) StateMachines

func (c *FakeFlowV1) StateMachines(namespace string) v1.StateMachineInterface

type FakeStateMachineRunners

type FakeStateMachineRunners struct {
	Fake *FakeFlowV1
	// contains filtered or unexported fields
}

FakeStateMachineRunners implements StateMachineRunnerInterface

func (*FakeStateMachineRunners) Create

func (c *FakeStateMachineRunners) Create(ctx context.Context, stateMachineRunner *statev1.StateMachineRunner, opts v1.CreateOptions) (result *statev1.StateMachineRunner, err error)

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

func (*FakeStateMachineRunners) Delete

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

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

func (*FakeStateMachineRunners) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeStateMachineRunners) Get

func (c *FakeStateMachineRunners) Get(ctx context.Context, name string, options v1.GetOptions) (result *statev1.StateMachineRunner, err error)

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

func (*FakeStateMachineRunners) List

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

func (*FakeStateMachineRunners) Patch

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

Patch applies the patch and returns the patched stateMachineRunner.

func (*FakeStateMachineRunners) Update

func (c *FakeStateMachineRunners) Update(ctx context.Context, stateMachineRunner *statev1.StateMachineRunner, opts v1.UpdateOptions) (result *statev1.StateMachineRunner, err error)

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

func (*FakeStateMachineRunners) UpdateStatus

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

func (*FakeStateMachineRunners) Watch

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

type FakeStateMachines

type FakeStateMachines struct {
	Fake *FakeFlowV1
	// contains filtered or unexported fields
}

FakeStateMachines implements StateMachineInterface

func (*FakeStateMachines) Create

func (c *FakeStateMachines) Create(ctx context.Context, stateMachine *statev1.StateMachine, opts v1.CreateOptions) (result *statev1.StateMachine, err error)

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

func (*FakeStateMachines) Delete

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

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

func (*FakeStateMachines) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeStateMachines) Get

func (c *FakeStateMachines) Get(ctx context.Context, name string, options v1.GetOptions) (result *statev1.StateMachine, err error)

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

func (*FakeStateMachines) List

func (c *FakeStateMachines) List(ctx context.Context, opts v1.ListOptions) (result *statev1.StateMachineList, err error)

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

func (*FakeStateMachines) Patch

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

Patch applies the patch and returns the patched stateMachine.

func (*FakeStateMachines) Update

func (c *FakeStateMachines) Update(ctx context.Context, stateMachine *statev1.StateMachine, opts v1.UpdateOptions) (result *statev1.StateMachine, err error)

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

func (*FakeStateMachines) UpdateStatus

func (c *FakeStateMachines) UpdateStatus(ctx context.Context, stateMachine *statev1.StateMachine, opts v1.UpdateOptions) (*statev1.StateMachine, error)

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

func (*FakeStateMachines) Watch

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

Jump to

Keyboard shortcuts

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