mocks

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RedisFailoverCheck

type RedisFailoverCheck struct {
	mock.Mock
}

RedisFailoverCheck is an autogenerated mock type for the RedisFailoverCheck type

func (*RedisFailoverCheck) CheckAllSlavesFromMaster

func (_m *RedisFailoverCheck) CheckAllSlavesFromMaster(master string, rFailover *v1.RedisFailover) error

CheckAllSlavesFromMaster provides a mock function with given fields: master, rFailover

func (*RedisFailoverCheck) CheckRedisNumber

func (_m *RedisFailoverCheck) CheckRedisNumber(rFailover *v1.RedisFailover) error

CheckRedisNumber provides a mock function with given fields: rFailover

func (*RedisFailoverCheck) CheckRedisSlavesReady

func (_m *RedisFailoverCheck) CheckRedisSlavesReady(slaveIP string, rFailover *v1.RedisFailover) (bool, error)

CheckRedisSlavesReady provides a mock function with given fields: slaveIP, rFailover

func (*RedisFailoverCheck) CheckSentinelMonitor

func (_m *RedisFailoverCheck) CheckSentinelMonitor(sentinel string, monitor string) error

CheckSentinelMonitor provides a mock function with given fields: sentinel, monitor

func (*RedisFailoverCheck) CheckSentinelNumber

func (_m *RedisFailoverCheck) CheckSentinelNumber(rFailover *v1.RedisFailover) error

CheckSentinelNumber provides a mock function with given fields: rFailover

func (*RedisFailoverCheck) CheckSentinelNumberInMemory

func (_m *RedisFailoverCheck) CheckSentinelNumberInMemory(sentinel string, rFailover *v1.RedisFailover) error

CheckSentinelNumberInMemory provides a mock function with given fields: sentinel, rFailover

func (*RedisFailoverCheck) CheckSentinelSlavesNumberInMemory

func (_m *RedisFailoverCheck) CheckSentinelSlavesNumberInMemory(sentinel string, rFailover *v1.RedisFailover) error

CheckSentinelSlavesNumberInMemory provides a mock function with given fields: sentinel, rFailover

func (*RedisFailoverCheck) GetMasterIP

func (_m *RedisFailoverCheck) GetMasterIP(rFailover *v1.RedisFailover) (string, error)

GetMasterIP provides a mock function with given fields: rFailover

func (*RedisFailoverCheck) GetMinimumRedisPodTime

func (_m *RedisFailoverCheck) GetMinimumRedisPodTime(rFailover *v1.RedisFailover) (time.Duration, error)

GetMinimumRedisPodTime provides a mock function with given fields: rFailover

func (*RedisFailoverCheck) GetNumberMasters

func (_m *RedisFailoverCheck) GetNumberMasters(rFailover *v1.RedisFailover) (int, error)

GetNumberMasters provides a mock function with given fields: rFailover

func (*RedisFailoverCheck) GetRedisRevisionHash

func (_m *RedisFailoverCheck) GetRedisRevisionHash(podName string, rFailover *v1.RedisFailover) (string, error)

GetRedisRevisionHash provides a mock function with given fields: podName, rFailover

func (*RedisFailoverCheck) GetRedisesIPs

func (_m *RedisFailoverCheck) GetRedisesIPs(rFailover *v1.RedisFailover) ([]string, error)

GetRedisesIPs provides a mock function with given fields: rFailover

func (*RedisFailoverCheck) GetRedisesMasterPod

func (_m *RedisFailoverCheck) GetRedisesMasterPod(rFailover *v1.RedisFailover) (string, error)

GetRedisesMasterPod provides a mock function with given fields: rFailover

func (*RedisFailoverCheck) GetRedisesSlavesPods

func (_m *RedisFailoverCheck) GetRedisesSlavesPods(rFailover *v1.RedisFailover) ([]string, error)

GetRedisesSlavesPods provides a mock function with given fields: rFailover

func (*RedisFailoverCheck) GetSentinelsIPs

func (_m *RedisFailoverCheck) GetSentinelsIPs(rFailover *v1.RedisFailover) ([]string, error)

GetSentinelsIPs provides a mock function with given fields: rFailover

func (*RedisFailoverCheck) GetStatefulSetUpdateRevision

func (_m *RedisFailoverCheck) GetStatefulSetUpdateRevision(rFailover *v1.RedisFailover) (string, error)

GetStatefulSetUpdateRevision provides a mock function with given fields: rFailover

type RedisFailoverClient

type RedisFailoverClient struct {
	mock.Mock
}

RedisFailoverClient is an autogenerated mock type for the RedisFailoverClient type

func (*RedisFailoverClient) EnsureNotPresentRedisService

func (_m *RedisFailoverClient) EnsureNotPresentRedisService(rFailover *v1.RedisFailover) error

EnsureNotPresentRedisService provides a mock function with given fields: rFailover

