mocks

package
v0.0.0-...-3468198 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Code generated by mockery v1.0.0. DO NOT EDIT.

Code generated by mockery v1.0.0. DO NOT EDIT.

Code generated by mockery v1.0.0. DO NOT EDIT.

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 *v1alpha2.RedisFailover) error

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

func (*RedisFailoverCheck) CheckRedisNumber

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

CheckRedisNumber provides a mock function with given fields: 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 *v1alpha2.RedisFailover) error

CheckSentinelNumber provides a mock function with given fields: rFailover

func (*RedisFailoverCheck) CheckSentinelNumberInMemory

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

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

func (*RedisFailoverCheck) CheckSentinelSlavesNumberInMemory

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

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

func (*RedisFailoverCheck) GetMasterIP

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

GetMasterIP provides a mock function with given fields: rFailover

func (*RedisFailoverCheck) GetMinimumRedisPodTime

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

GetMinimumRedisPodTime provides a mock function with given fields: rFailover

func (*RedisFailoverCheck) GetNumberMasters

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

GetNumberMasters provides a mock function with given fields: rFailover

func (*RedisFailoverCheck) GetRedisesIPs

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

GetRedisesIPs provides a mock function with given fields: rFailover

func (*RedisFailoverCheck) GetSentinelsIPs

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

GetSentinelsIPs 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 *v1alpha2.RedisFailover) error

EnsureNotPresentRedisService provides a mock function with given fields: rFailover

func (*RedisFailoverClient) EnsureRedisConfigMap

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

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

func (*RedisFailoverClient) EnsureRedisService

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

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

func (*RedisFailoverClient) EnsureRedisShutdownConfigMap

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

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

func (*RedisFailoverClient) EnsureRedisStatefulset

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

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

func (*RedisFailoverClient) EnsureSentinelConfigMap

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

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

func (*RedisFailoverClient) EnsureSentinelDeployment

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

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

func (*RedisFailoverClient) EnsureSentinelService

func (_m *RedisFailoverClient) EnsureSentinelService(rFailover *v1alpha2.RedisFailover, labels map[string]string, ownerRefs []v1.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) MakeMaster

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

MakeMaster provides a mock function with given fields: ip

func (*RedisFailoverHeal) NewSentinelMonitor

func (_m *RedisFailoverHeal) NewSentinelMonitor(ip string, monitor string, rFailover *v1alpha2.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 *v1alpha2.RedisFailover) error

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

func (*RedisFailoverHeal) SetOldestAsMaster

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

SetOldestAsMaster provides a mock function with given fields: rFailover

func (*RedisFailoverHeal) SetRedisCustomConfig

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

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

func (*RedisFailoverHeal) SetSentinelCustomConfig

func (_m *RedisFailoverHeal) SetSentinelCustomConfig(ip string, rFailover *v1alpha2.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