config

package
v0.0.0-...-46baba5 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigKey

type ConfigKey string

type MockService

type MockService struct {
	mock.Mock
}

MockService is an autogenerated mock type for the Service type

func NewMockService

func NewMockService(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockService

NewMockService creates a new instance of MockService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockService) GetMasterKey

func (_m *MockService) GetMasterKey(ctx context.Context) (*secret.SealedKey, error)

GetMasterKey provides a mock function with given fields: ctx

func (*MockService) SetMasterKey

func (_m *MockService) SetMasterKey(ctx context.Context, key *secret.SealedKey) error

SetMasterKey provides a mock function with given fields: ctx, key

type Service

type Service interface {
	SetMasterKey(ctx context.Context, key *secret.SealedKey) error
	GetMasterKey(ctx context.Context) (*secret.SealedKey, error)
}

func Init

func Init(db sqlstorage.Querier) Service

Jump to

Keyboard shortcuts

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