mocks

package
v0.0.0-...-4c750bb Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2022 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 Conn

type Conn struct {
	mock.Mock
}

Conn is an autogenerated mock type for the Conn type

func (*Conn) Close

func (_m *Conn) Close() error

Close provides a mock function with given fields:

func (*Conn) Do

func (_m *Conn) Do(commandName string, args ...interface{}) (interface{}, error)

Do provides a mock function with given fields: commandName, args

func (*Conn) Err

func (_m *Conn) Err() error

Err provides a mock function with given fields:

func (*Conn) Flush

func (_m *Conn) Flush() error

Flush provides a mock function with given fields:

func (*Conn) Receive

func (_m *Conn) Receive() (interface{}, error)

Receive provides a mock function with given fields:

func (*Conn) Send

func (_m *Conn) Send(commandName string, args ...interface{}) error

Send provides a mock function with given fields: commandName, args

type RedisClientInterface

type RedisClientInterface struct {
	mock.Mock
}

RedisClientInterface is an autogenerated mock type for the RedisClientInterface type

func (*RedisClientInterface) Close

func (_m *RedisClientInterface) Close() error

Close provides a mock function with given fields:

func (*RedisClientInterface) GetConnection

func (_m *RedisClientInterface) GetConnection() redis.Conn

GetConnection provides a mock function with given fields:

func (*RedisClientInterface) TestConnection

func (_m *RedisClientInterface) TestConnection() (redis.Conn, error)

TestConnection provides a mock function with given fields:

type VaultClientInterface

type VaultClientInterface struct {
	mock.Mock
}

VaultClientInterface is an autogenerated mock type for the VaultClientInterface type

func (*VaultClientInterface) Delete

func (_m *VaultClientInterface) Delete(path string) (*api.Secret, error)

Delete provides a mock function with given fields: path

func (*VaultClientInterface) Get

func (_m *VaultClientInterface) Get(path string) (*api.Secret, error)

Get provides a mock function with given fields: path

func (*VaultClientInterface) Set

func (_m *VaultClientInterface) Set(path string, data map[string]interface{}) (*api.Secret, error)

Set provides a mock function with given fields: path, data

type VaultInterface

type VaultInterface struct {
	mock.Mock
}

VaultInterface is an autogenerated mock type for the VaultInterface type

func (*VaultInterface) DeleteSecrets

func (_m *VaultInterface) DeleteSecrets(secretid string) error

DeleteSecrets provides a mock function with given fields: secretid

func (*VaultInterface) GetSecrets

func (_m *VaultInterface) GetSecrets(secretid string) (map[string]interface{}, error)

GetSecrets provides a mock function with given fields: secretid

func (*VaultInterface) SetSecrets

func (_m *VaultInterface) SetSecrets(secretName string, data map[string]interface{}) error

SetSecrets provides a mock function with given fields: secretName, data

Jump to

Keyboard shortcuts

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