Documentation
¶
Index ¶
- type MockKekUseCase
- type MockKekUseCase_Create_Call
- func (_c *MockKekUseCase_Create_Call) Return(err error) *MockKekUseCase_Create_Call
- func (_c *MockKekUseCase_Create_Call) Run(run func(ctx context.Context, masterKeyChain *keyring.MasterKeyChain, ...)) *MockKekUseCase_Create_Call
- func (_c *MockKekUseCase_Create_Call) RunAndReturn(run func(context.Context, *keyring.MasterKeyChain, keyring.Algorithm) error) *MockKekUseCase_Create_Call
- type MockKekUseCase_Expecter
- type MockKekUseCase_Rotate_Call
- func (_c *MockKekUseCase_Rotate_Call) Return(err error) *MockKekUseCase_Rotate_Call
- func (_c *MockKekUseCase_Rotate_Call) Run(run func(ctx context.Context, masterKeyChain *keyring.MasterKeyChain, ...)) *MockKekUseCase_Rotate_Call
- func (_c *MockKekUseCase_Rotate_Call) RunAndReturn(run func(context.Context, *keyring.MasterKeyChain, keyring.Algorithm) error) *MockKekUseCase_Rotate_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockKekUseCase ¶
func NewMockKekUseCase ¶
func NewMockKekUseCase(t interface {
mock.TestingT
Cleanup(func())
}) *MockKekUseCase
func (*MockKekUseCase) Create ¶
func (_mock *MockKekUseCase) Create(ctx context.Context, masterKeyChain *keyring.MasterKeyChain, alg keyring.Algorithm) error
Create provides a mock function for the type MockKekUseCase
func (*MockKekUseCase) EXPECT ¶
func (_m *MockKekUseCase) EXPECT() *MockKekUseCase_Expecter
func (*MockKekUseCase) Rotate ¶
func (_mock *MockKekUseCase) Rotate(ctx context.Context, masterKeyChain *keyring.MasterKeyChain, alg keyring.Algorithm) error
Rotate provides a mock function for the type MockKekUseCase
type MockKekUseCase_Create_Call ¶
func (*MockKekUseCase_Create_Call) Return ¶
func (_c *MockKekUseCase_Create_Call) Return(err error) *MockKekUseCase_Create_Call
func (*MockKekUseCase_Create_Call) Run ¶
func (_c *MockKekUseCase_Create_Call) Run(run func(ctx context.Context, masterKeyChain *keyring.MasterKeyChain, alg keyring.Algorithm)) *MockKekUseCase_Create_Call
func (*MockKekUseCase_Create_Call) RunAndReturn ¶
func (_c *MockKekUseCase_Create_Call) RunAndReturn(run func(context.Context, *keyring.MasterKeyChain, keyring.Algorithm) error) *MockKekUseCase_Create_Call
type MockKekUseCase_Expecter ¶
type MockKekUseCase_Expecter struct {
// contains filtered or unexported fields
}
func (*MockKekUseCase_Expecter) Create ¶
func (_e *MockKekUseCase_Expecter) Create(ctx interface{}, masterKeyChain interface{}, alg interface{}) *MockKekUseCase_Create_Call
func (*MockKekUseCase_Expecter) Rotate ¶
func (_e *MockKekUseCase_Expecter) Rotate(ctx interface{}, masterKeyChain interface{}, alg interface{}) *MockKekUseCase_Rotate_Call
type MockKekUseCase_Rotate_Call ¶
func (*MockKekUseCase_Rotate_Call) Return ¶
func (_c *MockKekUseCase_Rotate_Call) Return(err error) *MockKekUseCase_Rotate_Call
func (*MockKekUseCase_Rotate_Call) Run ¶
func (_c *MockKekUseCase_Rotate_Call) Run(run func(ctx context.Context, masterKeyChain *keyring.MasterKeyChain, alg keyring.Algorithm)) *MockKekUseCase_Rotate_Call
func (*MockKekUseCase_Rotate_Call) RunAndReturn ¶
func (_c *MockKekUseCase_Rotate_Call) RunAndReturn(run func(context.Context, *keyring.MasterKeyChain, keyring.Algorithm) error) *MockKekUseCase_Rotate_Call
Click to show internal directories.
Click to hide internal directories.