Documentation ¶
Index ¶
- func BulkGenerateUsers(userCount int, userNames []string) *cognitoidentityprovider.ListUsersOutput
- func GenerateMockIDToken(email string) string
- type CognitoIdentityProviderClientStub
- func (m *CognitoIdentityProviderClientStub) AddGroupWithName(name string) error
- func (m *CognitoIdentityProviderClientStub) AddGroupWithNameAndDescription(name, description string) error
- func (m *CognitoIdentityProviderClientStub) AddGroupWithNameAndPrecedence(name string, precedence int64) error
- func (m *CognitoIdentityProviderClientStub) AddListGroupWithName(name string) error
- func (m *CognitoIdentityProviderClientStub) AddMultipleActiveUsers(activeusersCount, inactiveusersCount int)
- func (m *CognitoIdentityProviderClientStub) AddMultipleUsers(usersCount int)
- func (m *CognitoIdentityProviderClientStub) AddUserToGroup(username string, groupName string) error
- func (m *CognitoIdentityProviderClientStub) AddUserWithAttributes(id, forename, lastname, email, password string, isConfirmed bool)
- func (m *CognitoIdentityProviderClientStub) AddUserWithEmail(email, password string, isConfirmed bool)
- func (m *CognitoIdentityProviderClientStub) AddUserWithForename(username, email, forename string, isConfirmed bool)
- func (m *CognitoIdentityProviderClientStub) AddUserWithUsername(username, email string, isConfirmed bool)
- func (m *CognitoIdentityProviderClientStub) AdminAddUserToGroup(input *cognitoidentityprovider.AdminAddUserToGroupInput) (*cognitoidentityprovider.AdminAddUserToGroupOutput, error)
- func (m *CognitoIdentityProviderClientStub) AdminConfirmSignUp(input *cognitoidentityprovider.AdminConfirmSignUpInput) (*cognitoidentityprovider.AdminConfirmSignUpOutput, error)
- func (m *CognitoIdentityProviderClientStub) AdminCreateUser(input *cognitoidentityprovider.AdminCreateUserInput) (*cognitoidentityprovider.AdminCreateUserOutput, error)
- func (m *CognitoIdentityProviderClientStub) AdminDeleteUser(input *cognitoidentityprovider.AdminDeleteUserInput) (*cognitoidentityprovider.AdminDeleteUserOutput, error)
- func (m *CognitoIdentityProviderClientStub) AdminDisableUser(input *cognitoidentityprovider.AdminDisableUserInput) (*cognitoidentityprovider.AdminDisableUserOutput, error)
- func (m *CognitoIdentityProviderClientStub) AdminEnableUser(input *cognitoidentityprovider.AdminEnableUserInput) (*cognitoidentityprovider.AdminEnableUserOutput, error)
- func (m *CognitoIdentityProviderClientStub) AdminGetUser(input *cognitoidentityprovider.AdminGetUserInput) (*cognitoidentityprovider.AdminGetUserOutput, error)
- func (m *CognitoIdentityProviderClientStub) AdminListGroupsForUser(input *cognitoidentityprovider.AdminListGroupsForUserInput) (*cognitoidentityprovider.AdminListGroupsForUserOutput, error)
- func (m *CognitoIdentityProviderClientStub) AdminRemoveUserFromGroup(input *cognitoidentityprovider.AdminRemoveUserFromGroupInput) (*cognitoidentityprovider.AdminRemoveUserFromGroupOutput, error)
- func (m *CognitoIdentityProviderClientStub) AdminSetUserPassword(input *cognitoidentityprovider.AdminSetUserPasswordInput) (*cognitoidentityprovider.AdminSetUserPasswordOutput, error)
- func (m *CognitoIdentityProviderClientStub) AdminUpdateUserAttributes(input *cognitoidentityprovider.AdminUpdateUserAttributesInput) (*cognitoidentityprovider.AdminUpdateUserAttributesOutput, error)
- func (m *CognitoIdentityProviderClientStub) AdminUserGlobalSignOut(...) (*cognitoidentityprovider.AdminUserGlobalSignOutOutput, error)
- func (m *CognitoIdentityProviderClientStub) BulkGenerateGroups(groupCount int)
- func (m *CognitoIdentityProviderClientStub) BulkGenerateGroupsList(groupCount int)
- func (m *CognitoIdentityProviderClientStub) ConfirmForgotPassword(input *cognitoidentityprovider.ConfirmForgotPasswordInput) (*cognitoidentityprovider.ConfirmForgotPasswordOutput, error)
- func (m *CognitoIdentityProviderClientStub) CreateGroup(input *cognitoidentityprovider.CreateGroupInput) (*cognitoidentityprovider.CreateGroupOutput, error)
- func (m *CognitoIdentityProviderClientStub) CreateIdTokenForEmail(email string) string
- func (m *CognitoIdentityProviderClientStub) CreateSessionWithAccessToken(accessToken string)
- func (m *CognitoIdentityProviderClientStub) DeleteGroup(input *cognitoidentityprovider.DeleteGroupInput) (*cognitoidentityprovider.DeleteGroupOutput, error)
- func (m *CognitoIdentityProviderClientStub) DescribeUserPool(poolInputData *cognitoidentityprovider.DescribeUserPoolInput) (*cognitoidentityprovider.DescribeUserPoolOutput, error)
- func (m *CognitoIdentityProviderClientStub) DescribeUserPoolClient(input *cognitoidentityprovider.DescribeUserPoolClientInput) (*cognitoidentityprovider.DescribeUserPoolClientOutput, error)
- func (m *CognitoIdentityProviderClientStub) ForgotPassword(input *cognitoidentityprovider.ForgotPasswordInput) (*cognitoidentityprovider.ForgotPasswordOutput, error)
- func (m *CognitoIdentityProviderClientStub) GenerateGroup(name, description string, precedence int64) (*Group, error)
- func (m *CognitoIdentityProviderClientStub) GenerateListGroup(description string) (cognitoidentityprovider.ListGroupsOutput, error)
- func (m *CognitoIdentityProviderClientStub) GenerateSession(accessToken string, idToken string, refreshToken string) Session
- func (m *CognitoIdentityProviderClientStub) GenerateUser(id, email, password, givenName, familyName string, isConfirmed bool) *User
- func (m *CognitoIdentityProviderClientStub) GetGroup(input *cognitoidentityprovider.GetGroupInput) (*cognitoidentityprovider.GetGroupOutput, error)
- func (m *CognitoIdentityProviderClientStub) GlobalSignOut(signOutInput *cognitoidentityprovider.GlobalSignOutInput) (*cognitoidentityprovider.GlobalSignOutOutput, error)
- func (m *CognitoIdentityProviderClientStub) InitiateAuth(input *cognitoidentityprovider.InitiateAuthInput) (*cognitoidentityprovider.InitiateAuthOutput, error)
- func (m *CognitoIdentityProviderClientStub) ListGroups(input *cognitoidentityprovider.ListGroupsInput) (*cognitoidentityprovider.ListGroupsOutput, error)
- func (m *CognitoIdentityProviderClientStub) ListUsers(input *cognitoidentityprovider.ListUsersInput) (*cognitoidentityprovider.ListUsersOutput, error)
- func (m *CognitoIdentityProviderClientStub) ListUsersInGroup(input *cognitoidentityprovider.ListUsersInGroupInput) (*cognitoidentityprovider.ListUsersInGroupOutput, error)
- func (m *CognitoIdentityProviderClientStub) MakeUserMember(userName string)
- func (m *CognitoIdentityProviderClientStub) ReadGroup(groupName string) *Group
- func (m *CognitoIdentityProviderClientStub) ReadUser(username string) *User
- func (m *CognitoIdentityProviderClientStub) RespondToAuthChallenge(input *cognitoidentityprovider.RespondToAuthChallengeInput) (*cognitoidentityprovider.RespondToAuthChallengeOutput, error)
- func (m *CognitoIdentityProviderClientStub) SetUserActiveState(username, active string)
- func (m *CognitoIdentityProviderClientStub) UpdateGroup(input *cognitoidentityprovider.UpdateGroupInput) (*cognitoidentityprovider.UpdateGroupOutput, error)
- type Group
- type MockCognitoIdentityProviderClient
- func (m *MockCognitoIdentityProviderClient) AddUserToGroup(ctx context.Context, group models.Group, userId string) (*models.UsersList, *models.ErrorResponse)
- func (m *MockCognitoIdentityProviderClient) AdminAddUserToGroup(input *cognitoidentityprovider.AdminAddUserToGroupInput) (*cognitoidentityprovider.AdminAddUserToGroupOutput, error)
- func (m *MockCognitoIdentityProviderClient) AdminConfirmSignUp(input *cognitoidentityprovider.AdminConfirmSignUpInput) (*cognitoidentityprovider.AdminConfirmSignUpOutput, error)
- func (m *MockCognitoIdentityProviderClient) AdminCreateUser(userInput *cognitoidentityprovider.AdminCreateUserInput) (*cognitoidentityprovider.AdminCreateUserOutput, error)
- func (m *MockCognitoIdentityProviderClient) AdminDeleteUser(input *cognitoidentityprovider.AdminDeleteUserInput) (*cognitoidentityprovider.AdminDeleteUserOutput, error)
- func (m *MockCognitoIdentityProviderClient) AdminDisableUser(input *cognitoidentityprovider.AdminDisableUserInput) (*cognitoidentityprovider.AdminDisableUserOutput, error)
- func (m *MockCognitoIdentityProviderClient) AdminEnableUser(input *cognitoidentityprovider.AdminEnableUserInput) (*cognitoidentityprovider.AdminEnableUserOutput, error)
- func (m *MockCognitoIdentityProviderClient) AdminGetUser(input *cognitoidentityprovider.AdminGetUserInput) (*cognitoidentityprovider.AdminGetUserOutput, error)
- func (m *MockCognitoIdentityProviderClient) AdminListGroupsForUser(input *cognitoidentityprovider.AdminListGroupsForUserInput) (*cognitoidentityprovider.AdminListGroupsForUserOutput, error)
- func (m *MockCognitoIdentityProviderClient) AdminRemoveUserFromGroup(input *cognitoidentityprovider.AdminRemoveUserFromGroupInput) (*cognitoidentityprovider.AdminRemoveUserFromGroupOutput, error)
- func (m *MockCognitoIdentityProviderClient) AdminSetUserPassword(input *cognitoidentityprovider.AdminSetUserPasswordInput) (*cognitoidentityprovider.AdminSetUserPasswordOutput, error)
- func (m *MockCognitoIdentityProviderClient) AdminUpdateUserAttributes(input *cognitoidentityprovider.AdminUpdateUserAttributesInput) (*cognitoidentityprovider.AdminUpdateUserAttributesOutput, error)
- func (m *MockCognitoIdentityProviderClient) AdminUserGlobalSignOut(...) (*cognitoidentityprovider.AdminUserGlobalSignOutOutput, error)
- func (m *MockCognitoIdentityProviderClient) ConfirmForgotPassword(input *cognitoidentityprovider.ConfirmForgotPasswordInput) (*cognitoidentityprovider.ConfirmForgotPasswordOutput, error)
- func (m *MockCognitoIdentityProviderClient) CreateGroup(input *cognitoidentityprovider.CreateGroupInput) (*cognitoidentityprovider.CreateGroupOutput, error)
- func (m *MockCognitoIdentityProviderClient) DeleteGroup(input *cognitoidentityprovider.DeleteGroupInput) (*cognitoidentityprovider.DeleteGroupOutput, error)
- func (m *MockCognitoIdentityProviderClient) DescribeUserPool(poolInputData *cognitoidentityprovider.DescribeUserPoolInput) (*cognitoidentityprovider.DescribeUserPoolOutput, error)
- func (m *MockCognitoIdentityProviderClient) DescribeUserPoolClient(input *cognitoidentityprovider.DescribeUserPoolClientInput) (*cognitoidentityprovider.DescribeUserPoolClientOutput, error)
- func (m *MockCognitoIdentityProviderClient) ForgotPassword(input *cognitoidentityprovider.ForgotPasswordInput) (*cognitoidentityprovider.ForgotPasswordOutput, error)
- func (m *MockCognitoIdentityProviderClient) GetGroup(input *cognitoidentityprovider.GetGroupInput) (*cognitoidentityprovider.GetGroupOutput, error)
- func (m *MockCognitoIdentityProviderClient) GlobalSignOut(signOutInput *cognitoidentityprovider.GlobalSignOutInput) (*cognitoidentityprovider.GlobalSignOutOutput, error)
- func (m *MockCognitoIdentityProviderClient) InitiateAuth(authInput *cognitoidentityprovider.InitiateAuthInput) (*cognitoidentityprovider.InitiateAuthOutput, error)
- func (m *MockCognitoIdentityProviderClient) ListGroups(input *cognitoidentityprovider.ListGroupsInput) (*cognitoidentityprovider.ListGroupsOutput, error)
- func (m *MockCognitoIdentityProviderClient) ListUsers(usersInput *cognitoidentityprovider.ListUsersInput) (*cognitoidentityprovider.ListUsersOutput, error)
- func (m *MockCognitoIdentityProviderClient) ListUsersInGroup(input *cognitoidentityprovider.ListUsersInGroupInput) (*cognitoidentityprovider.ListUsersInGroupOutput, error)
- func (m *MockCognitoIdentityProviderClient) RemoveUserFromGroup(ctx context.Context, group models.Group, userId string) (*models.UsersList, *models.ErrorResponse)
- func (m *MockCognitoIdentityProviderClient) RespondToAuthChallenge(input *cognitoidentityprovider.RespondToAuthChallengeInput) (*cognitoidentityprovider.RespondToAuthChallengeOutput, error)
- func (m *MockCognitoIdentityProviderClient) SetGroupUsers(ctx context.Context, group models.Group, users models.UsersList) (*models.UsersList, *models.ErrorResponse)
- func (m *MockCognitoIdentityProviderClient) UpdateGroup(input *cognitoidentityprovider.UpdateGroupInput) (*cognitoidentityprovider.UpdateGroupOutput, error)
- type Session
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BulkGenerateUsers ¶ added in v1.19.0
func BulkGenerateUsers(userCount int, userNames []string) *cognitoidentityprovider.ListUsersOutput
BulkGenerateUsers - bulk generate 'n' users for testing purposes
if usernames array is nil or length is different, will auto-assign UUIDs
func GenerateMockIDToken ¶ added in v1.7.0
Types ¶
type CognitoIdentityProviderClientStub ¶ added in v1.5.0
type CognitoIdentityProviderClientStub struct { cognitoidentityprovideriface.CognitoIdentityProviderAPI UserPools []string Users []*User Sessions []Session Groups []*Group GroupsList []cognitoidentityprovider.ListGroupsOutput }
func (*CognitoIdentityProviderClientStub) AddGroupWithName ¶ added in v1.13.0
func (m *CognitoIdentityProviderClientStub) AddGroupWithName(name string) error
func (*CognitoIdentityProviderClientStub) AddGroupWithNameAndDescription ¶ added in v1.13.0
func (m *CognitoIdentityProviderClientStub) AddGroupWithNameAndDescription(name, description string) error
func (*CognitoIdentityProviderClientStub) AddGroupWithNameAndPrecedence ¶ added in v1.13.0
func (m *CognitoIdentityProviderClientStub) AddGroupWithNameAndPrecedence(name string, precedence int64) error
func (*CognitoIdentityProviderClientStub) AddListGroupWithName ¶ added in v1.53.0
func (m *CognitoIdentityProviderClientStub) AddListGroupWithName(name string) error
func (*CognitoIdentityProviderClientStub) AddMultipleActiveUsers ¶ added in v1.30.0
func (m *CognitoIdentityProviderClientStub) AddMultipleActiveUsers(activeusersCount, inactiveusersCount int)
Generates the required number of users in the system
func (*CognitoIdentityProviderClientStub) AddMultipleUsers ¶ added in v1.20.0
func (m *CognitoIdentityProviderClientStub) AddMultipleUsers(usersCount int)
Generates the required number of users in the system
func (*CognitoIdentityProviderClientStub) AddUserToGroup ¶ added in v1.16.0
func (m *CognitoIdentityProviderClientStub) AddUserToGroup(username string, groupName string) error
func (*CognitoIdentityProviderClientStub) AddUserWithAttributes ¶ added in v1.53.0
func (m *CognitoIdentityProviderClientStub) AddUserWithAttributes(id, forename, lastname, email, password string, isConfirmed bool)
func (*CognitoIdentityProviderClientStub) AddUserWithEmail ¶ added in v1.12.0
func (m *CognitoIdentityProviderClientStub) AddUserWithEmail(email, password string, isConfirmed bool)
func (*CognitoIdentityProviderClientStub) AddUserWithForename ¶ added in v1.52.0
func (m *CognitoIdentityProviderClientStub) AddUserWithForename(username, email, forename string, isConfirmed bool)
func (*CognitoIdentityProviderClientStub) AddUserWithUsername ¶ added in v1.6.0
func (m *CognitoIdentityProviderClientStub) AddUserWithUsername(username, email string, isConfirmed bool)
func (*CognitoIdentityProviderClientStub) AdminAddUserToGroup ¶ added in v1.15.0
func (m *CognitoIdentityProviderClientStub) AdminAddUserToGroup(input *cognitoidentityprovider.AdminAddUserToGroupInput) ( *cognitoidentityprovider.AdminAddUserToGroupOutput, error)
func (*CognitoIdentityProviderClientStub) AdminConfirmSignUp ¶ added in v1.17.0
func (m *CognitoIdentityProviderClientStub) AdminConfirmSignUp(input *cognitoidentityprovider.AdminConfirmSignUpInput) ( *cognitoidentityprovider.AdminConfirmSignUpOutput, error)
Added to fully implement interface but only used in the local dummy data builder
func (*CognitoIdentityProviderClientStub) AdminCreateUser ¶ added in v1.7.0
func (m *CognitoIdentityProviderClientStub) AdminCreateUser(input *cognitoidentityprovider.AdminCreateUserInput) ( *cognitoidentityprovider.AdminCreateUserOutput, error)
func (*CognitoIdentityProviderClientStub) AdminDeleteUser ¶ added in v1.17.0
func (m *CognitoIdentityProviderClientStub) AdminDeleteUser(input *cognitoidentityprovider.AdminDeleteUserInput) ( *cognitoidentityprovider.AdminDeleteUserOutput, error)
Added to fully implement interface but only used in the local dummy data builder
func (*CognitoIdentityProviderClientStub) AdminDisableUser ¶ added in v1.15.0
func (m *CognitoIdentityProviderClientStub) AdminDisableUser(input *cognitoidentityprovider.AdminDisableUserInput) ( *cognitoidentityprovider.AdminDisableUserOutput, error)
func (*CognitoIdentityProviderClientStub) AdminEnableUser ¶ added in v1.15.0
func (m *CognitoIdentityProviderClientStub) AdminEnableUser(input *cognitoidentityprovider.AdminEnableUserInput) ( *cognitoidentityprovider.AdminEnableUserOutput, error)
func (*CognitoIdentityProviderClientStub) AdminGetUser ¶ added in v1.12.0
func (m *CognitoIdentityProviderClientStub) AdminGetUser(input *cognitoidentityprovider.AdminGetUserInput) ( *cognitoidentityprovider.AdminGetUserOutput, error)
func (*CognitoIdentityProviderClientStub) AdminListGroupsForUser ¶ added in v1.21.0
func (m *CognitoIdentityProviderClientStub) AdminListGroupsForUser( input *cognitoidentityprovider.AdminListGroupsForUserInput) ( *cognitoidentityprovider.AdminListGroupsForUserOutput, error)
func (*CognitoIdentityProviderClientStub) AdminRemoveUserFromGroup ¶ added in v1.16.0
func (m *CognitoIdentityProviderClientStub) AdminRemoveUserFromGroup( input *cognitoidentityprovider.AdminRemoveUserFromGroupInput) ( *cognitoidentityprovider.AdminRemoveUserFromGroupOutput, error)
func (*CognitoIdentityProviderClientStub) AdminSetUserPassword ¶ added in v1.17.0
func (m *CognitoIdentityProviderClientStub) AdminSetUserPassword(input *cognitoidentityprovider.AdminSetUserPasswordInput) ( *cognitoidentityprovider.AdminSetUserPasswordOutput, error)
Added to fully implement interface but only used in the local dummy data builder
func (*CognitoIdentityProviderClientStub) AdminUpdateUserAttributes ¶ added in v1.13.0
func (m *CognitoIdentityProviderClientStub) AdminUpdateUserAttributes(input *cognitoidentityprovider.AdminUpdateUserAttributesInput) ( *cognitoidentityprovider.AdminUpdateUserAttributesOutput, error)
func (*CognitoIdentityProviderClientStub) AdminUserGlobalSignOut ¶ added in v1.7.0
func (m *CognitoIdentityProviderClientStub) AdminUserGlobalSignOut( adminUserGlobalSignOutInput *cognitoidentityprovider.AdminUserGlobalSignOutInput) ( *cognitoidentityprovider.AdminUserGlobalSignOutOutput, error)
func (*CognitoIdentityProviderClientStub) BulkGenerateGroups ¶ added in v1.21.0
func (m *CognitoIdentityProviderClientStub) BulkGenerateGroups(groupCount int)
func (*CognitoIdentityProviderClientStub) BulkGenerateGroupsList ¶ added in v1.25.0
func (m *CognitoIdentityProviderClientStub) BulkGenerateGroupsList(groupCount int)
func (*CognitoIdentityProviderClientStub) ConfirmForgotPassword ¶ added in v1.14.0
func (m *CognitoIdentityProviderClientStub) ConfirmForgotPassword(input *cognitoidentityprovider.ConfirmForgotPasswordInput) ( *cognitoidentityprovider.ConfirmForgotPasswordOutput, error)
func (*CognitoIdentityProviderClientStub) CreateGroup ¶ added in v1.13.0
func (m *CognitoIdentityProviderClientStub) CreateGroup(input *cognitoidentityprovider.CreateGroupInput) ( *cognitoidentityprovider.CreateGroupOutput, error)
func (*CognitoIdentityProviderClientStub) CreateIdTokenForEmail ¶ added in v1.7.0
func (m *CognitoIdentityProviderClientStub) CreateIdTokenForEmail(email string) string
func (*CognitoIdentityProviderClientStub) CreateSessionWithAccessToken ¶ added in v1.5.0
func (m *CognitoIdentityProviderClientStub) CreateSessionWithAccessToken(accessToken string)
func (*CognitoIdentityProviderClientStub) DeleteGroup ¶ added in v1.17.0
func (m *CognitoIdentityProviderClientStub) DeleteGroup(input *cognitoidentityprovider.DeleteGroupInput) ( *cognitoidentityprovider.DeleteGroupOutput, error)
Added to fully implement interface but only used in the local dummy data builder
func (*CognitoIdentityProviderClientStub) DescribeUserPool ¶ added in v1.5.0
func (m *CognitoIdentityProviderClientStub) DescribeUserPool(poolInputData *cognitoidentityprovider.DescribeUserPoolInput) ( *cognitoidentityprovider.DescribeUserPoolOutput, error)
func (*CognitoIdentityProviderClientStub) DescribeUserPoolClient ¶ added in v1.22.0
func (m *CognitoIdentityProviderClientStub) DescribeUserPoolClient(input *cognitoidentityprovider.DescribeUserPoolClientInput) ( *cognitoidentityprovider.DescribeUserPoolClientOutput, error)
func (*CognitoIdentityProviderClientStub) ForgotPassword ¶ added in v1.11.0
func (m *CognitoIdentityProviderClientStub) ForgotPassword(input *cognitoidentityprovider.ForgotPasswordInput) ( *cognitoidentityprovider.ForgotPasswordOutput, error)
func (*CognitoIdentityProviderClientStub) GenerateGroup ¶ added in v1.13.0
func (m *CognitoIdentityProviderClientStub) GenerateGroup(name, description string, precedence int64) (*Group, error)
func (*CognitoIdentityProviderClientStub) GenerateListGroup ¶ added in v1.53.0
func (m *CognitoIdentityProviderClientStub) GenerateListGroup(description string) (cognitoidentityprovider.ListGroupsOutput, error)
func (*CognitoIdentityProviderClientStub) GenerateSession ¶ added in v1.5.0
func (m *CognitoIdentityProviderClientStub) GenerateSession(accessToken string, idToken string, refreshToken string) Session
func (*CognitoIdentityProviderClientStub) GenerateUser ¶ added in v1.6.0
func (m *CognitoIdentityProviderClientStub) GenerateUser(id, email, password, givenName, familyName string, isConfirmed bool) *User
func (*CognitoIdentityProviderClientStub) GetGroup ¶ added in v1.15.0
func (m *CognitoIdentityProviderClientStub) GetGroup(input *cognitoidentityprovider.GetGroupInput) ( *cognitoidentityprovider.GetGroupOutput, error)
func (*CognitoIdentityProviderClientStub) GlobalSignOut ¶ added in v1.5.0
func (m *CognitoIdentityProviderClientStub) GlobalSignOut(signOutInput *cognitoidentityprovider.GlobalSignOutInput) ( *cognitoidentityprovider.GlobalSignOutOutput, error)
func (*CognitoIdentityProviderClientStub) InitiateAuth ¶ added in v1.6.0
func (m *CognitoIdentityProviderClientStub) InitiateAuth(input *cognitoidentityprovider.InitiateAuthInput) ( *cognitoidentityprovider.InitiateAuthOutput, error)
func (*CognitoIdentityProviderClientStub) ListGroups ¶ added in v1.25.0
func (m *CognitoIdentityProviderClientStub) ListGroups(input *cognitoidentityprovider.ListGroupsInput) ( *cognitoidentityprovider.ListGroupsOutput, error)
func (*CognitoIdentityProviderClientStub) ListUsers ¶ added in v1.7.0
func (m *CognitoIdentityProviderClientStub) ListUsers(input *cognitoidentityprovider.ListUsersInput) ( *cognitoidentityprovider.ListUsersOutput, error)
func (*CognitoIdentityProviderClientStub) ListUsersInGroup ¶ added in v1.15.0
func (m *CognitoIdentityProviderClientStub) ListUsersInGroup(input *cognitoidentityprovider.ListUsersInGroupInput) ( *cognitoidentityprovider.ListUsersInGroupOutput, error)
func (*CognitoIdentityProviderClientStub) MakeUserMember ¶ added in v1.21.0
func (m *CognitoIdentityProviderClientStub) MakeUserMember(userName string)
func (*CognitoIdentityProviderClientStub) ReadGroup ¶ added in v1.15.0
func (m *CognitoIdentityProviderClientStub) ReadGroup(groupName string) *Group
func (*CognitoIdentityProviderClientStub) ReadUser ¶ added in v1.15.0
func (m *CognitoIdentityProviderClientStub) ReadUser(username string) *User
func (*CognitoIdentityProviderClientStub) RespondToAuthChallenge ¶ added in v1.10.0
func (m *CognitoIdentityProviderClientStub) RespondToAuthChallenge(input *cognitoidentityprovider.RespondToAuthChallengeInput) ( *cognitoidentityprovider.RespondToAuthChallengeOutput, error)
func (*CognitoIdentityProviderClientStub) SetUserActiveState ¶ added in v1.15.0
func (m *CognitoIdentityProviderClientStub) SetUserActiveState(username, active string)
func (*CognitoIdentityProviderClientStub) UpdateGroup ¶ added in v1.28.0
func (m *CognitoIdentityProviderClientStub) UpdateGroup(input *cognitoidentityprovider.UpdateGroupInput) ( *cognitoidentityprovider.UpdateGroupOutput, error)
type MockCognitoIdentityProviderClient ¶
type MockCognitoIdentityProviderClient struct { cognitoidentityprovideriface.CognitoIdentityProviderAPI AddUserToGroupfunc func(ctx context.Context, group models.Group, userId string) (*models.UsersList, *models.ErrorResponse) AdminAddUserToGroupFunc func(input *cognitoidentityprovider.AdminAddUserToGroupInput) (*cognitoidentityprovider.AdminAddUserToGroupOutput, error) AdminConfirmSignUpFunc func(input *cognitoidentityprovider.AdminConfirmSignUpInput) (*cognitoidentityprovider.AdminConfirmSignUpOutput, error) AdminCreateUserFunc func(userInput *cognitoidentityprovider.AdminCreateUserInput) (*cognitoidentityprovider.AdminCreateUserOutput, error) AdminDeleteUserFunc func(input *cognitoidentityprovider.AdminDeleteUserInput) (*cognitoidentityprovider.AdminDeleteUserOutput, error) AdminDisableUserFunc func(input *cognitoidentityprovider.AdminDisableUserInput) (*cognitoidentityprovider.AdminDisableUserOutput, error) AdminEnableUserFunc func(input *cognitoidentityprovider.AdminEnableUserInput) (*cognitoidentityprovider.AdminEnableUserOutput, error) AdminGetUserFunc func(input *cognitoidentityprovider.AdminGetUserInput) (*cognitoidentityprovider.AdminGetUserOutput, error) AdminRemoveUserFromGroupFunc func(input *cognitoidentityprovider.AdminRemoveUserFromGroupInput) (*cognitoidentityprovider.AdminRemoveUserFromGroupOutput, error) AdminSetUserPasswordFunc func(input *cognitoidentityprovider.AdminSetUserPasswordInput) (*cognitoidentityprovider.AdminSetUserPasswordOutput, error) AdminUpdateUserAttributesFunc func(input *cognitoidentityprovider.AdminUpdateUserAttributesInput) (*cognitoidentityprovider.AdminUpdateUserAttributesOutput, error) AdminUserGlobalSignOutFunc func(adminUserGlobalSignOutInput *cognitoidentityprovider.AdminUserGlobalSignOutInput) (*cognitoidentityprovider.AdminUserGlobalSignOutOutput, error) ConfirmForgotPasswordFunc func(input *cognitoidentityprovider.ConfirmForgotPasswordInput) (*cognitoidentityprovider.ConfirmForgotPasswordOutput, error) CreateGroupFunc func(input *cognitoidentityprovider.CreateGroupInput) (*cognitoidentityprovider.CreateGroupOutput, error) DeleteGroupFunc func(input *cognitoidentityprovider.DeleteGroupInput) (*cognitoidentityprovider.DeleteGroupOutput, error) DescribeUserPoolClientFunc func(input *cognitoidentityprovider.DescribeUserPoolClientInput) (*cognitoidentityprovider.DescribeUserPoolClientOutput, error) DescribeUserPoolFunc func(poolInputData *cognitoidentityprovider.DescribeUserPoolInput) (*cognitoidentityprovider.DescribeUserPoolOutput, error) ForgotPasswordFunc func(input *cognitoidentityprovider.ForgotPasswordInput) (*cognitoidentityprovider.ForgotPasswordOutput, error) GetGroupFunc func(input *cognitoidentityprovider.GetGroupInput) (*cognitoidentityprovider.GetGroupOutput, error) GlobalSignOutFunc func(signOutInput *cognitoidentityprovider.GlobalSignOutInput) (*cognitoidentityprovider.GlobalSignOutOutput, error) InitiateAuthFunc func(authInput *cognitoidentityprovider.InitiateAuthInput) (*cognitoidentityprovider.InitiateAuthOutput, error) ListGroupsForUserFunc func(input *cognitoidentityprovider.AdminListGroupsForUserInput) (*cognitoidentityprovider.AdminListGroupsForUserOutput, error) //ListGroupsUsersFunc func(input *cognitoidentityprovider.ListGroupsOutput) (*[]models.ListGroupUsersType, error) ListGroupsFunc func(input *cognitoidentityprovider.ListGroupsInput) (*cognitoidentityprovider.ListGroupsOutput, error) ListUsersFunc func(usersInput *cognitoidentityprovider.ListUsersInput) (*cognitoidentityprovider.ListUsersOutput, error) ListUsersInGroupFunc func(input *cognitoidentityprovider.ListUsersInGroupInput) (*cognitoidentityprovider.ListUsersInGroupOutput, error) RemoveUserFromGroupfunc func(ctx context.Context, group models.Group, userId string) (*models.UsersList, *models.ErrorResponse) RespondToAuthChallengeFunc func(input *cognitoidentityprovider.RespondToAuthChallengeInput) (*cognitoidentityprovider.RespondToAuthChallengeOutput, error) SetGroupUsersfunc func(ctx context.Context, group models.Group, users models.UsersList) (*models.UsersList, *models.ErrorResponse) UpdateGroupFunc func(input *cognitoidentityprovider.UpdateGroupInput) (*cognitoidentityprovider.UpdateGroupOutput, error) ValidateAddRemoveUserFunc func(ctx context.Context, userId string) error }
func (*MockCognitoIdentityProviderClient) AddUserToGroup ¶ added in v1.40.0
func (m *MockCognitoIdentityProviderClient) AddUserToGroup(ctx context.Context, group models.Group, userId string) (*models.UsersList, *models.ErrorResponse)
func (*MockCognitoIdentityProviderClient) AdminAddUserToGroup ¶ added in v1.15.0
func (m *MockCognitoIdentityProviderClient) AdminAddUserToGroup(input *cognitoidentityprovider.AdminAddUserToGroupInput) (*cognitoidentityprovider.AdminAddUserToGroupOutput, error)
func (*MockCognitoIdentityProviderClient) AdminConfirmSignUp ¶ added in v1.17.0
func (m *MockCognitoIdentityProviderClient) AdminConfirmSignUp(input *cognitoidentityprovider.AdminConfirmSignUpInput) (*cognitoidentityprovider.AdminConfirmSignUpOutput, error)
func (*MockCognitoIdentityProviderClient) AdminCreateUser ¶ added in v1.7.0
func (m *MockCognitoIdentityProviderClient) AdminCreateUser(userInput *cognitoidentityprovider.AdminCreateUserInput) (*cognitoidentityprovider.AdminCreateUserOutput, error)
AdminCreateUser function
func (*MockCognitoIdentityProviderClient) AdminDeleteUser ¶ added in v1.17.0
func (m *MockCognitoIdentityProviderClient) AdminDeleteUser(input *cognitoidentityprovider.AdminDeleteUserInput) (*cognitoidentityprovider.AdminDeleteUserOutput, error)
func (*MockCognitoIdentityProviderClient) AdminDisableUser ¶ added in v1.15.0
func (m *MockCognitoIdentityProviderClient) AdminDisableUser(input *cognitoidentityprovider.AdminDisableUserInput) (*cognitoidentityprovider.AdminDisableUserOutput, error)
func (*MockCognitoIdentityProviderClient) AdminEnableUser ¶ added in v1.15.0
func (m *MockCognitoIdentityProviderClient) AdminEnableUser(input *cognitoidentityprovider.AdminEnableUserInput) (*cognitoidentityprovider.AdminEnableUserOutput, error)
func (*MockCognitoIdentityProviderClient) AdminGetUser ¶ added in v1.12.0
func (m *MockCognitoIdentityProviderClient) AdminGetUser(input *cognitoidentityprovider.AdminGetUserInput) (*cognitoidentityprovider.AdminGetUserOutput, error)
func (*MockCognitoIdentityProviderClient) AdminListGroupsForUser ¶ added in v1.21.0
func (m *MockCognitoIdentityProviderClient) AdminListGroupsForUser(input *cognitoidentityprovider.AdminListGroupsForUserInput) (*cognitoidentityprovider.AdminListGroupsForUserOutput, error)
func (*MockCognitoIdentityProviderClient) AdminRemoveUserFromGroup ¶ added in v1.16.0
func (m *MockCognitoIdentityProviderClient) AdminRemoveUserFromGroup(input *cognitoidentityprovider.AdminRemoveUserFromGroupInput) (*cognitoidentityprovider.AdminRemoveUserFromGroupOutput, error)
func (*MockCognitoIdentityProviderClient) AdminSetUserPassword ¶ added in v1.17.0
func (m *MockCognitoIdentityProviderClient) AdminSetUserPassword(input *cognitoidentityprovider.AdminSetUserPasswordInput) (*cognitoidentityprovider.AdminSetUserPasswordOutput, error)
func (*MockCognitoIdentityProviderClient) AdminUpdateUserAttributes ¶ added in v1.13.0
func (m *MockCognitoIdentityProviderClient) AdminUpdateUserAttributes(input *cognitoidentityprovider.AdminUpdateUserAttributesInput) (*cognitoidentityprovider.AdminUpdateUserAttributesOutput, error)
func (*MockCognitoIdentityProviderClient) AdminUserGlobalSignOut ¶ added in v1.7.0
func (m *MockCognitoIdentityProviderClient) AdminUserGlobalSignOut(adminUserGlobalSignOutInput *cognitoidentityprovider.AdminUserGlobalSignOutInput) (*cognitoidentityprovider.AdminUserGlobalSignOutOutput, error)
func (*MockCognitoIdentityProviderClient) ConfirmForgotPassword ¶ added in v1.14.0
func (m *MockCognitoIdentityProviderClient) ConfirmForgotPassword(input *cognitoidentityprovider.ConfirmForgotPasswordInput) (*cognitoidentityprovider.ConfirmForgotPasswordOutput, error)
func (*MockCognitoIdentityProviderClient) CreateGroup ¶ added in v1.13.0
func (m *MockCognitoIdentityProviderClient) CreateGroup(input *cognitoidentityprovider.CreateGroupInput) (*cognitoidentityprovider.CreateGroupOutput, error)
func (*MockCognitoIdentityProviderClient) DeleteGroup ¶ added in v1.17.0
func (m *MockCognitoIdentityProviderClient) DeleteGroup(input *cognitoidentityprovider.DeleteGroupInput) (*cognitoidentityprovider.DeleteGroupOutput, error)
func (*MockCognitoIdentityProviderClient) DescribeUserPool ¶
func (m *MockCognitoIdentityProviderClient) DescribeUserPool(poolInputData *cognitoidentityprovider.DescribeUserPoolInput) (*cognitoidentityprovider.DescribeUserPoolOutput, error)
func (*MockCognitoIdentityProviderClient) DescribeUserPoolClient ¶ added in v1.22.0
func (m *MockCognitoIdentityProviderClient) DescribeUserPoolClient(input *cognitoidentityprovider.DescribeUserPoolClientInput) (*cognitoidentityprovider.DescribeUserPoolClientOutput, error)
func (*MockCognitoIdentityProviderClient) ForgotPassword ¶ added in v1.11.0
func (m *MockCognitoIdentityProviderClient) ForgotPassword(input *cognitoidentityprovider.ForgotPasswordInput) (*cognitoidentityprovider.ForgotPasswordOutput, error)
func (*MockCognitoIdentityProviderClient) GetGroup ¶ added in v1.13.0
func (m *MockCognitoIdentityProviderClient) GetGroup(input *cognitoidentityprovider.GetGroupInput) (*cognitoidentityprovider.GetGroupOutput, error)
func (*MockCognitoIdentityProviderClient) GlobalSignOut ¶ added in v1.5.0
func (m *MockCognitoIdentityProviderClient) GlobalSignOut(signOutInput *cognitoidentityprovider.GlobalSignOutInput) (*cognitoidentityprovider.GlobalSignOutOutput, error)
func (*MockCognitoIdentityProviderClient) InitiateAuth ¶ added in v1.7.0
func (m *MockCognitoIdentityProviderClient) InitiateAuth(authInput *cognitoidentityprovider.InitiateAuthInput) (*cognitoidentityprovider.InitiateAuthOutput, error)
func (*MockCognitoIdentityProviderClient) ListGroups ¶ added in v1.25.0
func (m *MockCognitoIdentityProviderClient) ListGroups(input *cognitoidentityprovider.ListGroupsInput) (*cognitoidentityprovider.ListGroupsOutput, error)
func (m *MockCognitoIdentityProviderClient) ListGroupsUsers(input *cognitoidentityprovider.ListGroupsOutput) (*[]models.ListGroupUsersType, error) { return m.ListGroupsUsersFunc(input) }
func (*MockCognitoIdentityProviderClient) ListUsers ¶ added in v1.7.0
func (m *MockCognitoIdentityProviderClient) ListUsers(usersInput *cognitoidentityprovider.ListUsersInput) (*cognitoidentityprovider.ListUsersOutput, error)
func (*MockCognitoIdentityProviderClient) ListUsersInGroup ¶ added in v1.15.0
func (m *MockCognitoIdentityProviderClient) ListUsersInGroup(input *cognitoidentityprovider.ListUsersInGroupInput) (*cognitoidentityprovider.ListUsersInGroupOutput, error)
func (*MockCognitoIdentityProviderClient) RemoveUserFromGroup ¶ added in v1.40.0
func (m *MockCognitoIdentityProviderClient) RemoveUserFromGroup(ctx context.Context, group models.Group, userId string) (*models.UsersList, *models.ErrorResponse)
func (*MockCognitoIdentityProviderClient) RespondToAuthChallenge ¶ added in v1.10.0
func (m *MockCognitoIdentityProviderClient) RespondToAuthChallenge(input *cognitoidentityprovider.RespondToAuthChallengeInput) (*cognitoidentityprovider.RespondToAuthChallengeOutput, error)
func (*MockCognitoIdentityProviderClient) SetGroupUsers ¶ added in v1.40.0
func (*MockCognitoIdentityProviderClient) UpdateGroup ¶ added in v1.28.0
func (m *MockCognitoIdentityProviderClient) UpdateGroup(input *cognitoidentityprovider.UpdateGroupInput) (*cognitoidentityprovider.UpdateGroupOutput, error)
Click to show internal directories.
Click to hide internal directories.