mocks

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: May 4, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CmderMock

type CmderMock struct {
	mock.Mock
}

CmderMock is mock for Redis client

func (*CmderMock) Cmd

func (c *CmderMock) Cmd(cmd string, args ...interface{}) *redis.Resp

Cmd implement Cmder.Cmd

type ResolverMock

type ResolverMock struct {
	mock.Mock
}

ResolverMock is mock for resolver.Resolver

func (*ResolverMock) Resolve

func (r *ResolverMock) Resolve(hostRules models.HostRules, sourcePath string) models.Target

Resolve implement rosolver.Resolver.Resolve

type StoreMock

type StoreMock struct {
	mock.Mock
}

StoreMock is mock for Store interface

func (*StoreMock) CheckHealth

func (s *StoreMock) CheckHealth() error

CheckHealth for store mock

func (*StoreMock) CreateHostRules

func (s *StoreMock) CreateHostRules(hostRules models.HostRules) error

CreateHostRules for store mock

func (*StoreMock) DeleteHostRules

func (s *StoreMock) DeleteHostRules(host string) error

DeleteHostRules for store mock

func (*StoreMock) GetHostRules

func (s *StoreMock) GetHostRules(host string) (*models.HostRules, error)

GetHostRules for store mock

func (*StoreMock) ListHostRules

func (s *StoreMock) ListHostRules() ([]models.HostRules, error)

ListHostRules for store mock

func (*StoreMock) UpdateHostRules

func (s *StoreMock) UpdateHostRules(host string, hostRules models.HostRules) error

UpdateHostRules for store mock

Jump to

Keyboard shortcuts

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