mocks

package
v0.0.0-...-95e6a1e Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2021 License: GPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB struct {
	mock.Mock
}

func (*DB) AddKey

func (_m *DB) AddKey(_a0 *secrets.Key) error

AddKey provides a mock function with given fields: _a0

func (*DB) AddSecret

func (_m *DB) AddSecret(_a0 *secrets.Secret) error

AddSecret provides a mock function with given fields: _a0

func (*DB) Connect

func (_m *DB) Connect() error

Connect provides a mock function with given fields:

func (*DB) DeleteKey

func (_m *DB) DeleteKey(_a0 *secrets.Key) error

DeleteKey provides a mock function with given fields: _a0

func (*DB) DeleteSecret

func (_m *DB) DeleteSecret(_a0 *secrets.Secret) error

DeleteSecret provides a mock function with given fields: _a0

func (*DB) GetKey

func (_m *DB) GetKey(_a0 *secrets.Key) error

GetKey provides a mock function with given fields: _a0

func (*DB) GetRootSecret

func (_m *DB) GetRootSecret(_a0 *secrets.Secret) error

GetRootSecret provides a mock function with given fields: _a0

func (*DB) GetSharedSecret

func (_m *DB) GetSharedSecret(_a0 *secrets.Secret, _a1 *secrets.Key) error

GetSharedSecret provides a mock function with given fields: _a0, _a1

func (*DB) ListKeys

func (_m *DB) ListKeys(_a0 *string) func(int) ([]secrets.Key, error)

ListKeys provides a mock function with given fields: _a0

func (*DB) ListSecrets

func (_m *DB) ListSecrets(_a0 *string) func(int) ([]secrets.Secret, error)

ListSecrets provides a mock function with given fields: _a0

func (*DB) Metrics

func (_m *DB) Metrics() (map[string]interface{}, error)

Metrics provides a mock function with given fields:

func (*DB) Ping

func (_m *DB) Ping() error

Ping provides a mock function with given fields:

func (*DB) UpdateSecret

func (_m *DB) UpdateSecret(_a0 *secrets.Secret) error

UpdateSecret provides a mock function with given fields: _a0

Jump to

Keyboard shortcuts

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