Documentation ¶
Index ¶
- type Client
- func (_m *Client) Create(ctx context.Context, object resource.Object) error
- func (_m *Client) CreateWithReference(ctx context.Context, parent resource.Object, object resource.Object) error
- func (_m *Client) Delete(ctx context.Context, resourceType resource.Object) error
- func (_m *Client) DeleteAllBySelector(ctx context.Context, resourceType resource.Object, namespace string, ...) error
- func (_m *Client) Get(ctx context.Context, key types.NamespacedName, object resource.Object) error
- func (_m *Client) ListByLabel(ctx context.Context, namespace string, _a2 map[string]string, ...) error
- func (_m *Client) Status() client.StatusWriter
- func (_m *Client) Update(ctx context.Context, object resource.Object) error
- type K8sClient
- func (_m *K8sClient) Create(_a0 context.Context, _a1 runtime.Object, _a2 ...client.CreateOption) error
- func (_m *K8sClient) Delete(ctx context.Context, obj runtime.Object, opts ...client.DeleteOption) error
- func (_m *K8sClient) DeleteAllOf(_a0 context.Context, _a1 runtime.Object, _a2 ...client.DeleteAllOfOption) error
- func (_m *K8sClient) Get(ctx context.Context, key types.NamespacedName, obj runtime.Object) error
- func (_m *K8sClient) List(_a0 context.Context, _a1 runtime.Object, _a2 ...client.ListOption) error
- func (_m *K8sClient) Status() client.StatusWriter
- func (_m *K8sClient) Update(ctx context.Context, obj runtime.Object, opts ...client.UpdateOption) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client is an autogenerated mock type for the Client type
func (*Client) CreateWithReference ¶
func (_m *Client) CreateWithReference(ctx context.Context, parent resource.Object, object resource.Object) error
CreateWithReference provides a mock function with given fields: ctx, parent, object
func (*Client) DeleteAllBySelector ¶
func (_m *Client) DeleteAllBySelector(ctx context.Context, resourceType resource.Object, namespace string, selector labels.Selector) error
DeleteAllBySelector provides a mock function with given fields: ctx, resourceType, namespace, selector
func (*Client) ListByLabel ¶
func (_m *Client) ListByLabel(ctx context.Context, namespace string, _a2 map[string]string, object runtime.Object) error
ListByLabel provides a mock function with given fields: ctx, namespace, _a2, object
func (*Client) Status ¶
func (_m *Client) Status() client.StatusWriter
Status provides a mock function with given fields:
type K8sClient ¶
K8sClient is an autogenerated mock type for the K8sClient type
func (*K8sClient) Create ¶
func (_m *K8sClient) Create(_a0 context.Context, _a1 runtime.Object, _a2 ...client.CreateOption) error
Create provides a mock function with given fields: _a0, _a1, _a2
func (*K8sClient) Delete ¶
func (_m *K8sClient) Delete(ctx context.Context, obj runtime.Object, opts ...client.DeleteOption) error
Delete provides a mock function with given fields: ctx, obj, opts
func (*K8sClient) DeleteAllOf ¶
func (_m *K8sClient) DeleteAllOf(_a0 context.Context, _a1 runtime.Object, _a2 ...client.DeleteAllOfOption) error
DeleteAllOf provides a mock function with given fields: _a0, _a1, _a2
func (*K8sClient) Status ¶
func (_m *K8sClient) Status() client.StatusWriter
Status provides a mock function with given fields: