Documentation
¶
Index ¶
- type MockBackend
- func (_mock *MockBackend) Available() bool
- func (_mock *MockBackend) Delete(ctx context.Context, service string, account string) error
- func (_m *MockBackend) EXPECT() *MockBackend_Expecter
- func (_mock *MockBackend) Retrieve(ctx context.Context, service string, account string) (string, error)
- func (_mock *MockBackend) Store(ctx context.Context, service string, account string, secret string) error
- type MockBackend_Available_Call
- type MockBackend_Delete_Call
- func (_c *MockBackend_Delete_Call) Return(err error) *MockBackend_Delete_Call
- func (_c *MockBackend_Delete_Call) Run(run func(ctx context.Context, service string, account string)) *MockBackend_Delete_Call
- func (_c *MockBackend_Delete_Call) RunAndReturn(run func(ctx context.Context, service string, account string) error) *MockBackend_Delete_Call
- type MockBackend_Expecter
- func (_e *MockBackend_Expecter) Available() *MockBackend_Available_Call
- func (_e *MockBackend_Expecter) Delete(ctx interface{}, service interface{}, account interface{}) *MockBackend_Delete_Call
- func (_e *MockBackend_Expecter) Retrieve(ctx interface{}, service interface{}, account interface{}) *MockBackend_Retrieve_Call
- func (_e *MockBackend_Expecter) Store(ctx interface{}, service interface{}, account interface{}, secret interface{}) *MockBackend_Store_Call
- type MockBackend_Retrieve_Call
- func (_c *MockBackend_Retrieve_Call) Return(s string, err error) *MockBackend_Retrieve_Call
- func (_c *MockBackend_Retrieve_Call) Run(run func(ctx context.Context, service string, account string)) *MockBackend_Retrieve_Call
- func (_c *MockBackend_Retrieve_Call) RunAndReturn(run func(ctx context.Context, service string, account string) (string, error)) *MockBackend_Retrieve_Call
- type MockBackend_Store_Call
- type MockKeyWriter
- type MockKeyWriter_Expecter
- type MockKeyWriter_Set_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockBackend ¶
MockBackend is an autogenerated mock type for the Backend type
func NewMockBackend ¶
func NewMockBackend(t interface {
mock.TestingT
Cleanup(func())
}) *MockBackend
NewMockBackend creates a new instance of MockBackend. 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 (*MockBackend) Available ¶
func (_mock *MockBackend) Available() bool
Available provides a mock function for the type MockBackend
func (*MockBackend) EXPECT ¶
func (_m *MockBackend) EXPECT() *MockBackend_Expecter
type MockBackend_Available_Call ¶
MockBackend_Available_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Available'
func (*MockBackend_Available_Call) Return ¶
func (_c *MockBackend_Available_Call) Return(b bool) *MockBackend_Available_Call
func (*MockBackend_Available_Call) Run ¶
func (_c *MockBackend_Available_Call) Run(run func()) *MockBackend_Available_Call
func (*MockBackend_Available_Call) RunAndReturn ¶
func (_c *MockBackend_Available_Call) RunAndReturn(run func() bool) *MockBackend_Available_Call
type MockBackend_Delete_Call ¶
MockBackend_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*MockBackend_Delete_Call) Return ¶
func (_c *MockBackend_Delete_Call) Return(err error) *MockBackend_Delete_Call
func (*MockBackend_Delete_Call) Run ¶
func (_c *MockBackend_Delete_Call) Run(run func(ctx context.Context, service string, account string)) *MockBackend_Delete_Call
func (*MockBackend_Delete_Call) RunAndReturn ¶
func (_c *MockBackend_Delete_Call) RunAndReturn(run func(ctx context.Context, service string, account string) error) *MockBackend_Delete_Call
type MockBackend_Expecter ¶
type MockBackend_Expecter struct {
// contains filtered or unexported fields
}
func (*MockBackend_Expecter) Available ¶
func (_e *MockBackend_Expecter) Available() *MockBackend_Available_Call
Available is a helper method to define mock.On call
func (*MockBackend_Expecter) Delete ¶
func (_e *MockBackend_Expecter) Delete(ctx interface{}, service interface{}, account interface{}) *MockBackend_Delete_Call
Delete is a helper method to define mock.On call
- ctx context.Context
- service string
- account string
func (*MockBackend_Expecter) Retrieve ¶
func (_e *MockBackend_Expecter) Retrieve(ctx interface{}, service interface{}, account interface{}) *MockBackend_Retrieve_Call
Retrieve is a helper method to define mock.On call
- ctx context.Context
- service string
- account string
func (*MockBackend_Expecter) Store ¶
func (_e *MockBackend_Expecter) Store(ctx interface{}, service interface{}, account interface{}, secret interface{}) *MockBackend_Store_Call
Store is a helper method to define mock.On call
- ctx context.Context
- service string
- account string
- secret string
type MockBackend_Retrieve_Call ¶
MockBackend_Retrieve_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Retrieve'
func (*MockBackend_Retrieve_Call) Return ¶
func (_c *MockBackend_Retrieve_Call) Return(s string, err error) *MockBackend_Retrieve_Call
func (*MockBackend_Retrieve_Call) Run ¶
func (_c *MockBackend_Retrieve_Call) Run(run func(ctx context.Context, service string, account string)) *MockBackend_Retrieve_Call
func (*MockBackend_Retrieve_Call) RunAndReturn ¶
func (_c *MockBackend_Retrieve_Call) RunAndReturn(run func(ctx context.Context, service string, account string) (string, error)) *MockBackend_Retrieve_Call
type MockBackend_Store_Call ¶
MockBackend_Store_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Store'
func (*MockBackend_Store_Call) Return ¶
func (_c *MockBackend_Store_Call) Return(err error) *MockBackend_Store_Call
func (*MockBackend_Store_Call) Run ¶
func (_c *MockBackend_Store_Call) Run(run func(ctx context.Context, service string, account string, secret string)) *MockBackend_Store_Call
func (*MockBackend_Store_Call) RunAndReturn ¶
func (_c *MockBackend_Store_Call) RunAndReturn(run func(ctx context.Context, service string, account string, secret string) error) *MockBackend_Store_Call
type MockKeyWriter ¶
MockKeyWriter is an autogenerated mock type for the KeyWriter type
func NewMockKeyWriter ¶
func NewMockKeyWriter(t interface {
mock.TestingT
Cleanup(func())
}) *MockKeyWriter
NewMockKeyWriter creates a new instance of MockKeyWriter. 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 (*MockKeyWriter) EXPECT ¶
func (_m *MockKeyWriter) EXPECT() *MockKeyWriter_Expecter
func (*MockKeyWriter) Set ¶
func (_mock *MockKeyWriter) Set(key string, value any)
Set provides a mock function for the type MockKeyWriter
type MockKeyWriter_Expecter ¶
type MockKeyWriter_Expecter struct {
// contains filtered or unexported fields
}
func (*MockKeyWriter_Expecter) Set ¶
func (_e *MockKeyWriter_Expecter) Set(key interface{}, value interface{}) *MockKeyWriter_Set_Call
Set is a helper method to define mock.On call
- key string
- value any
type MockKeyWriter_Set_Call ¶
MockKeyWriter_Set_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Set'
func (*MockKeyWriter_Set_Call) Return ¶
func (_c *MockKeyWriter_Set_Call) Return() *MockKeyWriter_Set_Call
func (*MockKeyWriter_Set_Call) Run ¶
func (_c *MockKeyWriter_Set_Call) Run(run func(key string, value any)) *MockKeyWriter_Set_Call
func (*MockKeyWriter_Set_Call) RunAndReturn ¶
func (_c *MockKeyWriter_Set_Call) RunAndReturn(run func(key string, value any)) *MockKeyWriter_Set_Call