Documentation ¶
Index ¶
- type Client
- func (_m *Client) Clientset() (kubernetes.Interface, error)
- func (_m *Client) Delete(ctx context.Context, manifest string, namespace string) ([]*reconcilerkubernetes.Resource, error)
- func (_m *Client) DeleteResource(ctx context.Context, kind string, name string, namespace string) (*reconcilerkubernetes.Resource, error)
- func (_m *Client) Deploy(ctx context.Context, manifestTarget string, namespace string, ...) ([]*reconcilerkubernetes.Resource, error)
- func (_m *Client) DeployByCompareWithOriginal(ctx context.Context, manifestOriginal string, manifestTarget string, ...) ([]*reconcilerkubernetes.Resource, error)
- func (_m *Client) Get(kind string, name string, namespace string) (*unstructured.Unstructured, error)
- func (_m *Client) GetDeployment(ctx context.Context, name string, namespace string) (*v1.Deployment, error)
- func (_m *Client) GetHost() string
- func (_m *Client) GetJob(ctx context.Context, name string, namespace string) (*batchv1.Job, error)
- func (_m *Client) GetPersistentVolumeClaim(ctx context.Context, name string, namespace string) (*corev1.PersistentVolumeClaim, error)
- func (_m *Client) GetPod(ctx context.Context, name string, namespace string) (*corev1.Pod, error)
- func (_m *Client) GetSecret(ctx context.Context, name string, namespace string) (*corev1.Secret, error)
- func (_m *Client) GetService(ctx context.Context, name string, namespace string) (*corev1.Service, error)
- func (_m *Client) GetStatefulSet(ctx context.Context, name string, namespace string) (*v1.StatefulSet, error)
- func (_m *Client) Kubeconfig() string
- func (_m *Client) ListGroupVersionResource(ctx context.Context, group string, version string, resource string, ...) (*unstructured.UnstructuredList, error)
- func (_m *Client) ListResource(ctx context.Context, resource string, lo metav1.ListOptions) (*unstructured.UnstructuredList, error)
- func (_m *Client) PatchUsingStrategy(ctx context.Context, kind string, name string, namespace string, p []byte, ...) 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) Clientset ¶
func (_m *Client) Clientset() (kubernetes.Interface, error)
Clientset provides a mock function with given fields:
func (*Client) Delete ¶
func (_m *Client) Delete(ctx context.Context, manifest string, namespace string) ([]*reconcilerkubernetes.Resource, error)
Delete provides a mock function with given fields: ctx, manifest, namespace
func (*Client) DeleteResource ¶
func (_m *Client) DeleteResource(ctx context.Context, kind string, name string, namespace string) (*reconcilerkubernetes.Resource, error)
DeleteResource provides a mock function with given fields: ctx, kind, name, namespace
func (*Client) Deploy ¶
func (_m *Client) Deploy(ctx context.Context, manifestTarget string, namespace string, interceptors ...reconcilerkubernetes.ResourceInterceptor) ([]*reconcilerkubernetes.Resource, error)
Deploy provides a mock function with given fields: ctx, manifestTarget, namespace, interceptors
func (*Client) DeployByCompareWithOriginal ¶
func (_m *Client) DeployByCompareWithOriginal(ctx context.Context, manifestOriginal string, manifestTarget string, namespace string, interceptors ...reconcilerkubernetes.ResourceInterceptor) ([]*reconcilerkubernetes.Resource, error)
DeployByCompareWithOriginal provides a mock function with given fields: ctx, manifestOriginal, manifestTarget, namespace, interceptors
func (*Client) Get ¶
func (_m *Client) Get(kind string, name string, namespace string) (*unstructured.Unstructured, error)
Get provides a mock function with given fields: kind, name, namespace
func (*Client) GetDeployment ¶
func (_m *Client) GetDeployment(ctx context.Context, name string, namespace string) (*v1.Deployment, error)
GetDeployment provides a mock function with given fields: ctx, name, namespace
func (*Client) GetPersistentVolumeClaim ¶
func (_m *Client) GetPersistentVolumeClaim(ctx context.Context, name string, namespace string) (*corev1.PersistentVolumeClaim, error)
GetPersistentVolumeClaim provides a mock function with given fields: ctx, name, namespace
func (*Client) GetSecret ¶
func (_m *Client) GetSecret(ctx context.Context, name string, namespace string) (*corev1.Secret, error)
GetSecret provides a mock function with given fields: ctx, name, namespace
func (*Client) GetService ¶
func (_m *Client) GetService(ctx context.Context, name string, namespace string) (*corev1.Service, error)
GetService provides a mock function with given fields: ctx, name, namespace
func (*Client) GetStatefulSet ¶
func (_m *Client) GetStatefulSet(ctx context.Context, name string, namespace string) (*v1.StatefulSet, error)
GetStatefulSet provides a mock function with given fields: ctx, name, namespace
func (*Client) Kubeconfig ¶
Kubeconfig provides a mock function with given fields:
func (*Client) ListGroupVersionResource ¶
func (_m *Client) ListGroupVersionResource(ctx context.Context, group string, version string, resource string, lo metav1.ListOptions) (*unstructured.UnstructuredList, error)
ListGroupVersionResource provides a mock function with given fields: ctx, group, version, resource, lo
func (*Client) ListResource ¶
func (_m *Client) ListResource(ctx context.Context, resource string, lo metav1.ListOptions) (*unstructured.UnstructuredList, error)
ListResource provides a mock function with given fields: ctx, resource, lo