mocks

package
v0.0.0-...-3430a5a Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Certificate

type Certificate struct {
	mock.Mock
}

Certificate is an autogenerated mock type for the Certificate type

func NewCertificate

func NewCertificate(t interface {
	mock.TestingT
	Cleanup(func())
}) *Certificate

NewCertificate creates a new instance of Certificate. 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 (*Certificate) CreateCertificate

func (_m *Certificate) CreateCertificate(ctx context.Context, namespace string, cert *v1.Certificate) error

CreateCertificate provides a mock function with given fields: ctx, namespace, cert

func (*Certificate) CreateIfNotExistsCertificate

func (_m *Certificate) CreateIfNotExistsCertificate(ctx context.Context, namespace string, cert *v1.Certificate) error

CreateIfNotExistsCertificate provides a mock function with given fields: ctx, namespace, cert

func (*Certificate) GetCertificate

func (_m *Certificate) GetCertificate(ctx context.Context, namespace string, name string) (*v1.Certificate, error)

GetCertificate provides a mock function with given fields: ctx, namespace, name

type ClientSet

type ClientSet struct {
	mock.Mock
}

ClientSet is an autogenerated mock type for the ClientSet type

func NewClientSet

func NewClientSet(t interface {
	mock.TestingT
	Cleanup(func())
}) *ClientSet

NewClientSet creates a new instance of ClientSet. 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 (*ClientSet) Client

func (_m *ClientSet) Client() client.Client

Client provides a mock function with given fields:

func (*ClientSet) CreateCertificate

func (_m *ClientSet) CreateCertificate(ctx context.Context, namespace string, cert *v1.Certificate) error

CreateCertificate provides a mock function with given fields: ctx, namespace, cert

func (*ClientSet) CreateClusterRole

func (_m *ClientSet) CreateClusterRole(ctx context.Context, role *rbacv1.ClusterRole) error

CreateClusterRole provides a mock function with given fields: ctx, role

func (*ClientSet) CreateClusterRoleBinding

func (_m *ClientSet) CreateClusterRoleBinding(ctx context.Context, rb *rbacv1.ClusterRoleBinding) error

CreateClusterRoleBinding provides a mock function with given fields: ctx, rb

func (*ClientSet) CreateConfigMap

func (_m *ClientSet) CreateConfigMap(ctx context.Context, namespace string, configMap *corev1.ConfigMap) error

CreateConfigMap provides a mock function with given fields: ctx, namespace, configMap

func (*ClientSet) CreateCronJob

func (_m *ClientSet) CreateCronJob(ctx context.Context, namespace string, cronjob *batchv1.CronJob) error

CreateCronJob provides a mock function with given fields: ctx, namespace, cronjob

func (*ClientSet) CreateDeployment

func (_m *ClientSet) CreateDeployment(ctx context.Context, namespace string, deployment *appsv1.Deployment) error

CreateDeployment provides a mock function with given fields: ctx, namespace, deployment

func (*ClientSet) CreateIfNotExistsCertificate

func (_m *ClientSet) CreateIfNotExistsCertificate(ctx context.Context, namespace string, cert *v1.Certificate) error

CreateIfNotExistsCertificate provides a mock function with given fields: ctx, namespace, cert

func (*ClientSet) CreateIfNotExistsConfigMap

func (_m *ClientSet) CreateIfNotExistsConfigMap(ctx context.Context, namespace string, configMap *corev1.ConfigMap) error

CreateIfNotExistsConfigMap provides a mock function with given fields: ctx, namespace, configMap

func (*ClientSet) CreateIfNotExistsDeployment

func (_m *ClientSet) CreateIfNotExistsDeployment(ctx context.Context, namespace string, deploy *appsv1.Deployment) error

CreateIfNotExistsDeployment provides a mock function with given fields: ctx, namespace, deploy

func (*ClientSet) CreateIfNotExistsJob

func (_m *ClientSet) CreateIfNotExistsJob(ctx context.Context, namespace string, job *batchv1.Job) error

CreateIfNotExistsJob provides a mock function with given fields: ctx, namespace, job

func (*ClientSet) CreateIfNotExistsPodDisruptionBudget

func (_m *ClientSet) CreateIfNotExistsPodDisruptionBudget(ctx context.Context, namespace string, podDisruptionBudget *policyv1.PodDisruptionBudget) error

CreateIfNotExistsPodDisruptionBudget provides a mock function with given fields: ctx, namespace, podDisruptionBudget

func (*ClientSet) CreateIfNotExistsRedisUser

func (_m *ClientSet) CreateIfNotExistsRedisUser(ctx context.Context, ru *redisv1.RedisUser) error

CreateIfNotExistsRedisUser provides a mock function with given fields: ctx, ru

func (*ClientSet) CreateIfNotExistsSecret

func (_m *ClientSet) CreateIfNotExistsSecret(ctx context.Context, namespace string, secret *corev1.Secret) error

CreateIfNotExistsSecret provides a mock function with given fields: ctx, namespace, secret

func (*ClientSet) CreateIfNotExistsService

func (_m *ClientSet) CreateIfNotExistsService(ctx context.Context, namespace string, service *corev1.Service) error

CreateIfNotExistsService provides a mock function with given fields: ctx, namespace, service

func (*ClientSet) CreateIfNotExistsStatefulSet

func (_m *ClientSet) CreateIfNotExistsStatefulSet(ctx context.Context, namespace string, statefulSet *appsv1.StatefulSet) error

CreateIfNotExistsStatefulSet provides a mock function with given fields: ctx, namespace, statefulSet

func (*ClientSet) CreateJob

func (_m *ClientSet) CreateJob(ctx context.Context, namespace string, job *batchv1.Job) error

CreateJob provides a mock function with given fields: ctx, namespace, job

func (*ClientSet) CreateOrUpdateClusterRole

func (_m *ClientSet) CreateOrUpdateClusterRole(ctx context.Context, role *rbacv1.ClusterRole) error

CreateOrUpdateClusterRole provides a mock function with given fields: ctx, role

func (*ClientSet) CreateOrUpdateClusterRoleBinding

func (_m *ClientSet) CreateOrUpdateClusterRoleBinding(ctx context.Context, rb *rbacv1.ClusterRoleBinding) error

CreateOrUpdateClusterRoleBinding provides a mock function with given fields: ctx, rb

func (*ClientSet) CreateOrUpdateConfigMap

func (_m *ClientSet) CreateOrUpdateConfigMap(ctx context.Context, namespace string, np *corev1.ConfigMap) error

CreateOrUpdateConfigMap provides a mock function with given fields: ctx, namespace, np

func (*ClientSet) CreateOrUpdateCronJob

func (_m *ClientSet) CreateOrUpdateCronJob(ctx context.Context, namespace string, cronjob *batchv1.CronJob) error

CreateOrUpdateCronJob provides a mock function with given fields: ctx, namespace, cronjob

func (*ClientSet) CreateOrUpdateDeployment

func (_m *ClientSet) CreateOrUpdateDeployment(ctx context.Context, namespace string, deployment *appsv1.Deployment) error

CreateOrUpdateDeployment provides a mock function with given fields: ctx, namespace, deployment

func (*ClientSet) CreateOrUpdateIfServiceChanged

func (_m *ClientSet) CreateOrUpdateIfServiceChanged(ctx context.Context, namespace string, service *corev1.Service) error

CreateOrUpdateIfServiceChanged provides a mock function with given fields: ctx, namespace, service

func (*ClientSet) CreateOrUpdateJob

func (_m *ClientSet) CreateOrUpdateJob(ctx context.Context, namespace string, job *batchv1.Job) error

CreateOrUpdateJob provides a mock function with given fields: ctx, namespace, job

func (*ClientSet) CreateOrUpdatePod

func (_m *ClientSet) CreateOrUpdatePod(ctx context.Context, namespace string, pod *corev1.Pod) error

CreateOrUpdatePod provides a mock function with given fields: ctx, namespace, pod

func (*ClientSet) CreateOrUpdatePodDisruptionBudget

func (_m *ClientSet) CreateOrUpdatePodDisruptionBudget(ctx context.Context, namespace string, podDisruptionBudget *policyv1.PodDisruptionBudget) error

CreateOrUpdatePodDisruptionBudget provides a mock function with given fields: ctx, namespace, podDisruptionBudget

func (*ClientSet) CreateOrUpdateRedisUser

