Documentation
¶
Index ¶
- type MockSealer
- type MockSealer_Expecter
- type MockSealer_Open_Call
- type MockSealer_Seal_Call
- type MockStore
- type MockStore_ApplyConfig_Call
- func (_c *MockStore_ApplyConfig_Call) Return(n int64, err error) *MockStore_ApplyConfig_Call
- func (_c *MockStore_ApplyConfig_Call) Run(run func(ctx context.Context, c storage.ConfigChange)) *MockStore_ApplyConfig_Call
- func (_c *MockStore_ApplyConfig_Call) RunAndReturn(run func(ctx context.Context, c storage.ConfigChange) (int64, error)) *MockStore_ApplyConfig_Call
- type MockStore_ConfigState_Call
- func (_c *MockStore_ConfigState_Call) Return(configState storage.ConfigState, err error) *MockStore_ConfigState_Call
- func (_c *MockStore_ConfigState_Call) Run(run func(ctx context.Context)) *MockStore_ConfigState_Call
- func (_c *MockStore_ConfigState_Call) RunAndReturn(run func(ctx context.Context) (storage.ConfigState, error)) *MockStore_ConfigState_Call
- type MockStore_Expecter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockSealer ¶
MockSealer is an autogenerated mock type for the Sealer type
func NewMockSealer ¶
func NewMockSealer(t interface {
mock.TestingT
Cleanup(func())
}) *MockSealer
NewMockSealer creates a new instance of MockSealer. 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 (*MockSealer) EXPECT ¶
func (_m *MockSealer) EXPECT() *MockSealer_Expecter
type MockSealer_Expecter ¶
type MockSealer_Expecter struct {
// contains filtered or unexported fields
}
func (*MockSealer_Expecter) Open ¶
func (_e *MockSealer_Expecter) Open(sealed any) *MockSealer_Open_Call
Open is a helper method to define mock.On call
- sealed string
func (*MockSealer_Expecter) Seal ¶
func (_e *MockSealer_Expecter) Seal(plain any) *MockSealer_Seal_Call
Seal is a helper method to define mock.On call
- plain string
type MockSealer_Open_Call ¶
MockSealer_Open_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Open'
func (*MockSealer_Open_Call) Return ¶
func (_c *MockSealer_Open_Call) Return(s string, err error) *MockSealer_Open_Call
func (*MockSealer_Open_Call) Run ¶
func (_c *MockSealer_Open_Call) Run(run func(sealed string)) *MockSealer_Open_Call
func (*MockSealer_Open_Call) RunAndReturn ¶
func (_c *MockSealer_Open_Call) RunAndReturn(run func(sealed string) (string, error)) *MockSealer_Open_Call
type MockSealer_Seal_Call ¶
MockSealer_Seal_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Seal'
func (*MockSealer_Seal_Call) Return ¶
func (_c *MockSealer_Seal_Call) Return(s string, err error) *MockSealer_Seal_Call
func (*MockSealer_Seal_Call) Run ¶
func (_c *MockSealer_Seal_Call) Run(run func(plain string)) *MockSealer_Seal_Call
func (*MockSealer_Seal_Call) RunAndReturn ¶
func (_c *MockSealer_Seal_Call) RunAndReturn(run func(plain string) (string, error)) *MockSealer_Seal_Call
type MockStore ¶
MockStore is an autogenerated mock type for the Store type
func NewMockStore ¶
NewMockStore creates a new instance of MockStore. 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 (*MockStore) ApplyConfig ¶
ApplyConfig provides a mock function for the type MockStore
func (*MockStore) ConfigState ¶
ConfigState provides a mock function for the type MockStore
func (*MockStore) EXPECT ¶
func (_m *MockStore) EXPECT() *MockStore_Expecter
type MockStore_ApplyConfig_Call ¶
MockStore_ApplyConfig_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ApplyConfig'
func (*MockStore_ApplyConfig_Call) Return ¶
func (_c *MockStore_ApplyConfig_Call) Return(n int64, err error) *MockStore_ApplyConfig_Call
func (*MockStore_ApplyConfig_Call) Run ¶
func (_c *MockStore_ApplyConfig_Call) Run(run func(ctx context.Context, c storage.ConfigChange)) *MockStore_ApplyConfig_Call
func (*MockStore_ApplyConfig_Call) RunAndReturn ¶
func (_c *MockStore_ApplyConfig_Call) RunAndReturn(run func(ctx context.Context, c storage.ConfigChange) (int64, error)) *MockStore_ApplyConfig_Call
type MockStore_ConfigState_Call ¶
MockStore_ConfigState_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ConfigState'
func (*MockStore_ConfigState_Call) Return ¶
func (_c *MockStore_ConfigState_Call) Return(configState storage.ConfigState, err error) *MockStore_ConfigState_Call
func (*MockStore_ConfigState_Call) Run ¶
func (_c *MockStore_ConfigState_Call) Run(run func(ctx context.Context)) *MockStore_ConfigState_Call
func (*MockStore_ConfigState_Call) RunAndReturn ¶
func (_c *MockStore_ConfigState_Call) RunAndReturn(run func(ctx context.Context) (storage.ConfigState, error)) *MockStore_ConfigState_Call
type MockStore_Expecter ¶
type MockStore_Expecter struct {
// contains filtered or unexported fields
}
func (*MockStore_Expecter) ApplyConfig ¶
func (_e *MockStore_Expecter) ApplyConfig(ctx any, c any) *MockStore_ApplyConfig_Call
ApplyConfig is a helper method to define mock.On call
- ctx context.Context
- c storage.ConfigChange
func (*MockStore_Expecter) ConfigState ¶
func (_e *MockStore_Expecter) ConfigState(ctx any) *MockStore_ConfigState_Call
ConfigState is a helper method to define mock.On call
- ctx context.Context