Documentation ¶
Overview ¶
Package fake provides mocks etc for testing.
Index ¶
- type SubResourceClient
- func (c *SubResourceClient) Create(ctx context.Context, obj client.Object, subResource client.Object, ...) error
- func (c *SubResourceClient) Get(ctx context.Context, obj client.Object, subResource client.Object, ...) error
- func (c *SubResourceClient) Patch(ctx context.Context, obj client.Object, patch client.Patch, ...) error
- func (c *SubResourceClient) Reset()
- func (c *SubResourceClient) Update(ctx context.Context, obj client.Object, opts ...client.SubResourceUpdateOption) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SubResourceClient ¶
type SubResourceClient struct {
// contains filtered or unexported fields
}
SubResourceClient is a fake implementation of client.SubResourceClient that supports the full set of CRUD operations.
func NewSubResourceClient ¶
func NewSubResourceClient(scheme *runtime.Scheme) *SubResourceClient
func (*SubResourceClient) Create ¶
func (c *SubResourceClient) Create(ctx context.Context, obj client.Object, subResource client.Object, opts ...client.SubResourceCreateOption) error
func (*SubResourceClient) Get ¶
func (c *SubResourceClient) Get(ctx context.Context, obj client.Object, subResource client.Object, opts ...client.SubResourceGetOption) error
func (*SubResourceClient) Patch ¶
func (c *SubResourceClient) Patch(ctx context.Context, obj client.Object, patch client.Patch, opts ...client.SubResourcePatchOption) error
func (*SubResourceClient) Reset ¶ added in v0.3.1
func (c *SubResourceClient) Reset()
Reset clears the contents of the client.
func (*SubResourceClient) Update ¶
func (c *SubResourceClient) Update(ctx context.Context, obj client.Object, opts ...client.SubResourceUpdateOption) error
Click to show internal directories.
Click to hide internal directories.