Documentation ¶
Index ¶
- type Client
- func (c *Client) Create(ctx context.Context, obj client.Object, opts ...client.CreateOption) error
- func (c *Client) Delete(ctx context.Context, obj client.Object, opts ...client.DeleteOption) error
- func (c *Client) DeleteAllOf(ctx context.Context, obj client.Object, opts ...client.DeleteAllOfOption) error
- func (c *Client) Get(ctx context.Context, key types.NamespacedName, obj client.Object) error
- func (c *Client) List(ctx context.Context, list client.ObjectList, opts ...client.ListOption) error
- func (c *Client) Patch(ctx context.Context, obj client.Object, patch client.Patch, ...) error
- func (c *Client) RESTMapper() meta.RESTMapper
- func (c *Client) Scheme() *runtime.Scheme
- func (c *Client) Status() client.StatusWriter
- func (c *Client) Update(ctx context.Context, obj client.Object, opts ...client.UpdateOption) error
- type Logger
- func (l *Logger) Enabled() bool
- func (l *Logger) Error(err error, msg string, kvs ...interface{})
- func (l *Logger) Info(msg string, kvs ...interface{})
- func (l *Logger) V(level int) logr.Logger
- func (l *Logger) WithName(name string) logr.Logger
- func (l *Logger) WithValues(kvs ...interface{}) logr.Logger
- type StatusClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { mock.Mock StatusMock *StatusClient }
Client is a mock for the controller-runtime dynamic client interface.
func (*Client) DeleteAllOf ¶
func (*Client) List ¶
func (c *Client) List(ctx context.Context, list client.ObjectList, opts ...client.ListOption) error
func (*Client) RESTMapper ¶
func (c *Client) RESTMapper() meta.RESTMapper
func (*Client) Status ¶
func (c *Client) Status() client.StatusWriter
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger implements logr.Logger and logs to testing.T to preserve the order of log lines in tests.
func (*Logger) WithValues ¶
WithValues implements logr.Logger.WithValues
type StatusClient ¶
func (*StatusClient) Patch ¶
func (c *StatusClient) Patch( ctx context.Context, obj client.Object, patch client.Patch, opts ...client.PatchOption) error
func (*StatusClient) Update ¶
func (c *StatusClient) Update( ctx context.Context, obj client.Object, opts ...client.UpdateOption) error
Click to show internal directories.
Click to hide internal directories.