func (_m *ClientSet) CreateOrUpdateRedisUser(ctx context.Context, ru *redisv1.RedisUser) error

CreateOrUpdateRedisUser provides a mock function with given fields: ctx, ru

func (*ClientSet) CreateOrUpdateRole

func (_m *ClientSet) CreateOrUpdateRole(ctx context.Context, namespace string, role *rbacv1.Role) error

CreateOrUpdateRole provides a mock function with given fields: ctx, namespace, role

func (*ClientSet) CreateOrUpdateRoleBinding

func (_m *ClientSet) CreateOrUpdateRoleBinding(ctx context.Context, namespace string, rb *rbacv1.RoleBinding) error

CreateOrUpdateRoleBinding provides a mock function with given fields: ctx, namespace, rb

func (*ClientSet) CreateOrUpdateSecret

func (_m *ClientSet) CreateOrUpdateSecret(ctx context.Context, namespace string, secret *corev1.Secret) error

CreateOrUpdateSecret provides a mock function with given fields: ctx, namespace, secret

func (*ClientSet) CreateOrUpdateService

func (_m *ClientSet) CreateOrUpdateService(ctx context.Context, namespace string, service *corev1.Service) error

CreateOrUpdateService provides a mock function with given fields: ctx, namespace, service

func (*ClientSet) CreateOrUpdateServiceAccount

func (_m *ClientSet) CreateOrUpdateServiceAccount(ctx context.Context, namespace string, sa *corev1.ServiceAccount) error

CreateOrUpdateServiceAccount provides a mock function with given fields: ctx, namespace, sa

func (*ClientSet) CreateOrUpdateServiceMonitor

func (_m *ClientSet) CreateOrUpdateServiceMonitor(ctx context.Context, namespace string, sm *monitoringv1.ServiceMonitor) error

CreateOrUpdateServiceMonitor provides a mock function with given fields: ctx, namespace, sm

func (*ClientSet) CreateOrUpdateStatefulSet

func (_m *ClientSet) CreateOrUpdateStatefulSet(ctx context.Context, namespace string, StatefulSet *appsv1.StatefulSet) error

CreateOrUpdateStatefulSet provides a mock function with given fields: ctx, namespace, StatefulSet

func (*ClientSet) CreatePVC

func (_m *ClientSet) CreatePVC(ctx context.Context, namespace string, pvc *corev1.PersistentVolumeClaim) error

CreatePVC provides a mock function with given fields: ctx, namespace, pvc

func (*ClientSet) CreatePod

func (_m *ClientSet) CreatePod(ctx context.Context, namespace string, pod *corev1.Pod) error

CreatePod provides a mock function with given fields: ctx, namespace, pod

func (*ClientSet) CreatePodDisruptionBudget

func (_m *ClientSet) CreatePodDisruptionBudget(ctx context.Context, namespace string, podDisruptionBudget *policyv1.PodDisruptionBudget) error

CreatePodDisruptionBudget provides a mock function with given fields: ctx, namespace, podDisruptionBudget

func (*ClientSet) CreateRedisUser

func (_m *ClientSet) CreateRedisUser(ctx context.Context, ru *redisv1.RedisUser) error

CreateRedisUser provides a mock function with given fields: ctx, ru

func (*ClientSet) CreateRole

func (_m *ClientSet) CreateRole(ctx context.Context, namespace string, role *rbacv1.Role) error

CreateRole provides a mock function with given fields: ctx, namespace, role

func (*ClientSet) CreateRoleBinding

func (_m *ClientSet) CreateRoleBinding(ctx context.Context, namespace string, rb *rbacv1.RoleBinding) error

CreateRoleBinding provides a mock function with given fields: ctx, namespace, rb

func (*ClientSet) CreateSecret

func (_m *ClientSet) CreateSecret(ctx context.Context, namespace string, secret *corev1.Secret) error

CreateSecret provides a mock function with given fields: ctx, namespace, secret

func (*ClientSet) CreateService

func (_m *ClientSet) CreateService(ctx context.Context, namespace string, service *corev1.Service) error

CreateService provides a mock function with given fields: ctx, namespace, service

func (*ClientSet) CreateServiceAccount

func (_m *ClientSet) CreateServiceAccount(ctx context.Context, namespace string, sa *corev1.ServiceAccount) error

CreateServiceAccount provides a mock function with given fields: ctx, namespace, sa

func (*ClientSet) CreateServiceMonitor

func (_m *ClientSet) CreateServiceMonitor(ctx context.Context, namespace string, sm *monitoringv1.ServiceMonitor) error

CreateServiceMonitor provides a mock function with given fields: ctx, namespace, sm

func (*ClientSet) CreateStatefulSet

func (_m *ClientSet) CreateStatefulSet(ctx context.Context, namespace string, statefulSet *appsv1.StatefulSet) error

CreateStatefulSet provides a mock function with given fields: ctx, namespace, statefulSet

func (*ClientSet) DeleteConfigMap

func (_m *ClientSet) DeleteConfigMap(ctx context.Context, namespace string, name string) error

DeleteConfigMap provides a mock function with given fields: ctx, namespace, name

func (*ClientSet) DeleteCronJob

func (_m *ClientSet) DeleteCronJob(ctx context.Context, namespace string, name string) error

DeleteCronJob provides a mock function with given fields: ctx, namespace, name

func (*ClientSet) DeleteDeployment

func (_m *ClientSet) DeleteDeployment(ctx context.Context, namespace string, name string) error

DeleteDeployment provides a mock function with given fields: ctx, namespace, name

func (*ClientSet) DeleteJob

func (_m *ClientSet) DeleteJob(ctx context.Context, namespace string, name string) error

DeleteJob provides a mock function with given fields: ctx, namespace, name

func (*ClientSet) DeletePod

func (_m *ClientSet) DeletePod(ctx context.Context, namespace string, name string, opts ...client.DeleteOption) error

DeletePod provides a mock function with given fields: ctx, namespace, name, opts

func (*ClientSet) DeletePodDisruptionBudget

func (_m *ClientSet) DeletePodDisruptionBudget(ctx context.Context, namespace string, name string) error

DeletePodDisruptionBudget provides a mock function with given fields: ctx, namespace, name

func (*ClientSet) DeleteRedisBackup

func (_m *ClientSet) DeleteRedisBackup(ctx context.Context, namespace string, name string) error

DeleteRedisBackup provides a mock function with given fields: ctx, namespace, name

func (*ClientSet) DeleteRedisClusterBackup

func (_m *ClientSet) DeleteRedisClusterBackup(ctx context.Context, namespace string, name string) error

DeleteRedisClusterBackup provides a mock function with given fields: ctx, namespace, name

func (*ClientSet) DeleteSecret

func (_m *ClientSet) DeleteSecret(ctx context.Context, namespace string, name string) error

DeleteSecret provides a mock function with given fields: ctx, namespace, name

func (*ClientSet) DeleteService

func (_m *ClientSet) DeleteService(ctx context.Context, namespace string, name string) error

DeleteService provides a mock function with given fields: ctx, namespace, name

func (*ClientSet) DeleteStatefulSet

func (_m *ClientSet) DeleteStatefulSet(ctx context.Context, namespace string, name string, opts ...client.DeleteOption) error

DeleteStatefulSet provides a mock function with given fields: ctx, namespace, name, opts

func (*ClientSet) Exec

func (_m *ClientSet) Exec(ctx context.Context, namespace string, name string, containerName string, cmd []string) (io.Reader, io.Reader, error)

Exec provides a mock function with given fields: ctx, namespace, name, containerName, cmd

func (*ClientSet) GetCertificate

func (_m *ClientSet) GetCertificate(ctx context.Context, namespace string, name string) (*v1.Certificate, error)

GetCertificate provides a mock function with given fields: ctx, namespace, name

func (*ClientSet) GetClusterRole

func (_m *ClientSet) GetClusterRole(ctx context.Context, name string) (*rbacv1.ClusterRole, error)

GetClusterRole provides a mock function with given fields: ctx, name

func (*ClientSet) GetClusterRoleBinding

func (_m *ClientSet) GetClusterRoleBinding(ctx context.Context, name string) (*rbacv1.ClusterRoleBinding, error)

GetClusterRoleBinding provides a mock function with given fields: ctx, name

func (*ClientSet) GetConfigMap

func (_m *ClientSet) GetConfigMap(ctx context.Context, namespace string, name string) (*corev1.ConfigMap, error)

GetConfigMap provides a mock function with given fields: ctx, namespace, name

func (*ClientSet) GetCronJob

func (_m *ClientSet) GetCronJob(ctx context.Context, namespace string, name string) (*batchv1.CronJob, error)

GetCronJob provides a mock function with given fields: ctx, namespace, name

func (*ClientSet) GetDeployment

func (_m *ClientSet) GetDeployment(ctx context.Context, namespace string, name string) (*appsv1.Deployment, error)

GetDeployment provides a mock function with given fields: ctx, namespace, name

func (*ClientSet) GetDeploymentPods

func (_m *ClientSet) GetDeploymentPods(ctx context.Context, namespace string, name string) (*corev1.PodList, error)

GetDeploymentPods provides a mock function with given fields: ctx, namespace, name

func (*ClientSet) GetDistributedRedisCluster

func (_m *ClientSet) GetDistributedRedisCluster(ctx context.Context, namespace string, name string) (*v1alpha1.DistributedRedisCluster, error)

GetDistributedRedisCluster provides a mock function with given fields: ctx, namespace, name

func (*ClientSet) GetJob

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

GetJob provides a mock function with given fields: ctx, namespace, name

func (*ClientSet) GetNamespace

func (_m *ClientSet) GetNamespace(ctx context.Context, namespace string) (*corev1.Namespace, error)

GetNamespace provides a mock function with given fields: ctx, namespace

func (*ClientSet) GetNode

func (_m *ClientSet) GetNode(ctx context.Context, name string) (*corev1.Node, error)

GetNode provides a mock function with given fields: ctx, name

func (*ClientSet) GetPVC

func (_m *ClientSet) GetPVC(ctx context.Context, namespace string, name string) (*corev1.PersistentVolumeClaim, error)

GetPVC provides a mock function with given fields: ctx, namespace, name

func (*ClientSet) GetPod

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

GetPod provides a mock function with given fields: ctx, namespace, name

func (*ClientSet) GetPodDisruptionBudget

func (_m *ClientSet) GetPodDisruptionBudget(ctx context.Context, namespace string, name string) (*policyv1.PodDisruptionBudget, error)

GetPodDisruptionBudget provides a mock function with given fields: ctx, namespace, name

func (*ClientSet) GetRedisFailover

func (_m *ClientSet) GetRedisFailover(ctx context.Context, namespace string, name string) (*databasesv1.RedisFailover, error)

GetRedisFailover provides a mock function with given fields: ctx, namespace, name

func (*ClientSet) GetRedisSentinel

func (_m *ClientSet) GetRedisSentinel(ctx context.Context, namespace string, name string) (*databasesv1.RedisSentinel, error)

GetRedisSentinel provides a mock function with given fields: ctx, namespace, name

func (*ClientSet) GetRedisUser

func (_m *ClientSet) GetRedisUser(ctx context.Context, namespace string, name string) (*redisv1.RedisUser, error)

GetRedisUser provides a mock function with given fields: ctx, namespace, name

func (*ClientSet) GetRole

func (_m *ClientSet) GetRole(ctx context.Context, namespace string, name string) (*rbacv1.Role, error)

GetRole provides a mock function with given fields: ctx, namespace, name

func (*ClientSet) GetRoleBinding

func (_m *ClientSet) GetRoleBinding(ctx context.Context, namespace string, name string) (*rbacv1.RoleBinding, error)

GetRoleBinding provides a mock function with given fields: ctx, namespace, name

func (*ClientSet) GetSecret

func (_m *ClientSet) GetSecret(ctx context.Context, namespace string, name string) (*corev1.Secret, error)

GetSecret provides a mock function with given fields: ctx, namespace, name

func (*ClientSet) GetService

func (_m *ClientSet) GetService(ctx context.Context, namespace string, name string) (*corev1.Service, error)

GetService provides a mock function with given fields: ctx, namespace, name

func (*ClientSet) GetServiceAccount

func (_m *ClientSet) GetServiceAccount(ctx context.Context, namespace string, name string) (*corev1.ServiceAccount, error)

GetServiceAccount provides a mock function with given fields: ctx, namespace, name

func (*ClientSet) GetServiceByLabels

func (_m *ClientSet) GetServiceByLabels(ctx context.Context, namespace string, labelsMap map[string]string) (*corev1.ServiceList, error)

GetServiceByLabels provides a mock function with given fields: ctx, namespace, labelsMap

func (*ClientSet) GetServiceMonitor

func (_m *ClientSet) GetServiceMonitor(ctx context.Context, namespace string, name string) (*monitoringv1.ServiceMonitor, error)

GetServiceMonitor provides a mock function with given fields: ctx, namespace, name

func (*ClientSet) GetStatefulSet

func (_m *ClientSet) GetStatefulSet(ctx context.Context, namespace string, name string) (*appsv1.StatefulSet, error)

GetStatefulSet provides a mock function with given fields: ctx, namespace, name

func (*ClientSet) GetStatefulSetPods

func (_m *ClientSet) GetStatefulSetPods(ctx context.Context, namespace string, name string) (*corev1.PodList, error)

GetStatefulSetPods provides a mock function with given fields: ctx, namespace, name

func (*ClientSet) GetStatefulSetPodsByLabels

func (_m *ClientSet) GetStatefulSetPodsByLabels(ctx context.Context, namespace string, labels map[string]string) (*corev1.PodList, error)

GetStatefulSetPodsByLabels provides a mock function with given fields: ctx, namespace, labels

func (*ClientSet) ListConfigMaps

func (_m *ClientSet) ListConfigMaps(ctx context.Context, namespace string) (*corev1.ConfigMapList, error)

ListConfigMaps provides a mock function with given fields: ctx, namespace

func (*ClientSet) ListCronJobs

func (_m *ClientSet) ListCronJobs(ctx context.Context, namespace string, cl client.ListOptions) (*batchv1.CronJobList, error)

ListCronJobs provides a mock function with given fields: ctx, namespace, cl

func (*ClientSet) ListDeployments

func (_m *ClientSet) ListDeployments(ctx context.Context, namespace string) (*appsv1.DeploymentList, error)

ListDeployments provides a mock function with given fields: ctx, namespace

func (*ClientSet) ListJobs

func (_m *ClientSet) ListJobs(ctx context.Context, namespace string, cl client.ListOptions) (*batchv1.JobList, error)

ListJobs provides a mock function with given fields: ctx, namespace, cl

func (*ClientSet) ListJobsByLabel

func (_m *ClientSet) ListJobsByLabel(ctx context.Context, namespace string, label_map map[string]string) (*batchv1.JobList, error)

ListJobsByLabel provides a mock function with given fields: ctx, namespace, label_map

func (*ClientSet) ListNodesByLabels

func (_m *ClientSet) ListNodesByLabels(ctx context.Context, label_map map[string]string) (*corev1.NodeList, error)

ListNodesByLabels provides a mock function with given fields: ctx, label_map

func (*ClientSet) ListPodByLabels

func (_m *ClientSet) ListPodByLabels(ctx context.Context, namespace string, label_map map[string]string) (*corev1.PodList, error)

ListPodByLabels provides a mock function with given fields: ctx, namespace, label_map

func (*ClientSet) ListPods

func (_m *ClientSet) ListPods(ctx context.Context, namespace string) (*corev1.PodList, error)

ListPods provides a mock function with given fields: ctx, namespace

func (*ClientSet) ListPvcByLabel

func (_m *ClientSet) ListPvcByLabel(ctx context.Context, namespace string, label_map map[string]string) (*corev1.PersistentVolumeClaimList, error)

ListPvcByLabel provides a mock function with given fields: ctx, namespace, label_map

func (*ClientSet) ListRedisFailovers

func (_m *ClientSet) ListRedisFailovers(ctx context.Context, namespace string, opts client.ListOptions) (*databasesv1.RedisFailoverList, error)

ListRedisFailovers provides a mock function with given fields: ctx, namespace, opts

func (*ClientSet) ListRedisSentinels

func (_m *ClientSet) ListRedisSentinels(ctx context.Context, namespace string, opts client.ListOptions) (*databasesv1.RedisSentinelList, error)

ListRedisSentinels provides a mock function with given fields: ctx, namespace, opts

func (*ClientSet) ListRedisUsers

func (_m *ClientSet) ListRedisUsers(ctx context.Context, namespace string, opts client.ListOptions) (*redisv1.RedisUserList, error)

ListRedisUsers provides a mock function with given fields: ctx, namespace, opts

func (*ClientSet) ListSecret

func (_m *ClientSet) ListSecret(ctx context.Context, namespace string) (*corev1.SecretList, error)

ListSecret provides a mock function with given fields: ctx, namespace

func (*ClientSet) ListServices

func (_m *ClientSet) ListServices(ctx context.Context, namespace string) (*corev1.ServiceList, error)

ListServices provides a mock function with given fields: ctx, namespace

func (*ClientSet) ListStatefulSetByLabels

func (_m *ClientSet) ListStatefulSetByLabels(ctx context.Context, namespace string, labels map[string]string) (*appsv1.StatefulSetList, error)

ListStatefulSetByLabels provides a mock function with given fields: ctx, namespace, labels

func (*ClientSet) ListStatefulSets

func (_m *ClientSet) ListStatefulSets(ctx context.Context, namespace string) (*appsv1.StatefulSetList, error)

ListStatefulSets provides a mock function with given fields: ctx, namespace

func (*ClientSet) PatchPodLabel

func (_m *ClientSet) PatchPodLabel(ctx context.Context, pod *corev1.Pod, labelkey string, labelValue string) error

PatchPodLabel provides a mock function with given fields: ctx, pod, labelkey, labelValue

func (*ClientSet) RestartDeployment

func (_m *ClientSet) RestartDeployment(ctx context.Context, namespace string, name string) (*appsv1.Deployment, error)

RestartDeployment provides a mock function with given fields: ctx, namespace, name

func (*ClientSet) UpdateClusterRole

func (_m *ClientSet) UpdateClusterRole(ctx context.Context, role *rbacv1.ClusterRole) error

UpdateClusterRole provides a mock function with given fields: ctx, role

func (*ClientSet) UpdateClusterRoleBinding

func (_m *ClientSet) UpdateClusterRoleBinding(ctx context.Context, role *rbacv1.ClusterRoleBinding) error

UpdateClusterRoleBinding provides a mock function with given fields: ctx, role

func (*ClientSet) UpdateConfigMap

func (_m *ClientSet) UpdateConfigMap(ctx context.Context, namespace string, configMap *corev1.ConfigMap) error

UpdateConfigMap provides a mock function with given fields: ctx, namespace, configMap

func (*ClientSet) UpdateCronJob

func (_m *ClientSet) UpdateCronJob(ctx context.Context, namespace string, job *batchv1.CronJob) error

UpdateCronJob provides a mock function with given fields: ctx, namespace, job

func (*ClientSet) UpdateDeployment

func (_m *ClientSet) UpdateDeployment(ctx context.Context, namespace string, deployment *appsv1.Deployment) error

UpdateDeployment provides a mock function with given fields: ctx, namespace, deployment

func (*ClientSet) UpdateDistributedRedisCluster

func (_m *ClientSet) UpdateDistributedRedisCluster(ctx context.Context, inst *v1alpha1.DistributedRedisCluster) error

UpdateDistributedRedisCluster provides a mock function with given fields: ctx, inst

func (*ClientSet) UpdateDistributedRedisClusterStatus

func (_m *ClientSet) UpdateDistributedRedisClusterStatus(ctx context.Context, inst *v1alpha1.DistributedRedisCluster) error

UpdateDistributedRedisClusterStatus provides a mock function with given fields: ctx, inst

func (*ClientSet) UpdateIfConfigMapChanged

func (_m *ClientSet) UpdateIfConfigMapChanged(ctx context.Context, newConfigmap *corev1.ConfigMap) error

UpdateIfConfigMapChanged provides a mock function with given fields: ctx, newConfigmap

func (*ClientSet) UpdateIfSelectorChangedService

func (_m *ClientSet) UpdateIfSelectorChangedService(ctx context.Context, namespace string, service *corev1.Service) error

UpdateIfSelectorChangedService provides a mock function with given fields: ctx, namespace, service

func (*ClientSet) UpdateJob

func (_m *ClientSet) UpdateJob(ctx context.Context, namespace string, job *batchv1.Job) error

UpdateJob provides a mock function with given fields: ctx, namespace, job

func (*ClientSet) UpdatePod

func (_m *ClientSet) UpdatePod(ctx context.Context, namespace string, pod *corev1.Pod) error

UpdatePod provides a mock function with given fields: ctx, namespace, pod

func (*ClientSet) UpdatePodDisruptionBudget

func (_m *ClientSet) UpdatePodDisruptionBudget(ctx context.Context, namespace string, podDisruptionBudget *policyv1.PodDisruptionBudget) error

UpdatePodDisruptionBudget provides a mock function with given fields: ctx, namespace, podDisruptionBudget

func (*ClientSet) UpdateRedisFailover

func (_m *ClientSet) UpdateRedisFailover(ctx context.Context, inst *databasesv1.RedisFailover) error

UpdateRedisFailover provides a mock function with given fields: ctx, inst

func (*ClientSet) UpdateRedisFailoverStatus

func (_m *ClientSet) UpdateRedisFailoverStatus(ctx context.Context, inst *databasesv1.RedisFailover) error

UpdateRedisFailoverStatus provides a mock function with given fields: ctx, inst

func (*ClientSet) UpdateRedisSentinel

func (_m *ClientSet) UpdateRedisSentinel(ctx context.Context, sen *databasesv1.RedisSentinel) error

UpdateRedisSentinel provides a mock function with given fields: ctx, sen

func (*ClientSet) UpdateRedisSentinelStatus

func (_m *ClientSet) UpdateRedisSentinelStatus(ctx context.Context, inst *databasesv1.RedisSentinel) error

UpdateRedisSentinelStatus provides a mock function with given fields: ctx, inst

func (*ClientSet) UpdateRedisUser

func (_m *ClientSet) UpdateRedisUser(ctx context.Context, ru *redisv1.RedisUser) error

UpdateRedisUser provides a mock function with given fields: ctx, ru

func (*ClientSet) UpdateRole

func (_m *ClientSet) UpdateRole(ctx context.Context, namespace string, role *rbacv1.Role) error

UpdateRole provides a mock function with given fields: ctx, namespace, role

func (*ClientSet) UpdateSecret

func (_m *ClientSet) UpdateSecret(ctx context.Context, namespace string, secret *corev1.Secret) error

UpdateSecret provides a mock function with given fields: ctx, namespace, secret

func (*ClientSet) UpdateService

func (_m *ClientSet) UpdateService(ctx context.Context, namespace string, service *corev1.Service) error

UpdateService provides a mock function with given fields: ctx, namespace, service

func (*ClientSet) UpdateServiceMonitor

func (_m *ClientSet) UpdateServiceMonitor(ctx context.Context, namespace string, sm *monitoringv1.ServiceMonitor) error

UpdateServiceMonitor provides a mock function with given fields: ctx, namespace, sm

func (*ClientSet) UpdateStatefulSet

func (_m *ClientSet) UpdateStatefulSet(ctx context.Context, namespace string, statefulSet *appsv1.StatefulSet) error

UpdateStatefulSet provides a mock function with given fields: ctx, namespace, statefulSet

type ConfigMap

type ConfigMap struct {
	mock.Mock
}

ConfigMap is an autogenerated mock type for the ConfigMap type

func NewConfigMap

func NewConfigMap(t interface {
	mock.TestingT
	Cleanup(func())
}) *ConfigMap

NewConfigMap creates a new instance of ConfigMap. 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 (*ConfigMap) CreateConfigMap

func (_m *ConfigMap) CreateConfigMap(ctx context.Context, namespace string, configMap *v1.ConfigMap) error

CreateConfigMap provides a mock function with given fields: ctx, namespace, configMap

func (*ConfigMap) CreateIfNotExistsConfigMap

func (_m *ConfigMap) CreateIfNotExistsConfigMap(ctx context.Context, namespace string, configMap *v1.ConfigMap) error

CreateIfNotExistsConfigMap provides a mock function with given fields: ctx, namespace, configMap

func (*ConfigMap) CreateOrUpdateConfigMap

func (_m *ConfigMap) CreateOrUpdateConfigMap(ctx context.Context, namespace string, np *v1.ConfigMap) error

CreateOrUpdateConfigMap provides a mock function with given fields: ctx, namespace, np

func (*ConfigMap) DeleteConfigMap

func (_m *ConfigMap) DeleteConfigMap(ctx context.Context, namespace string, name string) error

DeleteConfigMap provides a mock function with given fields: ctx, namespace, name

func (*ConfigMap) GetConfigMap

func (_m *ConfigMap) GetConfigMap(ctx context.Context, namespace string, name string) (*v1.ConfigMap, error)

GetConfigMap provides a mock function with given fields: ctx, namespace, name

func (*ConfigMap) ListConfigMaps

func (_m *ConfigMap) ListConfigMaps(ctx context.Context, namespace string) (*v1.ConfigMapList, error)

ListConfigMaps provides a mock function with given fields: ctx, namespace

func (*ConfigMap) UpdateConfigMap

func (_m *ConfigMap) UpdateConfigMap(ctx context.Context, namespace string, configMap *v1.ConfigMap) error

UpdateConfigMap provides a mock function with given fields: ctx, namespace, configMap

func (*ConfigMap) UpdateIfConfigMapChanged

func (_m *ConfigMap) UpdateIfConfigMapChanged(ctx context.Context, newConfigmap *v1.ConfigMap) error

UpdateIfConfigMapChanged provides a mock function with given fields: ctx, newConfigmap

type CronJob

type CronJob struct {
	mock.Mock
}

CronJob is an autogenerated mock type for the CronJob type

func NewCronJob

func NewCronJob(t interface {
	mock.TestingT
	Cleanup(func())
}) *CronJob

NewCronJob creates a new instance of CronJob. 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 (*CronJob) CreateCronJob

func (_m *CronJob) CreateCronJob(ctx context.Context, namespace string, cronjob *v1.CronJob) error

CreateCronJob provides a mock function with given fields: ctx, namespace, cronjob

func (*CronJob) CreateOrUpdateCronJob

func (_m *CronJob) CreateOrUpdateCronJob(ctx context.Context, namespace string, cronjob *v1.CronJob) error

CreateOrUpdateCronJob provides a mock function with given fields: ctx, namespace, cronjob

func (*CronJob) DeleteCronJob

func (_m *CronJob) DeleteCronJob(ctx context.Context, namespace string, name string) error

DeleteCronJob provides a mock function with given fields: ctx, namespace, name

func (*CronJob) GetCronJob

func (_m *CronJob) GetCronJob(ctx context.Context, namespace string, name string) (*v1.CronJob, error)

GetCronJob provides a mock function with given fields: ctx, namespace, name

func (*CronJob) ListCronJobs

func (_m *CronJob) ListCronJobs(ctx context.Context, namespace string, cl client.ListOptions) (*v1.CronJobList, error)

ListCronJobs provides a mock function with given fields: ctx, namespace, cl

func (*CronJob) UpdateCronJob

func (_m *CronJob) UpdateCronJob(ctx context.Context, namespace string, job *v1.CronJob) error

UpdateCronJob provides a mock function with given fields: ctx, namespace, job

type Deployment

type Deployment struct {
	mock.Mock
}

Deployment is an autogenerated mock type for the Deployment type

func NewDeployment

func NewDeployment(t interface {
	mock.TestingT
	Cleanup(func())
}) *Deployment

NewDeployment creates a new instance of Deployment. 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 (*Deployment) CreateDeployment

func (_m *Deployment) CreateDeployment(ctx context.Context, namespace string, deployment *v1.Deployment) error

CreateDeployment provides a mock function with given fields: ctx, namespace, deployment

func (*Deployment) CreateIfNotExistsDeployment

func (_m *Deployment) CreateIfNotExistsDeployment(ctx context.Context, namespace string, deploy *v1.Deployment) error

CreateIfNotExistsDeployment provides a mock function with given fields: ctx, namespace, deploy

func (*Deployment) CreateOrUpdateDeployment

func (_m *Deployment) CreateOrUpdateDeployment(ctx context.Context, namespace string, deployment *v1.Deployment) error

CreateOrUpdateDeployment provides a mock function with given fields: ctx, namespace, deployment

func (*Deployment) DeleteDeployment

func (_m *Deployment) DeleteDeployment(ctx context.Context, namespace string, name string) error

DeleteDeployment provides a mock function with given fields: ctx, namespace, name

func (*Deployment) GetDeployment

func (_m *Deployment) GetDeployment(ctx context.Context, namespace string, name string) (*v1.Deployment, error)

GetDeployment provides a mock function with given fields: ctx, namespace, name

func (*Deployment) GetDeploymentPods

func (_m *Deployment) GetDeploymentPods(ctx context.Context, namespace string, name string) (*corev1.PodList, error)

GetDeploymentPods provides a mock function with given fields: ctx, namespace, name

func (*Deployment) ListDeployments

func (_m *Deployment) ListDeployments(ctx context.Context, namespace string) (*v1.DeploymentList, error)

ListDeployments provides a mock function with given fields: ctx, namespace

func (*Deployment) RestartDeployment

func (_m *Deployment) RestartDeployment(ctx context.Context, namespace string, name string) (*v1.Deployment, error)

RestartDeployment provides a mock function with given fields: ctx, namespace, name

func (*Deployment) UpdateDeployment

func (_m *Deployment) UpdateDeployment(ctx context.Context, namespace string, deployment *v1.Deployment) error

UpdateDeployment provides a mock function with given fields: ctx, namespace, deployment

type DistributedRedisCluster

type DistributedRedisCluster struct {
	mock.Mock
}

DistributedRedisCluster is an autogenerated mock type for the DistributedRedisCluster type

func NewDistributedRedisCluster

func NewDistributedRedisCluster(t interface {
	mock.TestingT
	Cleanup(func())
}) *DistributedRedisCluster

NewDistributedRedisCluster creates a new instance of DistributedRedisCluster. 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 (*DistributedRedisCluster) GetDistributedRedisCluster

func (_m *DistributedRedisCluster) GetDistributedRedisCluster(ctx context.Context, namespace string, name string) (*v1alpha1.DistributedRedisCluster, error)

GetDistributedRedisCluster provides a mock function with given fields: ctx, namespace, name

func (*DistributedRedisCluster) UpdateDistributedRedisCluster

func (_m *DistributedRedisCluster) UpdateDistributedRedisCluster(ctx context.Context, inst *v1alpha1.DistributedRedisCluster) error

UpdateDistributedRedisCluster provides a mock function with given fields: ctx, inst

func (*DistributedRedisCluster) UpdateDistributedRedisClusterStatus

func (_m *DistributedRedisCluster) UpdateDistributedRedisClusterStatus(ctx context.Context, inst *v1alpha1.DistributedRedisCluster) error

UpdateDistributedRedisClusterStatus provides a mock function with given fields: ctx, inst

type Job

type Job struct {
	mock.Mock
}

Job is an autogenerated mock type for the Job type

func NewJob

func NewJob(t interface {
	mock.TestingT
	Cleanup(func())
}) *Job

NewJob creates a new instance of Job. 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 (*Job) CreateIfNotExistsJob

func (_m *Job) CreateIfNotExistsJob(ctx context.Context, namespace string, job *v1.Job) error

CreateIfNotExistsJob provides a mock function with given fields: ctx, namespace, job

func (*Job) CreateJob

func (_m *Job) CreateJob(ctx context.Context, namespace string, job *v1.Job) error

CreateJob provides a mock function with given fields: ctx, namespace, job

func (*Job) CreateOrUpdateJob

func (_m *Job) CreateOrUpdateJob(ctx context.Context, namespace string, job *v1.Job) error

CreateOrUpdateJob provides a mock function with given fields: ctx, namespace, job

func (*Job) DeleteJob

func (_m *Job) DeleteJob(ctx context.Context, namespace string, name string) error

DeleteJob provides a mock function with given fields: ctx, namespace, name

func (*Job) GetJob

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

GetJob provides a mock function with given fields: ctx, namespace, name

func (*Job) ListJobs

func (_m *Job) ListJobs(ctx context.Context, namespace string, cl client.ListOptions) (*v1.JobList, error)

ListJobs provides a mock function with given fields: ctx, namespace, cl

func (*Job) ListJobsByLabel

func (_m *Job) ListJobsByLabel(ctx context.Context, namespace string, label_map map[string]string) (*v1.JobList, error)

ListJobsByLabel provides a mock function with given fields: ctx, namespace, label_map

func (*Job) UpdateJob

func (_m *Job) UpdateJob(ctx context.Context, namespace string, job *v1.Job) error

UpdateJob provides a mock function with given fields: ctx, namespace, job

type NameSpaces

type NameSpaces struct {
	mock.Mock
}

NameSpaces is an autogenerated mock type for the NameSpaces type

func NewNameSpaces

func NewNameSpaces(t interface {
	mock.TestingT
	Cleanup(func())
}) *NameSpaces

NewNameSpaces creates a new instance of NameSpaces. 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 (*NameSpaces) GetNameSpace

func (_m *NameSpaces) GetNameSpace(ctx context.Context, namespace string) (*v1.Namespace, error)

GetNameSpace provides a mock function with given fields: ctx, namespace

type Node

type Node struct {
	mock.Mock
}

Node is an autogenerated mock type for the Node type

func NewNode

func NewNode(t interface {
	mock.TestingT
	Cleanup(func())
}) *Node

NewNode creates a new instance of Node. 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 (*Node) GetNode

func (_m *Node) GetNode(ctx context.Context, name string) (*v1.Node, error)

GetNode provides a mock function with given fields: ctx, name

func (*Node) ListNodesByLabels

func (_m *Node) ListNodesByLabels(ctx context.Context, label_map map[string]string) (*v1.NodeList, error)

ListNodesByLabels provides a mock function with given fields: ctx, label_map

type PVC

type PVC struct {
	mock.Mock
}

PVC is an autogenerated mock type for the PVC type

func NewPVC

func NewPVC(t interface {
	mock.TestingT
	Cleanup(func())
}) *PVC

NewPVC creates a new instance of PVC. 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 (*PVC) CreatePVC

func (_m *PVC) CreatePVC(ctx context.Context, namespace string, pvc *v1.PersistentVolumeClaim) error

CreatePVC provides a mock function with given fields: ctx, namespace, pvc

func (*PVC) GetPVC

func (_m *PVC) GetPVC(ctx context.Context, namespace string, name string) (*v1.PersistentVolumeClaim, error)

GetPVC provides a mock function with given fields: ctx, namespace, name

func (*PVC) ListPvcByLabel

func (_m *PVC) ListPvcByLabel(ctx context.Context, namespace string, label_map map[string]string) (*v1.PersistentVolumeClaimList, error)

ListPvcByLabel provides a mock function with given fields: ctx, namespace, label_map

type Pod

type Pod struct {
	mock.Mock
}

Pod is an autogenerated mock type for the Pod type

func NewPod

func NewPod(t interface {
	mock.TestingT
	Cleanup(func())
}) *Pod

NewPod creates a new instance of Pod. 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 (*Pod) CreateOrUpdatePod

func (_m *Pod) CreateOrUpdatePod(ctx context.Context, namespace string, pod *v1.Pod) error

CreateOrUpdatePod provides a mock function with given fields: ctx, namespace, pod

func (*Pod) CreatePod

func (_m *Pod) CreatePod(ctx context.Context, namespace string, pod *v1.Pod) error

CreatePod provides a mock function with given fields: ctx, namespace, pod

func (*Pod) DeletePod

func (_m *Pod) DeletePod(ctx context.Context, namespace string, name string, opts ...client.DeleteOption) error

DeletePod provides a mock function with given fields: ctx, namespace, name, opts

func (*Pod) Exec

func (_m *Pod) Exec(ctx context.Context, namespace string, name string, containerName string, cmd []string) (io.Reader, io.Reader, error)

Exec provides a mock function with given fields: ctx, namespace, name, containerName, cmd

func (*Pod) GetPod

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

GetPod provides a mock function with given fields: ctx, namespace, name

func (*Pod) ListPodByLabels

func (_m *Pod) ListPodByLabels(ctx context.Context, namespace string, label_map map[string]string) (*v1.PodList, error)

ListPodByLabels provides a mock function with given fields: ctx, namespace, label_map

func (*Pod) ListPods

func (_m *Pod) ListPods(ctx context.Context, namespace string) (*v1.PodList, error)

ListPods provides a mock function with given fields: ctx, namespace

func (*Pod) PatchPodLabel

func (_m *Pod) PatchPodLabel(ctx context.Context, pod *v1.Pod, labelkey string, labelValue string) error

PatchPodLabel provides a mock function with given fields: ctx, pod, labelkey, labelValue

func (*Pod) UpdatePod

func (_m *Pod) UpdatePod(ctx context.Context, namespace string, pod *v1.Pod) error

UpdatePod provides a mock function with given fields: ctx, namespace, pod

type PodDisruptionBudget

type PodDisruptionBudget struct {
	mock.Mock
}

PodDisruptionBudget is an autogenerated mock type for the PodDisruptionBudget type

func NewPodDisruptionBudget

func NewPodDisruptionBudget(t interface {
	mock.TestingT
	Cleanup(func())
}) *PodDisruptionBudget

NewPodDisruptionBudget creates a new instance of PodDisruptionBudget. 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 (*PodDisruptionBudget) CreateIfNotExistsPodDisruptionBudget

func (_m *PodDisruptionBudget) CreateIfNotExistsPodDisruptionBudget(ctx context.Context, namespace string, podDisruptionBudget *v1.PodDisruptionBudget) error

CreateIfNotExistsPodDisruptionBudget provides a mock function with given fields: ctx, namespace, podDisruptionBudget

func (*PodDisruptionBudget) CreateOrUpdatePodDisruptionBudget

func (_m *PodDisruptionBudget) CreateOrUpdatePodDisruptionBudget(ctx context.Context, namespace string, podDisruptionBudget *v1.PodDisruptionBudget) error

CreateOrUpdatePodDisruptionBudget provides a mock function with given fields: ctx, namespace, podDisruptionBudget

func (*PodDisruptionBudget) CreatePodDisruptionBudget

func (_m *PodDisruptionBudget) CreatePodDisruptionBudget(ctx context.Context, namespace string, podDisruptionBudget *v1.PodDisruptionBudget) error

CreatePodDisruptionBudget provides a mock function with given fields: ctx, namespace, podDisruptionBudget

func (*PodDisruptionBudget) DeletePodDisruptionBudget

func (_m *PodDisruptionBudget) DeletePodDisruptionBudget(ctx context.Context, namespace string, name string) error

DeletePodDisruptionBudget provides a mock function with given fields: ctx, namespace, name

func (*PodDisruptionBudget) GetPodDisruptionBudget

func (_m *PodDisruptionBudget) GetPodDisruptionBudget(ctx context.Context, namespace string, name string) (*v1.PodDisruptionBudget, error)

GetPodDisruptionBudget provides a mock function with given fields: ctx, namespace, name

func (*PodDisruptionBudget) UpdatePodDisruptionBudget

func (_m *PodDisruptionBudget) UpdatePodDisruptionBudget(ctx context.Context, namespace string, podDisruptionBudget *v1.PodDisruptionBudget) error

UpdatePodDisruptionBudget provides a mock function with given fields: ctx, namespace, podDisruptionBudget

type RBAC

type RBAC struct {
	mock.Mock
}

RBAC is an autogenerated mock type for the RBAC type

func NewRBAC

func NewRBAC(t interface {
	mock.TestingT
	Cleanup(func())
}) *RBAC

NewRBAC creates a new instance of RBAC. 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 (*RBAC) CreateClusterRole

func (_m *RBAC) CreateClusterRole(ctx context.Context, role *v1.ClusterRole) error

CreateClusterRole provides a mock function with given fields: ctx, role

func (*RBAC) CreateClusterRoleBinding

func (_m *RBAC) CreateClusterRoleBinding(ctx context.Context, rb *v1.ClusterRoleBinding) error

CreateClusterRoleBinding provides a mock function with given fields: ctx, rb

func (*RBAC) CreateOrUpdateClusterRole

func (_m *RBAC) CreateOrUpdateClusterRole(ctx context.Context, role *v1.ClusterRole) error

CreateOrUpdateClusterRole provides a mock function with given fields: ctx, role

func (*RBAC) CreateOrUpdateClusterRoleBinding

func (_m *RBAC) CreateOrUpdateClusterRoleBinding(ctx context.Context, rb *v1.ClusterRoleBinding) error

CreateOrUpdateClusterRoleBinding provides a mock function with given fields: ctx, rb

func (*RBAC) CreateOrUpdateRole

func (_m *RBAC) CreateOrUpdateRole(ctx context.Context, namespace string, role *v1.Role) error

CreateOrUpdateRole provides a mock function with given fields: ctx, namespace, role

func (*RBAC) CreateOrUpdateRoleBinding

func (_m *RBAC) CreateOrUpdateRoleBinding(ctx context.Context, namespace string, rb *v1.RoleBinding) error

CreateOrUpdateRoleBinding provides a mock function with given fields: ctx, namespace, rb

func (*RBAC) CreateRole

func (_m *RBAC) CreateRole(ctx context.Context, namespace string, role *v1.Role) error

CreateRole provides a mock function with given fields: ctx, namespace, role

func (*RBAC) CreateRoleBinding

func (_m *RBAC) CreateRoleBinding(ctx context.Context, namespace string, rb *v1.RoleBinding) error

CreateRoleBinding provides a mock function with given fields: ctx, namespace, rb

func (*RBAC) GetClusterRole

func (_m *RBAC) GetClusterRole(ctx context.Context, name string) (*v1.ClusterRole, error)

GetClusterRole provides a mock function with given fields: ctx, name

func (*RBAC) GetClusterRoleBinding

func (_m *RBAC) GetClusterRoleBinding(ctx context.Context, name string) (*v1.ClusterRoleBinding, error)

GetClusterRoleBinding provides a mock function with given fields: ctx, name

func (*RBAC) GetRole

func (_m *RBAC) GetRole(ctx context.Context, namespace string, name string) (*v1.Role, error)

GetRole provides a mock function with given fields: ctx, namespace, name

func (*RBAC) GetRoleBinding

func (_m *RBAC) GetRoleBinding(ctx context.Context, namespace string, name string) (*v1.RoleBinding, error)

GetRoleBinding provides a mock function with given fields: ctx, namespace, name

func (*RBAC) UpdateClusterRole

func (_m *RBAC) UpdateClusterRole(ctx context.Context, role *v1.ClusterRole) error

UpdateClusterRole provides a mock function with given fields: ctx, role

func (*RBAC) UpdateClusterRoleBinding

func (_m *RBAC) UpdateClusterRoleBinding(ctx context.Context, role *v1.ClusterRoleBinding) error

UpdateClusterRoleBinding provides a mock function with given fields: ctx, role

func (*RBAC) UpdateRole

func (_m *RBAC) UpdateRole(ctx context.Context, namespace string, role *v1.Role) error

UpdateRole provides a mock function with given fields: ctx, namespace, role

type RedisFailover

type RedisFailover struct {
	mock.Mock
}

RedisFailover is an autogenerated mock type for the RedisFailover type

func NewRedisFailover

func NewRedisFailover(t interface {
	mock.TestingT
	Cleanup(func())
}) *RedisFailover

NewRedisFailover creates a new instance of RedisFailover. 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 (*RedisFailover) GetRedisFailover

func (_m *RedisFailover) GetRedisFailover(ctx context.Context, namespace string, name string) (*v1.RedisFailover, error)

GetRedisFailover provides a mock function with given fields: ctx, namespace, name

func (*RedisFailover) ListRedisFailovers

func (_m *RedisFailover) ListRedisFailovers(ctx context.Context, namespace string, opts client.ListOptions) (*v1.RedisFailoverList, error)

ListRedisFailovers provides a mock function with given fields: ctx, namespace, opts

func (*RedisFailover) UpdateRedisFailover

func (_m *RedisFailover) UpdateRedisFailover(ctx context.Context, inst *v1.RedisFailover) error

UpdateRedisFailover provides a mock function with given fields: ctx, inst

func (*RedisFailover) UpdateRedisFailoverStatus

func (_m *RedisFailover) UpdateRedisFailoverStatus(ctx context.Context, inst *v1.RedisFailover) error

UpdateRedisFailoverStatus provides a mock function with given fields: ctx, inst

type RedisSentinel

type RedisSentinel struct {
	mock.Mock
}

RedisSentinel is an autogenerated mock type for the RedisSentinel type

func NewRedisSentinel

func NewRedisSentinel(t interface {
	mock.TestingT
	Cleanup(func())
}) *RedisSentinel

NewRedisSentinel creates a new instance of RedisSentinel. 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 (*RedisSentinel) GetRedisSentinel

func (_m *RedisSentinel) GetRedisSentinel(ctx context.Context, namespace string, name string) (*v1.RedisSentinel, error)

GetRedisSentinel provides a mock function with given fields: ctx, namespace, name

func (*RedisSentinel) ListRedisSentinels

func (_m *RedisSentinel) ListRedisSentinels(ctx context.Context, namespace string, opts client.ListOptions) (*v1.RedisSentinelList, error)

ListRedisSentinels provides a mock function with given fields: ctx, namespace, opts

func (*RedisSentinel) UpdateRedisSentinel

func (_m *RedisSentinel) UpdateRedisSentinel(ctx context.Context, sen *v1.RedisSentinel) error

UpdateRedisSentinel provides a mock function with given fields: ctx, sen

func (*RedisSentinel) UpdateRedisSentinelStatus

func (_m *RedisSentinel) UpdateRedisSentinelStatus(ctx context.Context, inst *v1.RedisSentinel) error

UpdateRedisSentinelStatus provides a mock function with given fields: ctx, inst

type RedisUser

type RedisUser struct {
	mock.Mock
}

RedisUser is an autogenerated mock type for the RedisUser type

func NewRedisUser

func NewRedisUser(t interface {
	mock.TestingT
	Cleanup(func())
}) *RedisUser

NewRedisUser creates a new instance of RedisUser. 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 (*RedisUser) CreateIfNotExistsRedisUser

func (_m *RedisUser) CreateIfNotExistsRedisUser(ctx context.Context, ru *v1.RedisUser) error

CreateIfNotExistsRedisUser provides a mock function with given fields: ctx, ru

func (*RedisUser) CreateOrUpdateRedisUser

func (_m *RedisUser) CreateOrUpdateRedisUser(ctx context.Context, ru *v1.RedisUser) error

CreateOrUpdateRedisUser provides a mock function with given fields: ctx, ru

func (*RedisUser) CreateRedisUser

func (_m *RedisUser) CreateRedisUser(ctx context.Context, ru *v1.RedisUser) error

CreateRedisUser provides a mock function with given fields: ctx, ru

func (*RedisUser) GetRedisUser

func (_m *RedisUser) GetRedisUser(ctx context.Context, namespace string, name string) (*v1.RedisUser, error)

GetRedisUser provides a mock function with given fields: ctx, namespace, name

func (*RedisUser) ListRedisUsers

func (_m *RedisUser) ListRedisUsers(ctx context.Context, namespace string, opts client.ListOptions) (*v1.RedisUserList, error)

ListRedisUsers provides a mock function with given fields: ctx, namespace, opts

func (*RedisUser) UpdateRedisUser

func (_m *RedisUser) UpdateRedisUser(ctx context.Context, ru *v1.RedisUser) error

UpdateRedisUser provides a mock function with given fields: ctx, ru

type Secret

type Secret struct {
	mock.Mock
}

Secret is an autogenerated mock type for the Secret type

func NewSecret

func NewSecret(t interface {
	mock.TestingT
	Cleanup(func())
}) *Secret

NewSecret creates a new instance of Secret. 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 (*Secret) CreateIfNotExistsSecret

func (_m *Secret) CreateIfNotExistsSecret(ctx context.Context, namespace string, secret *v1.Secret) error

CreateIfNotExistsSecret provides a mock function with given fields: ctx, namespace, secret

func (*Secret) CreateOrUpdateSecret

func (_m *Secret) CreateOrUpdateSecret(ctx context.Context, namespace string, secret *v1.Secret) error

CreateOrUpdateSecret provides a mock function with given fields: ctx, namespace, secret

func (*Secret) CreateSecret

func (_m *Secret) CreateSecret(ctx context.Context, namespace string, secret *v1.Secret) error

CreateSecret provides a mock function with given fields: ctx, namespace, secret

func (*Secret) DeleteSecret

func (_m *Secret) DeleteSecret(ctx context.Context, namespace string, name string) error

DeleteSecret provides a mock function with given fields: ctx, namespace, name

func (*Secret) GetSecret

func (_m *Secret) GetSecret(ctx context.Context, namespace string, name string) (*v1.Secret, error)

GetSecret provides a mock function with given fields: ctx, namespace, name

func (*Secret) ListSecret

func (_m *Secret) ListSecret(ctx context.Context, namespace string) (*v1.SecretList, error)

ListSecret provides a mock function with given fields: ctx, namespace

func (*Secret) UpdateSecret

func (_m *Secret) UpdateSecret(ctx context.Context, namespace string, secret *v1.Secret) error

UpdateSecret provides a mock function with given fields: ctx, namespace, secret

type Service

type Service struct {
	mock.Mock
}

Service is an autogenerated mock type for the Service type

func NewService

func NewService(t interface {
	mock.TestingT
	Cleanup(func())
}) *Service

NewService creates a new instance of Service. 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 (*Service) CreateIfNotExistsService

func (_m *Service) CreateIfNotExistsService(ctx context.Context, namespace string, service *v1.Service) error

CreateIfNotExistsService provides a mock function with given fields: ctx, namespace, service

func (*Service) CreateOrUpdateIfServiceChanged

func (_m *Service) CreateOrUpdateIfServiceChanged(ctx context.Context, namespace string, service *v1.Service) error

CreateOrUpdateIfServiceChanged provides a mock function with given fields: ctx, namespace, service

func (*Service) CreateOrUpdateService

func (_m *Service) CreateOrUpdateService(ctx context.Context, namespace string, service *v1.Service) error

CreateOrUpdateService provides a mock function with given fields: ctx, namespace, service

func (*Service) CreateService

func (_m *Service) CreateService(ctx context.Context, namespace string, service *v1.Service) error

CreateService provides a mock function with given fields: ctx, namespace, service

func (*Service) DeleteService

func (_m *Service) DeleteService(ctx context.Context, namespace string, name string) error

DeleteService provides a mock function with given fields: ctx, namespace, name

func (*Service) GetService

func (_m *Service) GetService(ctx context.Context, namespace string, name string) (*v1.Service, error)

GetService provides a mock function with given fields: ctx, namespace, name

func (*Service) GetServiceByLabels

func (_m *Service) GetServiceByLabels(ctx context.Context, namespace string, labelsMap map[string]string) (*v1.ServiceList, error)

GetServiceByLabels provides a mock function with given fields: ctx, namespace, labelsMap

func (*Service) ListServices

func (_m *Service) ListServices(ctx context.Context, namespace string) (*v1.ServiceList, error)

ListServices provides a mock function with given fields: ctx, namespace

func (*Service) UpdateIfSelectorChangedService

func (_m *Service) UpdateIfSelectorChangedService(ctx context.Context, namespace string, service *v1.Service) error

UpdateIfSelectorChangedService provides a mock function with given fields: ctx, namespace, service

func (*Service) UpdateService

func (_m *Service) UpdateService(ctx context.Context, namespace string, service *v1.Service) error

UpdateService provides a mock function with given fields: ctx, namespace, service

type ServiceAccount

type ServiceAccount struct {
	mock.Mock
}

ServiceAccount is an autogenerated mock type for the ServiceAccount type

func NewServiceAccount

func NewServiceAccount(t interface {
	mock.TestingT
	Cleanup(func())
}) *ServiceAccount

NewServiceAccount creates a new instance of ServiceAccount. 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 (*ServiceAccount) CreateOrUpdateServiceAccount

func (_m *ServiceAccount) CreateOrUpdateServiceAccount(ctx context.Context, namespace string, sa *v1.ServiceAccount) error

CreateOrUpdateServiceAccount provides a mock function with given fields: ctx, namespace, sa

func (*ServiceAccount) CreateServiceAccount

func (_m *ServiceAccount) CreateServiceAccount(ctx context.Context, namespace string, sa *v1.ServiceAccount) error

CreateServiceAccount provides a mock function with given fields: ctx, namespace, sa

func (*ServiceAccount) GetServiceAccount

func (_m *ServiceAccount) GetServiceAccount(ctx context.Context, namespace string, name string) (*v1.ServiceAccount, error)

GetServiceAccount provides a mock function with given fields: ctx, namespace, name

type ServiceMonitor

type ServiceMonitor struct {
	mock.Mock
}

ServiceMonitor is an autogenerated mock type for the ServiceMonitor type

func NewServiceMonitor

func NewServiceMonitor(t interface {
	mock.TestingT
	Cleanup(func())
}) *ServiceMonitor

NewServiceMonitor creates a new instance of ServiceMonitor. 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 (*ServiceMonitor) CreateOrUpdateServiceMonitor

func (_m *ServiceMonitor) CreateOrUpdateServiceMonitor(ctx context.Context, namespace string, sm *v1.ServiceMonitor) error

CreateOrUpdateServiceMonitor provides a mock function with given fields: ctx, namespace, sm

func (*ServiceMonitor) CreateServiceMonitor

func (_m *ServiceMonitor) CreateServiceMonitor(ctx context.Context, namespace string, sm *v1.ServiceMonitor) error

CreateServiceMonitor provides a mock function with given fields: ctx, namespace, sm

func (*ServiceMonitor) GetServiceMonitor

func (_m *ServiceMonitor) GetServiceMonitor(ctx context.Context, namespace string, name string) (*v1.ServiceMonitor, error)

GetServiceMonitor provides a mock function with given fields: ctx, namespace, name

func (*ServiceMonitor) UpdateServiceMonitor

func (_m *ServiceMonitor) UpdateServiceMonitor(ctx context.Context, namespace string, sm *v1.ServiceMonitor) error

UpdateServiceMonitor provides a mock function with given fields: ctx, namespace, sm

type StatefulSet

type StatefulSet struct {
	mock.Mock
}

StatefulSet is an autogenerated mock type for the StatefulSet type

func NewStatefulSet

func NewStatefulSet(t interface {
	mock.TestingT
	Cleanup(func())
}) *StatefulSet

NewStatefulSet creates a new instance of StatefulSet. 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 (*StatefulSet) CreateIfNotExistsStatefulSet

func (_m *StatefulSet) CreateIfNotExistsStatefulSet(ctx context.Context, namespace string, statefulSet *v1.StatefulSet) error

CreateIfNotExistsStatefulSet provides a mock function with given fields: ctx, namespace, statefulSet

func (*StatefulSet) CreateOrUpdateStatefulSet

func (_m *StatefulSet) CreateOrUpdateStatefulSet(ctx context.Context, namespace string, StatefulSet *v1.StatefulSet) error

CreateOrUpdateStatefulSet provides a mock function with given fields: ctx, namespace, StatefulSet

func (*StatefulSet) CreateStatefulSet

func (_m *StatefulSet) CreateStatefulSet(ctx context.Context, namespace string, statefulSet *v1.StatefulSet) error

CreateStatefulSet provides a mock function with given fields: ctx, namespace, statefulSet

func (*StatefulSet) DeleteStatefulSet

func (_m *StatefulSet) DeleteStatefulSet(ctx context.Context, namespace string, name string, opts ...client.DeleteOption) error

DeleteStatefulSet provides a mock function with given fields: ctx, namespace, name, opts

func (*StatefulSet) GetStatefulSet

func (_m *StatefulSet) GetStatefulSet(ctx context.Context, namespace string, name string) (*v1.StatefulSet, error)

GetStatefulSet provides a mock function with given fields: ctx, namespace, name

func (*StatefulSet) GetStatefulSetPods

func (_m *StatefulSet) GetStatefulSetPods(ctx context.Context, namespace string, name string) (*corev1.PodList, error)

GetStatefulSetPods provides a mock function with given fields: ctx, namespace, name

func (*StatefulSet) GetStatefulSetPodsByLabels

func (_m *StatefulSet) GetStatefulSetPodsByLabels(ctx context.Context, namespace string, labels map[string]string) (*corev1.PodList, error)

GetStatefulSetPodsByLabels provides a mock function with given fields: ctx, namespace, labels

func (*StatefulSet) ListStatefulSetByLabels

func (_m *StatefulSet) ListStatefulSetByLabels(ctx context.Context, namespace string, labels map[string]string) (*v1.StatefulSetList, error)

ListStatefulSetByLabels provides a mock function with given fields: ctx, namespace, labels

func (*StatefulSet) ListStatefulSets

func (_m *StatefulSet) ListStatefulSets(ctx context.Context, namespace string) (*v1.StatefulSetList, error)

ListStatefulSets provides a mock function with given fields: ctx, namespace

func (*StatefulSet) UpdateStatefulSet

func (_m *StatefulSet) UpdateStatefulSet(ctx context.Context, namespace string, statefulSet *v1.StatefulSet) error

UpdateStatefulSet provides a mock function with given fields: ctx, namespace, statefulSet

Jump to

Keyboard shortcuts

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