func (*RedisFailoverClient) EnsureRedisConfigMap

func (_m *RedisFailoverClient) EnsureRedisConfigMap(rFailover *v1.RedisFailover, labels map[string]string, ownerRefs []metav1.OwnerReference) error

EnsureRedisConfigMap provides a mock function with given fields: rFailover, labels, ownerRefs

func (*RedisFailoverClient) EnsureRedisReadinessConfigMap

func (_m *RedisFailoverClient) EnsureRedisReadinessConfigMap(rFailover *v1.RedisFailover, labels map[string]string, ownerRefs []metav1.OwnerReference) error

EnsureRedisReadinessConfigMap provides a mock function with given fields: rFailover, labels, ownerRefs

func (*RedisFailoverClient) EnsureRedisService

func (_m *RedisFailoverClient) EnsureRedisService(rFailover *v1.RedisFailover, labels map[string]string, ownerRefs []metav1.OwnerReference) error

EnsureRedisService provides a mock function with given fields: rFailover, labels, ownerRefs

func (*RedisFailoverClient) EnsureRedisShutdownConfigMap

func (_m *RedisFailoverClient) EnsureRedisShutdownConfigMap(rFailover *v1.RedisFailover, labels map[string]string, ownerRefs []metav1.OwnerReference) error

EnsureRedisShutdownConfigMap provides a mock function with given fields: rFailover, labels, ownerRefs

func (*RedisFailoverClient) EnsureRedisStatefulset

func (_m *RedisFailoverClient) EnsureRedisStatefulset(rFailover *v1.RedisFailover, labels map[string]string, ownerRefs []metav1.OwnerReference) error

EnsureRedisStatefulset provides a mock function with given fields: rFailover, labels, ownerRefs

func (*RedisFailoverClient) EnsureSentinelConfigMap

func (_m *RedisFailoverClient) EnsureSentinelConfigMap(rFailover *v1.RedisFailover, labels map[string]string, ownerRefs []metav1.OwnerReference) error

EnsureSentinelConfigMap provides a mock function with given fields: rFailover, labels, ownerRefs

func (*RedisFailoverClient) EnsureSentinelDeployment

func (_m *RedisFailoverClient) EnsureSentinelDeployment(rFailover *v1.RedisFailover, labels map[string]string, ownerRefs []metav1.OwnerReference) error

EnsureSentinelDeployment provides a mock function with given fields: rFailover, labels, ownerRefs

func (*RedisFailoverClient) EnsureSentinelService

func (_m *RedisFailoverClient) EnsureSentinelService(rFailover *v1.RedisFailover, labels map[string]string, ownerRefs []metav1.OwnerReference) error

EnsureSentinelService provides a mock function with given fields: rFailover, labels, ownerRefs

type RedisFailoverHeal

type RedisFailoverHeal struct {
	mock.Mock
}

RedisFailoverHeal is an autogenerated mock type for the RedisFailoverHeal type

func (*RedisFailoverHeal) DeletePod

func (_m *RedisFailoverHeal) DeletePod(podName string, rFailover *v1.RedisFailover) error

DeletePod provides a mock function with given fields: podName, rFailover

func (*RedisFailoverHeal) MakeMaster

func (_m *RedisFailoverHeal) MakeMaster(ip string, rFailover *v1.RedisFailover) error

MakeMaster provides a mock function with given fields: ip, rFailover

func (*RedisFailoverHeal) NewSentinelMonitor

func (_m *RedisFailoverHeal) NewSentinelMonitor(ip string, monitor string, rFailover *v1.RedisFailover) error

NewSentinelMonitor provides a mock function with given fields: ip, monitor, rFailover

func (*RedisFailoverHeal) RestoreSentinel

func (_m *RedisFailoverHeal) RestoreSentinel(ip string) error

RestoreSentinel provides a mock function with given fields: ip

func (*RedisFailoverHeal) SetMasterOnAll

func (_m *RedisFailoverHeal) SetMasterOnAll(masterIP string, rFailover *v1.RedisFailover) error

SetMasterOnAll provides a mock function with given fields: masterIP, rFailover

func (*RedisFailoverHeal) SetOldestAsMaster

func (_m *RedisFailoverHeal) SetOldestAsMaster(rFailover *v1.RedisFailover) error

SetOldestAsMaster provides a mock function with given fields: rFailover

func (*RedisFailoverHeal) SetRedisCustomConfig

func (_m *RedisFailoverHeal) SetRedisCustomConfig(ip string, rFailover *v1.RedisFailover) error

SetRedisCustomConfig provides a mock function with given fields: ip, rFailover

func (*RedisFailoverHeal) SetSentinelCustomConfig

func (_m *RedisFailoverHeal) SetSentinelCustomConfig(ip string, rFailover *v1.RedisFailover) error

SetSentinelCustomConfig provides a mock function with given fields: ip, rFailover

Jump to

Keyboard shortcuts

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