mocks

package
v1.1.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2022 License: Apache-2.0 Imports: 1 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 (*Client) GetNumberSentinelSlavesInMemory

func (_m *Client) GetNumberSentinelSlavesInMemory(ip string) (int32, error)

GetNumberSentinelSlavesInMemory provides a mock function with given fields: ip

func (*Client) GetNumberSentinelsInMemory

func (_m *Client) GetNumberSentinelsInMemory(ip string) (int32, error)

GetNumberSentinelsInMemory provides a mock function with given fields: ip

func (*Client) GetSentinelMonitor

func (_m *Client) GetSentinelMonitor(ip string) (string, string, error)

GetSentinelMonitor provides a mock function with given fields: ip

func (*Client) GetSlaveOf

func (_m *Client) GetSlaveOf(ip string, password string) (string, error)

GetSlaveOf provides a mock function with given fields: ip, password

func (*Client) IsMaster

func (_m *Client) IsMaster(ip string, password string) (bool, error)

IsMaster provides a mock function with given fields: ip, password

func (*Client) MakeMaster

func (_m *Client) MakeMaster(ip string, password string) error

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

func (*Client) MakeSlaveOf

func (_m *Client) MakeSlaveOf(ip string, masterIP string, password string) error

MakeSlaveOf provides a mock function with given fields: ip, masterIP, password

func (*Client) MakeSlaveOfWithPort added in v1.1.0

func (_m *Client) MakeSlaveOfWithPort(ip string, masterIP string, masterPort string, password string) error

MakeSlaveOfWithPort provides a mock function with given fields: ip, masterIP, masterPort, password

func (*Client) MonitorRedis

func (_m *Client) MonitorRedis(ip string, monitor string, quorum string, password string) error

MonitorRedis provides a mock function with given fields: ip, monitor, quorum, password

func (*Client) MonitorRedisWithPort added in v1.1.0

func (_m *Client) MonitorRedisWithPort(ip string, monitor string, port string, quorum string, password string) error

MonitorRedisWithPort provides a mock function with given fields: ip, monitor, port, quorum, password

func (*Client) ResetSentinel

func (_m *Client) ResetSentinel(ip string) error

ResetSentinel provides a mock function with given fields: ip

func (*Client) SetCustomRedisConfig

func (_m *Client) SetCustomRedisConfig(ip string, configs []string, password string) error

SetCustomRedisConfig provides a mock function with given fields: ip, configs, password

func (*Client) SetCustomSentinelConfig

func (_m *Client) SetCustomSentinelConfig(ip string, configs []string) error

SetCustomSentinelConfig provides a mock function with given fields: ip, configs

func (*Client) SlaveIsReady

func (_m *Client) SlaveIsReady(ip string, password string) (bool, error)

SlaveIsReady provides a mock function with given fields: ip, password

Jump to

Keyboard shortcuts

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