mocks

package
v0.0.0-...-54d0854 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 14, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	mock.Mock
}

Client is an autogenerated mock type for the Client type

func NewClient

func NewClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *Client

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) GetHost

func (_m *Client) GetHost() string

GetHost provides a mock function with given fields:

func (*Client) GetJob

func (_m *Client) GetJob(ctx context.Context, name string, namespace string) (*batchv1.Job, error)

GetJob 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) GetPod

func (_m *Client) GetPod(ctx context.Context, name string, namespace string) (*corev1.Pod, error)

GetPod 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

func (_m *Client) Kubeconfig() string

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

func (*Client) PatchUsingStrategy

func (_m *Client) PatchUsingStrategy(ctx context.Context, kind string, name string, namespace string, p []byte, strategy types.PatchType) error

PatchUsingStrategy provides a mock function with given fields: ctx, kind, name, namespace, p, strategy

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL