Documentation
¶
Index ¶
- type MockAnalyzer
- func (_mock *MockAnalyzer) AddRule(r rules.Rule)
- func (_m *MockAnalyzer) EXPECT() *MockAnalyzer_Expecter
- func (_mock *MockAnalyzer) Errors() []string
- func (_mock *MockAnalyzer) KnownRoles() []string
- func (_mock *MockAnalyzer) MatchesRule(ri *rules.RequestInfo) *rules.Rule
- func (_mock *MockAnalyzer) Rules() []rules.Rule
- func (_mock *MockAnalyzer) WriteConfig() error
- type MockAnalyzer_AddRule_Call
- type MockAnalyzer_Errors_Call
- type MockAnalyzer_Expecter
- func (_e *MockAnalyzer_Expecter) AddRule(r interface{}) *MockAnalyzer_AddRule_Call
- func (_e *MockAnalyzer_Expecter) Errors() *MockAnalyzer_Errors_Call
- func (_e *MockAnalyzer_Expecter) KnownRoles() *MockAnalyzer_KnownRoles_Call
- func (_e *MockAnalyzer_Expecter) MatchesRule(ri interface{}) *MockAnalyzer_MatchesRule_Call
- func (_e *MockAnalyzer_Expecter) Rules() *MockAnalyzer_Rules_Call
- func (_e *MockAnalyzer_Expecter) WriteConfig() *MockAnalyzer_WriteConfig_Call
- type MockAnalyzer_KnownRoles_Call
- type MockAnalyzer_MatchesRule_Call
- func (_c *MockAnalyzer_MatchesRule_Call) Return(rule *rules.Rule) *MockAnalyzer_MatchesRule_Call
- func (_c *MockAnalyzer_MatchesRule_Call) Run(run func(ri *rules.RequestInfo)) *MockAnalyzer_MatchesRule_Call
- func (_c *MockAnalyzer_MatchesRule_Call) RunAndReturn(run func(ri *rules.RequestInfo) *rules.Rule) *MockAnalyzer_MatchesRule_Call
- type MockAnalyzer_Rules_Call
- type MockAnalyzer_WriteConfig_Call
- type MockDB
- func (_mock *MockDB) Close() error
- func (_mock *MockDB) CreateUser(ctx context.Context, user1 *user.User) error
- func (_mock *MockDB) DeleteKey(ctx context.Context, keyID string) error
- func (_mock *MockDB) DeleteUser(ctx context.Context, userId string) error
- func (_m *MockDB) EXPECT() *MockDB_Expecter
- func (_mock *MockDB) FindKeyById(ctx context.Context, keyID string) (user.Passkey, error)
- func (_mock *MockDB) FindUserByCredentialInfo(ctx context.Context, rid []byte, handle []byte) (*user.User, error)
- func (_mock *MockDB) GetAllUsers(ctx context.Context) ([]*user.AdminListUser, error)
- func (_mock *MockDB) GetUserByGuid(ctx context.Context, guid string) (*user.User, error)
- func (_mock *MockDB) GetUserByUsername(ctx context.Context, username string) (*user.User, error)
- func (_mock *MockDB) NeedsSetup(ctx context.Context) (bool, error)
- func (_mock *MockDB) SaveCredentialForUser(ctx context.Context, userId string, credential *webauthn.Credential) error
- func (_mock *MockDB) SaveUser(ctx context.Context, user1 *user.User) error
- func (_mock *MockDB) SetUserEnabled(ctx context.Context, userId string, enabled bool) error
- func (_mock *MockDB) UpdateCredentialOnLogin(ctx context.Context, credential *webauthn.Credential) error
- func (_mock *MockDB) UpdateKeyName(ctx context.Context, keyID string, name *string) error
- func (_mock *MockDB) UpdatePassword(ctx context.Context, user1 *user.User) error
- func (_mock *MockDB) UpdateTOTPSeed(ctx context.Context, userID string, secret string) error
- type MockDB_Close_Call
- type MockDB_CreateUser_Call
- func (_c *MockDB_CreateUser_Call) Return(err error) *MockDB_CreateUser_Call
- func (_c *MockDB_CreateUser_Call) Run(run func(ctx context.Context, user1 *user.User)) *MockDB_CreateUser_Call
- func (_c *MockDB_CreateUser_Call) RunAndReturn(run func(ctx context.Context, user1 *user.User) error) *MockDB_CreateUser_Call
- type MockDB_DeleteKey_Call
- type MockDB_DeleteUser_Call
- func (_c *MockDB_DeleteUser_Call) Return(err error) *MockDB_DeleteUser_Call
- func (_c *MockDB_DeleteUser_Call) Run(run func(ctx context.Context, userId string)) *MockDB_DeleteUser_Call
- func (_c *MockDB_DeleteUser_Call) RunAndReturn(run func(ctx context.Context, userId string) error) *MockDB_DeleteUser_Call
- type MockDB_Expecter
- func (_e *MockDB_Expecter) Close() *MockDB_Close_Call
- func (_e *MockDB_Expecter) CreateUser(ctx interface{}, user1 interface{}) *MockDB_CreateUser_Call
- func (_e *MockDB_Expecter) DeleteKey(ctx interface{}, keyID interface{}) *MockDB_DeleteKey_Call
- func (_e *MockDB_Expecter) DeleteUser(ctx interface{}, userId interface{}) *MockDB_DeleteUser_Call
- func (_e *MockDB_Expecter) FindKeyById(ctx interface{}, keyID interface{}) *MockDB_FindKeyById_Call
- func (_e *MockDB_Expecter) FindUserByCredentialInfo(ctx interface{}, rid interface{}, handle interface{}) *MockDB_FindUserByCredentialInfo_Call
- func (_e *MockDB_Expecter) GetAllUsers(ctx interface{}) *MockDB_GetAllUsers_Call
- func (_e *MockDB_Expecter) GetUserByGuid(ctx interface{}, guid interface{}) *MockDB_GetUserByGuid_Call
- func (_e *MockDB_Expecter) GetUserByUsername(ctx interface{}, username interface{}) *MockDB_GetUserByUsername_Call
- func (_e *MockDB_Expecter) NeedsSetup(ctx interface{}) *MockDB_NeedsSetup_Call
- func (_e *MockDB_Expecter) SaveCredentialForUser(ctx interface{}, userId interface{}, credential interface{}) *MockDB_SaveCredentialForUser_Call
- func (_e *MockDB_Expecter) SaveUser(ctx interface{}, user1 interface{}) *MockDB_SaveUser_Call
- func (_e *MockDB_Expecter) SetUserEnabled(ctx interface{}, userId interface{}, enabled interface{}) *MockDB_SetUserEnabled_Call
- func (_e *MockDB_Expecter) UpdateCredentialOnLogin(ctx interface{}, credential interface{}) *MockDB_UpdateCredentialOnLogin_Call
- func (_e *MockDB_Expecter) UpdateKeyName(ctx interface{}, keyID interface{}, name interface{}) *MockDB_UpdateKeyName_Call
- func (_e *MockDB_Expecter) UpdatePassword(ctx interface{}, user1 interface{}) *MockDB_UpdatePassword_Call
- func (_e *MockDB_Expecter) UpdateTOTPSeed(ctx interface{}, userID interface{}, secret interface{}) *MockDB_UpdateTOTPSeed_Call
- type MockDB_FindKeyById_Call
- func (_c *MockDB_FindKeyById_Call) Return(passkey user.Passkey, err error) *MockDB_FindKeyById_Call
- func (_c *MockDB_FindKeyById_Call) Run(run func(ctx context.Context, keyID string)) *MockDB_FindKeyById_Call
- func (_c *MockDB_FindKeyById_Call) RunAndReturn(run func(ctx context.Context, keyID string) (user.Passkey, error)) *MockDB_FindKeyById_Call
- type MockDB_FindUserByCredentialInfo_Call
- func (_c *MockDB_FindUserByCredentialInfo_Call) Return(user1 *user.User, err error) *MockDB_FindUserByCredentialInfo_Call
- func (_c *MockDB_FindUserByCredentialInfo_Call) Run(run func(ctx context.Context, rid []byte, handle []byte)) *MockDB_FindUserByCredentialInfo_Call
- func (_c *MockDB_FindUserByCredentialInfo_Call) RunAndReturn(run func(ctx context.Context, rid []byte, handle []byte) (*user.User, error)) *MockDB_FindUserByCredentialInfo_Call
- type MockDB_GetAllUsers_Call
- func (_c *MockDB_GetAllUsers_Call) Return(adminListUsers []*user.AdminListUser, err error) *MockDB_GetAllUsers_Call
- func (_c *MockDB_GetAllUsers_Call) Run(run func(ctx context.Context)) *MockDB_GetAllUsers_Call
- func (_c *MockDB_GetAllUsers_Call) RunAndReturn(run func(ctx context.Context) ([]*user.AdminListUser, error)) *MockDB_GetAllUsers_Call
- type MockDB_GetUserByGuid_Call
- func (_c *MockDB_GetUserByGuid_Call) Return(user1 *user.User, err error) *MockDB_GetUserByGuid_Call
- func (_c *MockDB_GetUserByGuid_Call) Run(run func(ctx context.Context, guid string)) *MockDB_GetUserByGuid_Call
- func (_c *MockDB_GetUserByGuid_Call) RunAndReturn(run func(ctx context.Context, guid string) (*user.User, error)) *MockDB_GetUserByGuid_Call
- type MockDB_GetUserByUsername_Call
- func (_c *MockDB_GetUserByUsername_Call) Return(user1 *user.User, err error) *MockDB_GetUserByUsername_Call
- func (_c *MockDB_GetUserByUsername_Call) Run(run func(ctx context.Context, username string)) *MockDB_GetUserByUsername_Call
- func (_c *MockDB_GetUserByUsername_Call) RunAndReturn(run func(ctx context.Context, username string) (*user.User, error)) *MockDB_GetUserByUsername_Call
- type MockDB_NeedsSetup_Call
- type MockDB_SaveCredentialForUser_Call
- func (_c *MockDB_SaveCredentialForUser_Call) Return(err error) *MockDB_SaveCredentialForUser_Call
- func (_c *MockDB_SaveCredentialForUser_Call) Run(run func(ctx context.Context, userId string, credential *webauthn.Credential)) *MockDB_SaveCredentialForUser_Call
- func (_c *MockDB_SaveCredentialForUser_Call) RunAndReturn(...) *MockDB_SaveCredentialForUser_Call
- type MockDB_SaveUser_Call
- func (_c *MockDB_SaveUser_Call) Return(err error) *MockDB_SaveUser_Call
- func (_c *MockDB_SaveUser_Call) Run(run func(ctx context.Context, user1 *user.User)) *MockDB_SaveUser_Call
- func (_c *MockDB_SaveUser_Call) RunAndReturn(run func(ctx context.Context, user1 *user.User) error) *MockDB_SaveUser_Call
- type MockDB_SetUserEnabled_Call
- func (_c *MockDB_SetUserEnabled_Call) Return(err error) *MockDB_SetUserEnabled_Call
- func (_c *MockDB_SetUserEnabled_Call) Run(run func(ctx context.Context, userId string, enabled bool)) *MockDB_SetUserEnabled_Call
- func (_c *MockDB_SetUserEnabled_Call) RunAndReturn(run func(ctx context.Context, userId string, enabled bool) error) *MockDB_SetUserEnabled_Call
- type MockDB_UpdateCredentialOnLogin_Call
- func (_c *MockDB_UpdateCredentialOnLogin_Call) Return(err error) *MockDB_UpdateCredentialOnLogin_Call
- func (_c *MockDB_UpdateCredentialOnLogin_Call) Run(run func(ctx context.Context, credential *webauthn.Credential)) *MockDB_UpdateCredentialOnLogin_Call
- func (_c *MockDB_UpdateCredentialOnLogin_Call) RunAndReturn(run func(ctx context.Context, credential *webauthn.Credential) error) *MockDB_UpdateCredentialOnLogin_Call
- type MockDB_UpdateKeyName_Call
- func (_c *MockDB_UpdateKeyName_Call) Return(err error) *MockDB_UpdateKeyName_Call
- func (_c *MockDB_UpdateKeyName_Call) Run(run func(ctx context.Context, keyID string, name *string)) *MockDB_UpdateKeyName_Call
- func (_c *MockDB_UpdateKeyName_Call) RunAndReturn(run func(ctx context.Context, keyID string, name *string) error) *MockDB_UpdateKeyName_Call
- type MockDB_UpdatePassword_Call
- func (_c *MockDB_UpdatePassword_Call) Return(err error) *MockDB_UpdatePassword_Call
- func (_c *MockDB_UpdatePassword_Call) Run(run func(ctx context.Context, user1 *user.User)) *MockDB_UpdatePassword_Call
- func (_c *MockDB_UpdatePassword_Call) RunAndReturn(run func(ctx context.Context, user1 *user.User) error) *MockDB_UpdatePassword_Call
- type MockDB_UpdateTOTPSeed_Call
- func (_c *MockDB_UpdateTOTPSeed_Call) Return(err error) *MockDB_UpdateTOTPSeed_Call
- func (_c *MockDB_UpdateTOTPSeed_Call) Run(run func(ctx context.Context, userID string, secret string)) *MockDB_UpdateTOTPSeed_Call
- func (_c *MockDB_UpdateTOTPSeed_Call) RunAndReturn(run func(ctx context.Context, userID string, secret string) error) *MockDB_UpdateTOTPSeed_Call
- type MockDockerAPI
- func (_mock *MockDockerAPI) ClientVersion() string
- func (_mock *MockDockerAPI) Close() error
- func (_mock *MockDockerAPI) ContainerInspect(ctx context.Context, containerID string) (container.InspectResponse, error)
- func (_mock *MockDockerAPI) ContainerList(ctx context.Context, options container.ListOptions) ([]container.Summary, error)
- func (_mock *MockDockerAPI) DaemonHost() string
- func (_m *MockDockerAPI) EXPECT() *MockDockerAPI_Expecter
- func (_mock *MockDockerAPI) Events(ctx context.Context, options events.ListOptions) (<-chan events.Message, <-chan error)
- type MockDockerAPI_ClientVersion_Call
- type MockDockerAPI_Close_Call
- type MockDockerAPI_ContainerInspect_Call
- func (_c *MockDockerAPI_ContainerInspect_Call) Return(inspectResponse container.InspectResponse, err error) *MockDockerAPI_ContainerInspect_Call
- func (_c *MockDockerAPI_ContainerInspect_Call) Run(run func(ctx context.Context, containerID string)) *MockDockerAPI_ContainerInspect_Call
- func (_c *MockDockerAPI_ContainerInspect_Call) RunAndReturn(...) *MockDockerAPI_ContainerInspect_Call
- type MockDockerAPI_ContainerList_Call
- func (_c *MockDockerAPI_ContainerList_Call) Return(summarys []container.Summary, err error) *MockDockerAPI_ContainerList_Call
- func (_c *MockDockerAPI_ContainerList_Call) Run(run func(ctx context.Context, options container.ListOptions)) *MockDockerAPI_ContainerList_Call
- func (_c *MockDockerAPI_ContainerList_Call) RunAndReturn(...) *MockDockerAPI_ContainerList_Call
- type MockDockerAPI_DaemonHost_Call
- type MockDockerAPI_Events_Call
- func (_c *MockDockerAPI_Events_Call) Return(messageCh <-chan events.Message, errCh <-chan error) *MockDockerAPI_Events_Call
- func (_c *MockDockerAPI_Events_Call) Run(run func(ctx context.Context, options events.ListOptions)) *MockDockerAPI_Events_Call
- func (_c *MockDockerAPI_Events_Call) RunAndReturn(...) *MockDockerAPI_Events_Call
- type MockDockerAPI_Expecter
- func (_e *MockDockerAPI_Expecter) ClientVersion() *MockDockerAPI_ClientVersion_Call
- func (_e *MockDockerAPI_Expecter) Close() *MockDockerAPI_Close_Call
- func (_e *MockDockerAPI_Expecter) ContainerInspect(ctx interface{}, containerID interface{}) *MockDockerAPI_ContainerInspect_Call
- func (_e *MockDockerAPI_Expecter) ContainerList(ctx interface{}, options interface{}) *MockDockerAPI_ContainerList_Call
- func (_e *MockDockerAPI_Expecter) DaemonHost() *MockDockerAPI_DaemonHost_Call
- func (_e *MockDockerAPI_Expecter) Events(ctx interface{}, options interface{}) *MockDockerAPI_Events_Call
- type MockLoginLimiter
- type MockLoginLimiter_Expecter
- func (_e *MockLoginLimiter_Expecter) IsAccountLocked(key interface{}) *MockLoginLimiter_IsAccountLocked_Call
- func (_e *MockLoginLimiter_Expecter) MarkFailedAttempt(key interface{}) *MockLoginLimiter_MarkFailedAttempt_Call
- func (_e *MockLoginLimiter_Expecter) MarkSuccessfulAttempt(key interface{}) *MockLoginLimiter_MarkSuccessfulAttempt_Call
- type MockLoginLimiter_IsAccountLocked_Call
- func (_c *MockLoginLimiter_IsAccountLocked_Call) Return(b bool) *MockLoginLimiter_IsAccountLocked_Call
- func (_c *MockLoginLimiter_IsAccountLocked_Call) Run(run func(key string)) *MockLoginLimiter_IsAccountLocked_Call
- func (_c *MockLoginLimiter_IsAccountLocked_Call) RunAndReturn(run func(key string) bool) *MockLoginLimiter_IsAccountLocked_Call
- type MockLoginLimiter_MarkFailedAttempt_Call
- func (_c *MockLoginLimiter_MarkFailedAttempt_Call) Return(n int, err error) *MockLoginLimiter_MarkFailedAttempt_Call
- func (_c *MockLoginLimiter_MarkFailedAttempt_Call) Run(run func(key string)) *MockLoginLimiter_MarkFailedAttempt_Call
- func (_c *MockLoginLimiter_MarkFailedAttempt_Call) RunAndReturn(run func(key string) (int, error)) *MockLoginLimiter_MarkFailedAttempt_Call
- type MockLoginLimiter_MarkSuccessfulAttempt_Call
- func (_c *MockLoginLimiter_MarkSuccessfulAttempt_Call) Return() *MockLoginLimiter_MarkSuccessfulAttempt_Call
- func (_c *MockLoginLimiter_MarkSuccessfulAttempt_Call) Run(run func(key string)) *MockLoginLimiter_MarkSuccessfulAttempt_Call
- func (_c *MockLoginLimiter_MarkSuccessfulAttempt_Call) RunAndReturn(run func(key string)) *MockLoginLimiter_MarkSuccessfulAttempt_Call
- type MockPasswordValidator
- type MockPasswordValidator_Expecter
- type MockPasswordValidator_Validate_Call
- func (_c *MockPasswordValidator_Validate_Call) Return(user1 *user.User, err error) *MockPasswordValidator_Validate_Call
- func (_c *MockPasswordValidator_Validate_Call) Run(...) *MockPasswordValidator_Validate_Call
- func (_c *MockPasswordValidator_Validate_Call) RunAndReturn(...) *MockPasswordValidator_Validate_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockAnalyzer ¶
MockAnalyzer is an autogenerated mock type for the Analyzer type
func NewMockAnalyzer ¶
func NewMockAnalyzer(t interface {
mock.TestingT
Cleanup(func())
}) *MockAnalyzer
NewMockAnalyzer creates a new instance of MockAnalyzer. 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 (*MockAnalyzer) AddRule ¶
func (_mock *MockAnalyzer) AddRule(r rules.Rule)
AddRule provides a mock function for the type MockAnalyzer
func (*MockAnalyzer) EXPECT ¶
func (_m *MockAnalyzer) EXPECT() *MockAnalyzer_Expecter
func (*MockAnalyzer) Errors ¶
func (_mock *MockAnalyzer) Errors() []string
Errors provides a mock function for the type MockAnalyzer
func (*MockAnalyzer) KnownRoles ¶
func (_mock *MockAnalyzer) KnownRoles() []string
KnownRoles provides a mock function for the type MockAnalyzer
func (*MockAnalyzer) MatchesRule ¶
func (_mock *MockAnalyzer) MatchesRule(ri *rules.RequestInfo) *rules.Rule
MatchesRule provides a mock function for the type MockAnalyzer
func (*MockAnalyzer) Rules ¶
func (_mock *MockAnalyzer) Rules() []rules.Rule
Rules provides a mock function for the type MockAnalyzer
func (*MockAnalyzer) WriteConfig ¶
func (_mock *MockAnalyzer) WriteConfig() error
WriteConfig provides a mock function for the type MockAnalyzer
type MockAnalyzer_AddRule_Call ¶
MockAnalyzer_AddRule_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddRule'
func (*MockAnalyzer_AddRule_Call) Return ¶
func (_c *MockAnalyzer_AddRule_Call) Return() *MockAnalyzer_AddRule_Call
func (*MockAnalyzer_AddRule_Call) Run ¶
func (_c *MockAnalyzer_AddRule_Call) Run(run func(r rules.Rule)) *MockAnalyzer_AddRule_Call
func (*MockAnalyzer_AddRule_Call) RunAndReturn ¶
func (_c *MockAnalyzer_AddRule_Call) RunAndReturn(run func(r rules.Rule)) *MockAnalyzer_AddRule_Call
type MockAnalyzer_Errors_Call ¶
MockAnalyzer_Errors_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Errors'
func (*MockAnalyzer_Errors_Call) Return ¶
func (_c *MockAnalyzer_Errors_Call) Return(strings []string) *MockAnalyzer_Errors_Call
func (*MockAnalyzer_Errors_Call) Run ¶
func (_c *MockAnalyzer_Errors_Call) Run(run func()) *MockAnalyzer_Errors_Call
func (*MockAnalyzer_Errors_Call) RunAndReturn ¶
func (_c *MockAnalyzer_Errors_Call) RunAndReturn(run func() []string) *MockAnalyzer_Errors_Call
type MockAnalyzer_Expecter ¶
type MockAnalyzer_Expecter struct {
// contains filtered or unexported fields
}
func (*MockAnalyzer_Expecter) AddRule ¶
func (_e *MockAnalyzer_Expecter) AddRule(r interface{}) *MockAnalyzer_AddRule_Call
AddRule is a helper method to define mock.On call
- r rules.Rule
func (*MockAnalyzer_Expecter) Errors ¶
func (_e *MockAnalyzer_Expecter) Errors() *MockAnalyzer_Errors_Call
Errors is a helper method to define mock.On call
func (*MockAnalyzer_Expecter) KnownRoles ¶
func (_e *MockAnalyzer_Expecter) KnownRoles() *MockAnalyzer_KnownRoles_Call
KnownRoles is a helper method to define mock.On call
func (*MockAnalyzer_Expecter) MatchesRule ¶
func (_e *MockAnalyzer_Expecter) MatchesRule(ri interface{}) *MockAnalyzer_MatchesRule_Call
MatchesRule is a helper method to define mock.On call
- ri *rules.RequestInfo
func (*MockAnalyzer_Expecter) Rules ¶
func (_e *MockAnalyzer_Expecter) Rules() *MockAnalyzer_Rules_Call
Rules is a helper method to define mock.On call
func (*MockAnalyzer_Expecter) WriteConfig ¶
func (_e *MockAnalyzer_Expecter) WriteConfig() *MockAnalyzer_WriteConfig_Call
WriteConfig is a helper method to define mock.On call
type MockAnalyzer_KnownRoles_Call ¶
MockAnalyzer_KnownRoles_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'KnownRoles'
func (*MockAnalyzer_KnownRoles_Call) Return ¶
func (_c *MockAnalyzer_KnownRoles_Call) Return(strings []string) *MockAnalyzer_KnownRoles_Call
func (*MockAnalyzer_KnownRoles_Call) Run ¶
func (_c *MockAnalyzer_KnownRoles_Call) Run(run func()) *MockAnalyzer_KnownRoles_Call
func (*MockAnalyzer_KnownRoles_Call) RunAndReturn ¶
func (_c *MockAnalyzer_KnownRoles_Call) RunAndReturn(run func() []string) *MockAnalyzer_KnownRoles_Call
type MockAnalyzer_MatchesRule_Call ¶
MockAnalyzer_MatchesRule_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MatchesRule'
func (*MockAnalyzer_MatchesRule_Call) Return ¶
func (_c *MockAnalyzer_MatchesRule_Call) Return(rule *rules.Rule) *MockAnalyzer_MatchesRule_Call
func (*MockAnalyzer_MatchesRule_Call) Run ¶
func (_c *MockAnalyzer_MatchesRule_Call) Run(run func(ri *rules.RequestInfo)) *MockAnalyzer_MatchesRule_Call
func (*MockAnalyzer_MatchesRule_Call) RunAndReturn ¶
func (_c *MockAnalyzer_MatchesRule_Call) RunAndReturn(run func(ri *rules.RequestInfo) *rules.Rule) *MockAnalyzer_MatchesRule_Call
type MockAnalyzer_Rules_Call ¶
MockAnalyzer_Rules_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Rules'
func (*MockAnalyzer_Rules_Call) Return ¶
func (_c *MockAnalyzer_Rules_Call) Return(rules1 []rules.Rule) *MockAnalyzer_Rules_Call
func (*MockAnalyzer_Rules_Call) Run ¶
func (_c *MockAnalyzer_Rules_Call) Run(run func()) *MockAnalyzer_Rules_Call
func (*MockAnalyzer_Rules_Call) RunAndReturn ¶
func (_c *MockAnalyzer_Rules_Call) RunAndReturn(run func() []rules.Rule) *MockAnalyzer_Rules_Call
type MockAnalyzer_WriteConfig_Call ¶
MockAnalyzer_WriteConfig_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WriteConfig'
func (*MockAnalyzer_WriteConfig_Call) Return ¶
func (_c *MockAnalyzer_WriteConfig_Call) Return(err error) *MockAnalyzer_WriteConfig_Call
func (*MockAnalyzer_WriteConfig_Call) Run ¶
func (_c *MockAnalyzer_WriteConfig_Call) Run(run func()) *MockAnalyzer_WriteConfig_Call
func (*MockAnalyzer_WriteConfig_Call) RunAndReturn ¶
func (_c *MockAnalyzer_WriteConfig_Call) RunAndReturn(run func() error) *MockAnalyzer_WriteConfig_Call
type MockDB ¶
MockDB is an autogenerated mock type for the DB type
func NewMockDB ¶
NewMockDB creates a new instance of MockDB. 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 (*MockDB) CreateUser ¶
CreateUser provides a mock function for the type MockDB
func (*MockDB) DeleteUser ¶
DeleteUser provides a mock function for the type MockDB
func (*MockDB) EXPECT ¶
func (_m *MockDB) EXPECT() *MockDB_Expecter
func (*MockDB) FindKeyById ¶
FindKeyById provides a mock function for the type MockDB
func (*MockDB) FindUserByCredentialInfo ¶
func (_mock *MockDB) FindUserByCredentialInfo(ctx context.Context, rid []byte, handle []byte) (*user.User, error)
FindUserByCredentialInfo provides a mock function for the type MockDB
func (*MockDB) GetAllUsers ¶
GetAllUsers provides a mock function for the type MockDB
func (*MockDB) GetUserByGuid ¶
GetUserByGuid provides a mock function for the type MockDB
func (*MockDB) GetUserByUsername ¶
GetUserByUsername provides a mock function for the type MockDB
func (*MockDB) NeedsSetup ¶
NeedsSetup provides a mock function for the type MockDB
func (*MockDB) SaveCredentialForUser ¶
func (_mock *MockDB) SaveCredentialForUser(ctx context.Context, userId string, credential *webauthn.Credential) error
SaveCredentialForUser provides a mock function for the type MockDB
func (*MockDB) SetUserEnabled ¶
SetUserEnabled provides a mock function for the type MockDB
func (*MockDB) UpdateCredentialOnLogin ¶
func (_mock *MockDB) UpdateCredentialOnLogin(ctx context.Context, credential *webauthn.Credential) error
UpdateCredentialOnLogin provides a mock function for the type MockDB
func (*MockDB) UpdateKeyName ¶
UpdateKeyName provides a mock function for the type MockDB
func (*MockDB) UpdatePassword ¶
UpdatePassword provides a mock function for the type MockDB
type MockDB_Close_Call ¶
MockDB_Close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Close'
func (*MockDB_Close_Call) Return ¶
func (_c *MockDB_Close_Call) Return(err error) *MockDB_Close_Call
func (*MockDB_Close_Call) Run ¶
func (_c *MockDB_Close_Call) Run(run func()) *MockDB_Close_Call
func (*MockDB_Close_Call) RunAndReturn ¶
func (_c *MockDB_Close_Call) RunAndReturn(run func() error) *MockDB_Close_Call
type MockDB_CreateUser_Call ¶
MockDB_CreateUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateUser'
func (*MockDB_CreateUser_Call) Return ¶
func (_c *MockDB_CreateUser_Call) Return(err error) *MockDB_CreateUser_Call
func (*MockDB_CreateUser_Call) Run ¶
func (_c *MockDB_CreateUser_Call) Run(run func(ctx context.Context, user1 *user.User)) *MockDB_CreateUser_Call
func (*MockDB_CreateUser_Call) RunAndReturn ¶
func (_c *MockDB_CreateUser_Call) RunAndReturn(run func(ctx context.Context, user1 *user.User) error) *MockDB_CreateUser_Call
type MockDB_DeleteKey_Call ¶
MockDB_DeleteKey_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteKey'
func (*MockDB_DeleteKey_Call) Return ¶
func (_c *MockDB_DeleteKey_Call) Return(err error) *MockDB_DeleteKey_Call
func (*MockDB_DeleteKey_Call) Run ¶
func (_c *MockDB_DeleteKey_Call) Run(run func(ctx context.Context, keyID string)) *MockDB_DeleteKey_Call
func (*MockDB_DeleteKey_Call) RunAndReturn ¶
func (_c *MockDB_DeleteKey_Call) RunAndReturn(run func(ctx context.Context, keyID string) error) *MockDB_DeleteKey_Call
type MockDB_DeleteUser_Call ¶
MockDB_DeleteUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteUser'
func (*MockDB_DeleteUser_Call) Return ¶
func (_c *MockDB_DeleteUser_Call) Return(err error) *MockDB_DeleteUser_Call
func (*MockDB_DeleteUser_Call) Run ¶
func (_c *MockDB_DeleteUser_Call) Run(run func(ctx context.Context, userId string)) *MockDB_DeleteUser_Call
func (*MockDB_DeleteUser_Call) RunAndReturn ¶
func (_c *MockDB_DeleteUser_Call) RunAndReturn(run func(ctx context.Context, userId string) error) *MockDB_DeleteUser_Call
type MockDB_Expecter ¶
type MockDB_Expecter struct {
// contains filtered or unexported fields
}
func (*MockDB_Expecter) Close ¶
func (_e *MockDB_Expecter) Close() *MockDB_Close_Call
Close is a helper method to define mock.On call
func (*MockDB_Expecter) CreateUser ¶
func (_e *MockDB_Expecter) CreateUser(ctx interface{}, user1 interface{}) *MockDB_CreateUser_Call
CreateUser is a helper method to define mock.On call
- ctx context.Context
- user1 *user.User
func (*MockDB_Expecter) DeleteKey ¶
func (_e *MockDB_Expecter) DeleteKey(ctx interface{}, keyID interface{}) *MockDB_DeleteKey_Call
DeleteKey is a helper method to define mock.On call
- ctx context.Context
- keyID string
func (*MockDB_Expecter) DeleteUser ¶
func (_e *MockDB_Expecter) DeleteUser(ctx interface{}, userId interface{}) *MockDB_DeleteUser_Call
DeleteUser is a helper method to define mock.On call
- ctx context.Context
- userId string
func (*MockDB_Expecter) FindKeyById ¶
func (_e *MockDB_Expecter) FindKeyById(ctx interface{}, keyID interface{}) *MockDB_FindKeyById_Call
FindKeyById is a helper method to define mock.On call
- ctx context.Context
- keyID string
func (*MockDB_Expecter) FindUserByCredentialInfo ¶
func (_e *MockDB_Expecter) FindUserByCredentialInfo(ctx interface{}, rid interface{}, handle interface{}) *MockDB_FindUserByCredentialInfo_Call
FindUserByCredentialInfo is a helper method to define mock.On call
- ctx context.Context
- rid []byte
- handle []byte
func (*MockDB_Expecter) GetAllUsers ¶
func (_e *MockDB_Expecter) GetAllUsers(ctx interface{}) *MockDB_GetAllUsers_Call
GetAllUsers is a helper method to define mock.On call
- ctx context.Context
func (*MockDB_Expecter) GetUserByGuid ¶
func (_e *MockDB_Expecter) GetUserByGuid(ctx interface{}, guid interface{}) *MockDB_GetUserByGuid_Call
GetUserByGuid is a helper method to define mock.On call
- ctx context.Context
- guid string
func (*MockDB_Expecter) GetUserByUsername ¶
func (_e *MockDB_Expecter) GetUserByUsername(ctx interface{}, username interface{}) *MockDB_GetUserByUsername_Call
GetUserByUsername is a helper method to define mock.On call
- ctx context.Context
- username string
func (*MockDB_Expecter) NeedsSetup ¶
func (_e *MockDB_Expecter) NeedsSetup(ctx interface{}) *MockDB_NeedsSetup_Call
NeedsSetup is a helper method to define mock.On call
- ctx context.Context
func (*MockDB_Expecter) SaveCredentialForUser ¶
func (_e *MockDB_Expecter) SaveCredentialForUser(ctx interface{}, userId interface{}, credential interface{}) *MockDB_SaveCredentialForUser_Call
SaveCredentialForUser is a helper method to define mock.On call
- ctx context.Context
- userId string
- credential *webauthn.Credential
func (*MockDB_Expecter) SaveUser ¶
func (_e *MockDB_Expecter) SaveUser(ctx interface{}, user1 interface{}) *MockDB_SaveUser_Call
SaveUser is a helper method to define mock.On call
- ctx context.Context
- user1 *user.User
func (*MockDB_Expecter) SetUserEnabled ¶
func (_e *MockDB_Expecter) SetUserEnabled(ctx interface{}, userId interface{}, enabled interface{}) *MockDB_SetUserEnabled_Call
SetUserEnabled is a helper method to define mock.On call
- ctx context.Context
- userId string
- enabled bool
func (*MockDB_Expecter) UpdateCredentialOnLogin ¶
func (_e *MockDB_Expecter) UpdateCredentialOnLogin(ctx interface{}, credential interface{}) *MockDB_UpdateCredentialOnLogin_Call
UpdateCredentialOnLogin is a helper method to define mock.On call
- ctx context.Context
- credential *webauthn.Credential
func (*MockDB_Expecter) UpdateKeyName ¶
func (_e *MockDB_Expecter) UpdateKeyName(ctx interface{}, keyID interface{}, name interface{}) *MockDB_UpdateKeyName_Call
UpdateKeyName is a helper method to define mock.On call
- ctx context.Context
- keyID string
- name *string
func (*MockDB_Expecter) UpdatePassword ¶
func (_e *MockDB_Expecter) UpdatePassword(ctx interface{}, user1 interface{}) *MockDB_UpdatePassword_Call
UpdatePassword is a helper method to define mock.On call
- ctx context.Context
- user1 *user.User
func (*MockDB_Expecter) UpdateTOTPSeed ¶
func (_e *MockDB_Expecter) UpdateTOTPSeed(ctx interface{}, userID interface{}, secret interface{}) *MockDB_UpdateTOTPSeed_Call
UpdateTOTPSeed is a helper method to define mock.On call
- ctx context.Context
- userID string
- secret string
type MockDB_FindKeyById_Call ¶
MockDB_FindKeyById_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindKeyById'
func (*MockDB_FindKeyById_Call) Return ¶
func (_c *MockDB_FindKeyById_Call) Return(passkey user.Passkey, err error) *MockDB_FindKeyById_Call
func (*MockDB_FindKeyById_Call) Run ¶
func (_c *MockDB_FindKeyById_Call) Run(run func(ctx context.Context, keyID string)) *MockDB_FindKeyById_Call
func (*MockDB_FindKeyById_Call) RunAndReturn ¶
func (_c *MockDB_FindKeyById_Call) RunAndReturn(run func(ctx context.Context, keyID string) (user.Passkey, error)) *MockDB_FindKeyById_Call
type MockDB_FindUserByCredentialInfo_Call ¶
MockDB_FindUserByCredentialInfo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindUserByCredentialInfo'
func (*MockDB_FindUserByCredentialInfo_Call) Return ¶
func (_c *MockDB_FindUserByCredentialInfo_Call) Return(user1 *user.User, err error) *MockDB_FindUserByCredentialInfo_Call
func (*MockDB_FindUserByCredentialInfo_Call) Run ¶
func (_c *MockDB_FindUserByCredentialInfo_Call) Run(run func(ctx context.Context, rid []byte, handle []byte)) *MockDB_FindUserByCredentialInfo_Call
func (*MockDB_FindUserByCredentialInfo_Call) RunAndReturn ¶
func (_c *MockDB_FindUserByCredentialInfo_Call) RunAndReturn(run func(ctx context.Context, rid []byte, handle []byte) (*user.User, error)) *MockDB_FindUserByCredentialInfo_Call
type MockDB_GetAllUsers_Call ¶
MockDB_GetAllUsers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllUsers'
func (*MockDB_GetAllUsers_Call) Return ¶
func (_c *MockDB_GetAllUsers_Call) Return(adminListUsers []*user.AdminListUser, err error) *MockDB_GetAllUsers_Call
func (*MockDB_GetAllUsers_Call) Run ¶
func (_c *MockDB_GetAllUsers_Call) Run(run func(ctx context.Context)) *MockDB_GetAllUsers_Call
func (*MockDB_GetAllUsers_Call) RunAndReturn ¶
func (_c *MockDB_GetAllUsers_Call) RunAndReturn(run func(ctx context.Context) ([]*user.AdminListUser, error)) *MockDB_GetAllUsers_Call
type MockDB_GetUserByGuid_Call ¶
MockDB_GetUserByGuid_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetUserByGuid'
func (*MockDB_GetUserByGuid_Call) Return ¶
func (_c *MockDB_GetUserByGuid_Call) Return(user1 *user.User, err error) *MockDB_GetUserByGuid_Call
func (*MockDB_GetUserByGuid_Call) Run ¶
func (_c *MockDB_GetUserByGuid_Call) Run(run func(ctx context.Context, guid string)) *MockDB_GetUserByGuid_Call
func (*MockDB_GetUserByGuid_Call) RunAndReturn ¶
func (_c *MockDB_GetUserByGuid_Call) RunAndReturn(run func(ctx context.Context, guid string) (*user.User, error)) *MockDB_GetUserByGuid_Call
type MockDB_GetUserByUsername_Call ¶
MockDB_GetUserByUsername_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetUserByUsername'
func (*MockDB_GetUserByUsername_Call) Return ¶
func (_c *MockDB_GetUserByUsername_Call) Return(user1 *user.User, err error) *MockDB_GetUserByUsername_Call
func (*MockDB_GetUserByUsername_Call) Run ¶
func (_c *MockDB_GetUserByUsername_Call) Run(run func(ctx context.Context, username string)) *MockDB_GetUserByUsername_Call
func (*MockDB_GetUserByUsername_Call) RunAndReturn ¶
func (_c *MockDB_GetUserByUsername_Call) RunAndReturn(run func(ctx context.Context, username string) (*user.User, error)) *MockDB_GetUserByUsername_Call
type MockDB_NeedsSetup_Call ¶
MockDB_NeedsSetup_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NeedsSetup'
func (*MockDB_NeedsSetup_Call) Return ¶
func (_c *MockDB_NeedsSetup_Call) Return(b bool, err error) *MockDB_NeedsSetup_Call
func (*MockDB_NeedsSetup_Call) Run ¶
func (_c *MockDB_NeedsSetup_Call) Run(run func(ctx context.Context)) *MockDB_NeedsSetup_Call
func (*MockDB_NeedsSetup_Call) RunAndReturn ¶
func (_c *MockDB_NeedsSetup_Call) RunAndReturn(run func(ctx context.Context) (bool, error)) *MockDB_NeedsSetup_Call
type MockDB_SaveCredentialForUser_Call ¶
MockDB_SaveCredentialForUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SaveCredentialForUser'
func (*MockDB_SaveCredentialForUser_Call) Return ¶
func (_c *MockDB_SaveCredentialForUser_Call) Return(err error) *MockDB_SaveCredentialForUser_Call
func (*MockDB_SaveCredentialForUser_Call) Run ¶
func (_c *MockDB_SaveCredentialForUser_Call) Run(run func(ctx context.Context, userId string, credential *webauthn.Credential)) *MockDB_SaveCredentialForUser_Call
func (*MockDB_SaveCredentialForUser_Call) RunAndReturn ¶
func (_c *MockDB_SaveCredentialForUser_Call) RunAndReturn(run func(ctx context.Context, userId string, credential *webauthn.Credential) error) *MockDB_SaveCredentialForUser_Call
type MockDB_SaveUser_Call ¶
MockDB_SaveUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SaveUser'
func (*MockDB_SaveUser_Call) Return ¶
func (_c *MockDB_SaveUser_Call) Return(err error) *MockDB_SaveUser_Call
func (*MockDB_SaveUser_Call) Run ¶
func (_c *MockDB_SaveUser_Call) Run(run func(ctx context.Context, user1 *user.User)) *MockDB_SaveUser_Call
func (*MockDB_SaveUser_Call) RunAndReturn ¶
func (_c *MockDB_SaveUser_Call) RunAndReturn(run func(ctx context.Context, user1 *user.User) error) *MockDB_SaveUser_Call
type MockDB_SetUserEnabled_Call ¶
MockDB_SetUserEnabled_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetUserEnabled'
func (*MockDB_SetUserEnabled_Call) Return ¶
func (_c *MockDB_SetUserEnabled_Call) Return(err error) *MockDB_SetUserEnabled_Call
func (*MockDB_SetUserEnabled_Call) Run ¶
func (_c *MockDB_SetUserEnabled_Call) Run(run func(ctx context.Context, userId string, enabled bool)) *MockDB_SetUserEnabled_Call
func (*MockDB_SetUserEnabled_Call) RunAndReturn ¶
func (_c *MockDB_SetUserEnabled_Call) RunAndReturn(run func(ctx context.Context, userId string, enabled bool) error) *MockDB_SetUserEnabled_Call
type MockDB_UpdateCredentialOnLogin_Call ¶
MockDB_UpdateCredentialOnLogin_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateCredentialOnLogin'
func (*MockDB_UpdateCredentialOnLogin_Call) Return ¶
func (_c *MockDB_UpdateCredentialOnLogin_Call) Return(err error) *MockDB_UpdateCredentialOnLogin_Call
func (*MockDB_UpdateCredentialOnLogin_Call) Run ¶
func (_c *MockDB_UpdateCredentialOnLogin_Call) Run(run func(ctx context.Context, credential *webauthn.Credential)) *MockDB_UpdateCredentialOnLogin_Call
func (*MockDB_UpdateCredentialOnLogin_Call) RunAndReturn ¶
func (_c *MockDB_UpdateCredentialOnLogin_Call) RunAndReturn(run func(ctx context.Context, credential *webauthn.Credential) error) *MockDB_UpdateCredentialOnLogin_Call
type MockDB_UpdateKeyName_Call ¶
MockDB_UpdateKeyName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateKeyName'
func (*MockDB_UpdateKeyName_Call) Return ¶
func (_c *MockDB_UpdateKeyName_Call) Return(err error) *MockDB_UpdateKeyName_Call
func (*MockDB_UpdateKeyName_Call) Run ¶
func (_c *MockDB_UpdateKeyName_Call) Run(run func(ctx context.Context, keyID string, name *string)) *MockDB_UpdateKeyName_Call
func (*MockDB_UpdateKeyName_Call) RunAndReturn ¶
func (_c *MockDB_UpdateKeyName_Call) RunAndReturn(run func(ctx context.Context, keyID string, name *string) error) *MockDB_UpdateKeyName_Call
type MockDB_UpdatePassword_Call ¶
MockDB_UpdatePassword_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdatePassword'
func (*MockDB_UpdatePassword_Call) Return ¶
func (_c *MockDB_UpdatePassword_Call) Return(err error) *MockDB_UpdatePassword_Call
func (*MockDB_UpdatePassword_Call) Run ¶
func (_c *MockDB_UpdatePassword_Call) Run(run func(ctx context.Context, user1 *user.User)) *MockDB_UpdatePassword_Call
func (*MockDB_UpdatePassword_Call) RunAndReturn ¶
func (_c *MockDB_UpdatePassword_Call) RunAndReturn(run func(ctx context.Context, user1 *user.User) error) *MockDB_UpdatePassword_Call
type MockDB_UpdateTOTPSeed_Call ¶
MockDB_UpdateTOTPSeed_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateTOTPSeed'
func (*MockDB_UpdateTOTPSeed_Call) Return ¶
func (_c *MockDB_UpdateTOTPSeed_Call) Return(err error) *MockDB_UpdateTOTPSeed_Call
func (*MockDB_UpdateTOTPSeed_Call) Run ¶
func (_c *MockDB_UpdateTOTPSeed_Call) Run(run func(ctx context.Context, userID string, secret string)) *MockDB_UpdateTOTPSeed_Call
func (*MockDB_UpdateTOTPSeed_Call) RunAndReturn ¶
func (_c *MockDB_UpdateTOTPSeed_Call) RunAndReturn(run func(ctx context.Context, userID string, secret string) error) *MockDB_UpdateTOTPSeed_Call
type MockDockerAPI ¶
MockDockerAPI is an autogenerated mock type for the dockerAPI type
func NewMockDockerAPI ¶
func NewMockDockerAPI(t interface {
mock.TestingT
Cleanup(func())
}) *MockDockerAPI
NewMockDockerAPI creates a new instance of MockDockerAPI. 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 (*MockDockerAPI) ClientVersion ¶
func (_mock *MockDockerAPI) ClientVersion() string
ClientVersion provides a mock function for the type MockDockerAPI
func (*MockDockerAPI) Close ¶
func (_mock *MockDockerAPI) Close() error
Close provides a mock function for the type MockDockerAPI
func (*MockDockerAPI) ContainerInspect ¶
func (_mock *MockDockerAPI) ContainerInspect(ctx context.Context, containerID string) (container.InspectResponse, error)
ContainerInspect provides a mock function for the type MockDockerAPI
func (*MockDockerAPI) ContainerList ¶
func (_mock *MockDockerAPI) ContainerList(ctx context.Context, options container.ListOptions) ([]container.Summary, error)
ContainerList provides a mock function for the type MockDockerAPI
func (*MockDockerAPI) DaemonHost ¶
func (_mock *MockDockerAPI) DaemonHost() string
DaemonHost provides a mock function for the type MockDockerAPI
func (*MockDockerAPI) EXPECT ¶
func (_m *MockDockerAPI) EXPECT() *MockDockerAPI_Expecter
func (*MockDockerAPI) Events ¶
func (_mock *MockDockerAPI) Events(ctx context.Context, options events.ListOptions) (<-chan events.Message, <-chan error)
Events provides a mock function for the type MockDockerAPI
type MockDockerAPI_ClientVersion_Call ¶
MockDockerAPI_ClientVersion_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ClientVersion'
func (*MockDockerAPI_ClientVersion_Call) Return ¶
func (_c *MockDockerAPI_ClientVersion_Call) Return(s string) *MockDockerAPI_ClientVersion_Call
func (*MockDockerAPI_ClientVersion_Call) Run ¶
func (_c *MockDockerAPI_ClientVersion_Call) Run(run func()) *MockDockerAPI_ClientVersion_Call
func (*MockDockerAPI_ClientVersion_Call) RunAndReturn ¶
func (_c *MockDockerAPI_ClientVersion_Call) RunAndReturn(run func() string) *MockDockerAPI_ClientVersion_Call
type MockDockerAPI_Close_Call ¶
MockDockerAPI_Close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Close'
func (*MockDockerAPI_Close_Call) Return ¶
func (_c *MockDockerAPI_Close_Call) Return(err error) *MockDockerAPI_Close_Call
func (*MockDockerAPI_Close_Call) Run ¶
func (_c *MockDockerAPI_Close_Call) Run(run func()) *MockDockerAPI_Close_Call
func (*MockDockerAPI_Close_Call) RunAndReturn ¶
func (_c *MockDockerAPI_Close_Call) RunAndReturn(run func() error) *MockDockerAPI_Close_Call
type MockDockerAPI_ContainerInspect_Call ¶
MockDockerAPI_ContainerInspect_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ContainerInspect'
func (*MockDockerAPI_ContainerInspect_Call) Return ¶
func (_c *MockDockerAPI_ContainerInspect_Call) Return(inspectResponse container.InspectResponse, err error) *MockDockerAPI_ContainerInspect_Call
func (*MockDockerAPI_ContainerInspect_Call) Run ¶
func (_c *MockDockerAPI_ContainerInspect_Call) Run(run func(ctx context.Context, containerID string)) *MockDockerAPI_ContainerInspect_Call
func (*MockDockerAPI_ContainerInspect_Call) RunAndReturn ¶
func (_c *MockDockerAPI_ContainerInspect_Call) RunAndReturn(run func(ctx context.Context, containerID string) (container.InspectResponse, error)) *MockDockerAPI_ContainerInspect_Call
type MockDockerAPI_ContainerList_Call ¶
MockDockerAPI_ContainerList_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ContainerList'
func (*MockDockerAPI_ContainerList_Call) Return ¶
func (_c *MockDockerAPI_ContainerList_Call) Return(summarys []container.Summary, err error) *MockDockerAPI_ContainerList_Call
func (*MockDockerAPI_ContainerList_Call) Run ¶
func (_c *MockDockerAPI_ContainerList_Call) Run(run func(ctx context.Context, options container.ListOptions)) *MockDockerAPI_ContainerList_Call
func (*MockDockerAPI_ContainerList_Call) RunAndReturn ¶
func (_c *MockDockerAPI_ContainerList_Call) RunAndReturn(run func(ctx context.Context, options container.ListOptions) ([]container.Summary, error)) *MockDockerAPI_ContainerList_Call
type MockDockerAPI_DaemonHost_Call ¶
MockDockerAPI_DaemonHost_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DaemonHost'
func (*MockDockerAPI_DaemonHost_Call) Return ¶
func (_c *MockDockerAPI_DaemonHost_Call) Return(s string) *MockDockerAPI_DaemonHost_Call
func (*MockDockerAPI_DaemonHost_Call) Run ¶
func (_c *MockDockerAPI_DaemonHost_Call) Run(run func()) *MockDockerAPI_DaemonHost_Call
func (*MockDockerAPI_DaemonHost_Call) RunAndReturn ¶
func (_c *MockDockerAPI_DaemonHost_Call) RunAndReturn(run func() string) *MockDockerAPI_DaemonHost_Call
type MockDockerAPI_Events_Call ¶
MockDockerAPI_Events_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Events'
func (*MockDockerAPI_Events_Call) Return ¶
func (_c *MockDockerAPI_Events_Call) Return(messageCh <-chan events.Message, errCh <-chan error) *MockDockerAPI_Events_Call
func (*MockDockerAPI_Events_Call) Run ¶
func (_c *MockDockerAPI_Events_Call) Run(run func(ctx context.Context, options events.ListOptions)) *MockDockerAPI_Events_Call
func (*MockDockerAPI_Events_Call) RunAndReturn ¶
func (_c *MockDockerAPI_Events_Call) RunAndReturn(run func(ctx context.Context, options events.ListOptions) (<-chan events.Message, <-chan error)) *MockDockerAPI_Events_Call
type MockDockerAPI_Expecter ¶
type MockDockerAPI_Expecter struct {
// contains filtered or unexported fields
}
func (*MockDockerAPI_Expecter) ClientVersion ¶
func (_e *MockDockerAPI_Expecter) ClientVersion() *MockDockerAPI_ClientVersion_Call
ClientVersion is a helper method to define mock.On call
func (*MockDockerAPI_Expecter) Close ¶
func (_e *MockDockerAPI_Expecter) Close() *MockDockerAPI_Close_Call
Close is a helper method to define mock.On call
func (*MockDockerAPI_Expecter) ContainerInspect ¶
func (_e *MockDockerAPI_Expecter) ContainerInspect(ctx interface{}, containerID interface{}) *MockDockerAPI_ContainerInspect_Call
ContainerInspect is a helper method to define mock.On call
- ctx context.Context
- containerID string
func (*MockDockerAPI_Expecter) ContainerList ¶
func (_e *MockDockerAPI_Expecter) ContainerList(ctx interface{}, options interface{}) *MockDockerAPI_ContainerList_Call
ContainerList is a helper method to define mock.On call
- ctx context.Context
- options container.ListOptions
func (*MockDockerAPI_Expecter) DaemonHost ¶
func (_e *MockDockerAPI_Expecter) DaemonHost() *MockDockerAPI_DaemonHost_Call
DaemonHost is a helper method to define mock.On call
func (*MockDockerAPI_Expecter) Events ¶
func (_e *MockDockerAPI_Expecter) Events(ctx interface{}, options interface{}) *MockDockerAPI_Events_Call
Events is a helper method to define mock.On call
- ctx context.Context
- options events.ListOptions
type MockLoginLimiter ¶
MockLoginLimiter is an autogenerated mock type for the LoginLimiter type
func NewMockLoginLimiter ¶
func NewMockLoginLimiter(t interface {
mock.TestingT
Cleanup(func())
}) *MockLoginLimiter
NewMockLoginLimiter creates a new instance of MockLoginLimiter. 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 (*MockLoginLimiter) EXPECT ¶
func (_m *MockLoginLimiter) EXPECT() *MockLoginLimiter_Expecter
func (*MockLoginLimiter) IsAccountLocked ¶
func (_mock *MockLoginLimiter) IsAccountLocked(key string) bool
IsAccountLocked provides a mock function for the type MockLoginLimiter
func (*MockLoginLimiter) MarkFailedAttempt ¶
func (_mock *MockLoginLimiter) MarkFailedAttempt(key string) (int, error)
MarkFailedAttempt provides a mock function for the type MockLoginLimiter
func (*MockLoginLimiter) MarkSuccessfulAttempt ¶
func (_mock *MockLoginLimiter) MarkSuccessfulAttempt(key string)
MarkSuccessfulAttempt provides a mock function for the type MockLoginLimiter
type MockLoginLimiter_Expecter ¶
type MockLoginLimiter_Expecter struct {
// contains filtered or unexported fields
}
func (*MockLoginLimiter_Expecter) IsAccountLocked ¶
func (_e *MockLoginLimiter_Expecter) IsAccountLocked(key interface{}) *MockLoginLimiter_IsAccountLocked_Call
IsAccountLocked is a helper method to define mock.On call
- key string
func (*MockLoginLimiter_Expecter) MarkFailedAttempt ¶
func (_e *MockLoginLimiter_Expecter) MarkFailedAttempt(key interface{}) *MockLoginLimiter_MarkFailedAttempt_Call
MarkFailedAttempt is a helper method to define mock.On call
- key string
func (*MockLoginLimiter_Expecter) MarkSuccessfulAttempt ¶
func (_e *MockLoginLimiter_Expecter) MarkSuccessfulAttempt(key interface{}) *MockLoginLimiter_MarkSuccessfulAttempt_Call
MarkSuccessfulAttempt is a helper method to define mock.On call
- key string
type MockLoginLimiter_IsAccountLocked_Call ¶
MockLoginLimiter_IsAccountLocked_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsAccountLocked'
func (*MockLoginLimiter_IsAccountLocked_Call) Return ¶
func (_c *MockLoginLimiter_IsAccountLocked_Call) Return(b bool) *MockLoginLimiter_IsAccountLocked_Call
func (*MockLoginLimiter_IsAccountLocked_Call) Run ¶
func (_c *MockLoginLimiter_IsAccountLocked_Call) Run(run func(key string)) *MockLoginLimiter_IsAccountLocked_Call
func (*MockLoginLimiter_IsAccountLocked_Call) RunAndReturn ¶
func (_c *MockLoginLimiter_IsAccountLocked_Call) RunAndReturn(run func(key string) bool) *MockLoginLimiter_IsAccountLocked_Call
type MockLoginLimiter_MarkFailedAttempt_Call ¶
MockLoginLimiter_MarkFailedAttempt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MarkFailedAttempt'
func (*MockLoginLimiter_MarkFailedAttempt_Call) Return ¶
func (_c *MockLoginLimiter_MarkFailedAttempt_Call) Return(n int, err error) *MockLoginLimiter_MarkFailedAttempt_Call
func (*MockLoginLimiter_MarkFailedAttempt_Call) Run ¶
func (_c *MockLoginLimiter_MarkFailedAttempt_Call) Run(run func(key string)) *MockLoginLimiter_MarkFailedAttempt_Call
func (*MockLoginLimiter_MarkFailedAttempt_Call) RunAndReturn ¶
func (_c *MockLoginLimiter_MarkFailedAttempt_Call) RunAndReturn(run func(key string) (int, error)) *MockLoginLimiter_MarkFailedAttempt_Call
type MockLoginLimiter_MarkSuccessfulAttempt_Call ¶
MockLoginLimiter_MarkSuccessfulAttempt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MarkSuccessfulAttempt'
func (*MockLoginLimiter_MarkSuccessfulAttempt_Call) Return ¶
func (_c *MockLoginLimiter_MarkSuccessfulAttempt_Call) Return() *MockLoginLimiter_MarkSuccessfulAttempt_Call
func (*MockLoginLimiter_MarkSuccessfulAttempt_Call) Run ¶
func (_c *MockLoginLimiter_MarkSuccessfulAttempt_Call) Run(run func(key string)) *MockLoginLimiter_MarkSuccessfulAttempt_Call
func (*MockLoginLimiter_MarkSuccessfulAttempt_Call) RunAndReturn ¶
func (_c *MockLoginLimiter_MarkSuccessfulAttempt_Call) RunAndReturn(run func(key string)) *MockLoginLimiter_MarkSuccessfulAttempt_Call
type MockPasswordValidator ¶ added in v0.0.6
MockPasswordValidator is an autogenerated mock type for the PasswordValidator type
func NewMockPasswordValidator ¶ added in v0.0.6
func NewMockPasswordValidator(t interface {
mock.TestingT
Cleanup(func())
}) *MockPasswordValidator
NewMockPasswordValidator creates a new instance of MockPasswordValidator. 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 (*MockPasswordValidator) EXPECT ¶ added in v0.0.6
func (_m *MockPasswordValidator) EXPECT() *MockPasswordValidator_Expecter
type MockPasswordValidator_Expecter ¶ added in v0.0.6
type MockPasswordValidator_Expecter struct {
// contains filtered or unexported fields
}
func (*MockPasswordValidator_Expecter) Validate ¶ added in v0.0.6
func (_e *MockPasswordValidator_Expecter) Validate(ctx interface{}, username interface{}, password interface{}, sourceIP interface{}) *MockPasswordValidator_Validate_Call
Validate is a helper method to define mock.On call
- ctx context.Context
- username string
- password string
- sourceIP string
type MockPasswordValidator_Validate_Call ¶ added in v0.0.6
MockPasswordValidator_Validate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Validate'
func (*MockPasswordValidator_Validate_Call) Return ¶ added in v0.0.6
func (_c *MockPasswordValidator_Validate_Call) Return(user1 *user.User, err error) *MockPasswordValidator_Validate_Call
func (*MockPasswordValidator_Validate_Call) Run ¶ added in v0.0.6
func (_c *MockPasswordValidator_Validate_Call) Run(run func(ctx context.Context, username string, password string, sourceIP string)) *MockPasswordValidator_Validate_Call
func (*MockPasswordValidator_Validate_Call) RunAndReturn ¶ added in v0.0.6
func (_c *MockPasswordValidator_Validate_Call) RunAndReturn(run func(ctx context.Context, username string, password string, sourceIP string) (*user.User, error)) *MockPasswordValidator_Validate_Call