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 client.Object, _a2 ...client.CreateOption) error
- func (_m *K8sClient) Delete(ctx context.Context, obj client.Object, opts ...client.DeleteOption) error
- func (_m *K8sClient) DeleteAllOf(_a0 context.Context, _a1 client.Object, _a2 ...client.DeleteAllOfOption) error
- func (_m *K8sClient) Get(ctx context.Context, key types.NamespacedName, obj client.Object) error
- func (_m *K8sClient) List(_a0 context.Context, _a1 client.ObjectList, _a2 ...client.ListOption) error
- func (_m *K8sClient) Status() client.StatusWriter
- func (_m *K8sClient) Update(ctx context.Context, obj client.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 NewClient ¶
NewClient creates a new instance of Client. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
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 client.ObjectList) 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 NewK8sClient ¶
NewK8sClient creates a new instance of K8sClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*K8sClient) Create ¶
func (_m *K8sClient) Create(_a0 context.Context, _a1 client.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 client.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 client.Object, _a2 ...client.DeleteAllOfOption) error
DeleteAllOf provides a mock function with given fields: _a0, _a1, _a2
func (*K8sClient) List ¶
func (_m *K8sClient) List(_a0 context.Context, _a1 client.ObjectList, _a2 ...client.ListOption) error
List 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: