clients

package
v3.13.1 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NoopClient

type NoopClient struct{}

func (*NoopClient) Create

func (f *NoopClient) Create(ctx context.Context, obj client.Object, opts ...client.CreateOption) error

func (*NoopClient) Delete

func (f *NoopClient) Delete(ctx context.Context, obj client.Object, opts ...client.DeleteOption) error

func (*NoopClient) DeleteAllOf

func (f *NoopClient) DeleteAllOf(ctx context.Context, obj client.Object, opts ...client.DeleteAllOfOption) error

func (*NoopClient) Get

func (f *NoopClient) Get(ctx context.Context, key client.ObjectKey, obj runtime.Object) error

func (*NoopClient) List

func (f *NoopClient) List(ctx context.Context, list client.ObjectList, opts ...client.ListOption) error

func (*NoopClient) Patch

func (f *NoopClient) Patch(ctx context.Context, obj client.Object, patch client.Patch, opts ...client.PatchOption) error

func (*NoopClient) RESTMapper

func (f *NoopClient) RESTMapper() meta.RESTMapper

func (*NoopClient) Scheme

func (f *NoopClient) Scheme() *runtime.Scheme

func (*NoopClient) Status

func (f *NoopClient) Status() client.StatusWriter

func (*NoopClient) Update

func (f *NoopClient) Update(ctx context.Context, obj client.Object, opts ...client.UpdateOption) error

type RetryClient

type RetryClient struct {
	Limiter *rate.Limiter
	client.Client
}

RetryClient wraps a client to provide rate-limiter respecting retry behavior.

func NewRetryClient

func NewRetryClient(c client.Client) *RetryClient

func (*RetryClient) Create

func (c *RetryClient) Create(ctx context.Context, obj client.Object, opts ...client.CreateOption) error

func (*RetryClient) Delete

func (c *RetryClient) Delete(ctx context.Context, obj client.Object, opts ...client.DeleteOption) error

func (*RetryClient) DeleteAllOf

func (c *RetryClient) DeleteAllOf(ctx context.Context, obj client.Object, opts ...client.DeleteAllOfOption) error

func (*RetryClient) Get

func (c *RetryClient) Get(ctx context.Context, key client.ObjectKey, obj client.Object, opts ...client.GetOption) error

func (*RetryClient) List

func (c *RetryClient) List(ctx context.Context, list client.ObjectList, opts ...client.ListOption) error

func (*RetryClient) Patch

func (c *RetryClient) Patch(ctx context.Context, obj client.Object, patch client.Patch, opts ...client.PatchOption) error

func (*RetryClient) Status

func (c *RetryClient) Status() client.StatusWriter

func (*RetryClient) Update

func (c *RetryClient) Update(ctx context.Context, obj client.Object, opts ...client.UpdateOption) error

type RetryStatusWriter

type RetryStatusWriter struct {
	client.StatusWriter
	Limiter *rate.Limiter
}

func (*RetryStatusWriter) Patch

func (*RetryStatusWriter) Update

type SubResourceNoopClient

type SubResourceNoopClient struct{}

func (*SubResourceNoopClient) Create

func (f *SubResourceNoopClient) Create(ctx context.Context, obj, subResource client.Object, opts ...client.SubResourceCreateOption) error

func (*SubResourceNoopClient) Patch

func (*SubResourceNoopClient) Update

Jump to

Keyboard shortcuts

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