fake

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2023 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 FakeCircuitBreakers

type FakeCircuitBreakers struct {
	Fake *FakeCtrlmeshV1alpha1
	// contains filtered or unexported fields
}

FakeCircuitBreakers implements CircuitBreakerInterface

func (*FakeCircuitBreakers) Create

func (c *FakeCircuitBreakers) Create(ctx context.Context, circuitBreaker *v1alpha1.CircuitBreaker, opts v1.CreateOptions) (result *v1alpha1.CircuitBreaker, err error)

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

func (*FakeCircuitBreakers) Delete

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

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

func (*FakeCircuitBreakers) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeCircuitBreakers) Get

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

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

func (*FakeCircuitBreakers) List

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

func (*FakeCircuitBreakers) Patch

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

Patch applies the patch and returns the patched circuitBreaker.

func (*FakeCircuitBreakers) Update

func (c *FakeCircuitBreakers) Update(ctx context.Context, circuitBreaker *v1alpha1.CircuitBreaker, opts v1.UpdateOptions) (result *v1alpha1.CircuitBreaker, err error)

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

func (*FakeCircuitBreakers) UpdateStatus

func (c *FakeCircuitBreakers) UpdateStatus(ctx context.Context, circuitBreaker *v1alpha1.CircuitBreaker, opts v1.UpdateOptions) (*v1alpha1.CircuitBreaker, error)

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

func (*FakeCircuitBreakers) Watch

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

type FakeCtrlmeshV1alpha1

type FakeCtrlmeshV1alpha1 struct {
	*testing.Fake
}

func (*FakeCtrlmeshV1alpha1) CircuitBreakers

func (c *FakeCtrlmeshV1alpha1) CircuitBreakers(namespace string) v1alpha1.CircuitBreakerInterface

func (*FakeCtrlmeshV1alpha1) ManagerStates

func (*FakeCtrlmeshV1alpha1) RESTClient

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

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

func (*FakeCtrlmeshV1alpha1) ShardingConfigs

func (c *FakeCtrlmeshV1alpha1) ShardingConfigs(namespace string) v1alpha1.ShardingConfigInterface

type FakeManagerStates

type FakeManagerStates struct {
	Fake *FakeCtrlmeshV1alpha1
}

FakeManagerStates implements ManagerStateInterface

func (*FakeManagerStates) Create

func (c *FakeManagerStates) Create(ctx context.Context, managerState *v1alpha1.ManagerState, opts v1.CreateOptions) (result *v1alpha1.ManagerState, err error)

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

func (*FakeManagerStates) Delete

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

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

func (*FakeManagerStates) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeManagerStates) Get

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

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

func (*FakeManagerStates) List

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

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

func (*FakeManagerStates) Patch

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

Patch applies the patch and returns the patched managerState.

func (*FakeManagerStates) Update

func (c *FakeManagerStates) Update(ctx context.Context, managerState *v1alpha1.ManagerState, opts v1.UpdateOptions) (result *v1alpha1.ManagerState, err error)

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

func (*FakeManagerStates) UpdateStatus

func (c *FakeManagerStates) UpdateStatus(ctx context.Context, managerState *v1alpha1.ManagerState, opts v1.UpdateOptions) (*v1alpha1.ManagerState, error)

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

func (*FakeManagerStates) Watch

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

type FakeShardingConfigs

type FakeShardingConfigs struct {
	Fake *FakeCtrlmeshV1alpha1
	// contains filtered or unexported fields
}

FakeShardingConfigs implements ShardingConfigInterface

func (*FakeShardingConfigs) Create

func (c *FakeShardingConfigs) Create(ctx context.Context, shardingConfig *v1alpha1.ShardingConfig, opts v1.CreateOptions) (result *v1alpha1.ShardingConfig, err error)

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

func (*FakeShardingConfigs) Delete

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

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

func (*FakeShardingConfigs) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeShardingConfigs) Get

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

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

func (*FakeShardingConfigs) List

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

func (*FakeShardingConfigs) Patch

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

Patch applies the patch and returns the patched shardingConfig.

func (*FakeShardingConfigs) Update

func (c *FakeShardingConfigs) Update(ctx context.Context, shardingConfig *v1alpha1.ShardingConfig, opts v1.UpdateOptions) (result *v1alpha1.ShardingConfig, err error)

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

func (*FakeShardingConfigs) UpdateStatus

func (c *FakeShardingConfigs) UpdateStatus(ctx context.Context, shardingConfig *v1alpha1.ShardingConfig, opts v1.UpdateOptions) (*v1alpha1.ShardingConfig, error)

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

func (*FakeShardingConfigs) Watch

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

Jump to

Keyboard shortcuts

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