Documentation ¶
Index ¶
- func GenerateMockIDToken(email string) string
- type CognitoIdentityProviderClientStub
- func (m *CognitoIdentityProviderClientStub) AddUserWithUsername(email, password string, isConfirmed bool)
- func (m *CognitoIdentityProviderClientStub) AdminCreateUser(input *cognitoidentityprovider.AdminCreateUserInput) (*cognitoidentityprovider.AdminCreateUserOutput, error)
- func (m *CognitoIdentityProviderClientStub) AdminUserGlobalSignOut(...) (*cognitoidentityprovider.AdminUserGlobalSignOutOutput, error)
- func (m *CognitoIdentityProviderClientStub) CreateIdTokenForEmail(email string) string
- func (m *CognitoIdentityProviderClientStub) CreateSessionWithAccessToken(accessToken string)
- func (m *CognitoIdentityProviderClientStub) DescribeUserPool(poolInputData *cognitoidentityprovider.DescribeUserPoolInput) (*cognitoidentityprovider.DescribeUserPoolOutput, error)
- func (m *CognitoIdentityProviderClientStub) ForgotPassword(input *cognitoidentityprovider.ForgotPasswordInput) (*cognitoidentityprovider.ForgotPasswordOutput, error)
- func (m *CognitoIdentityProviderClientStub) GenerateSession(accessToken string, idToken string, refreshToken string) Session
- func (m *CognitoIdentityProviderClientStub) GenerateUser(email, password string, isConfirmed bool) User
- func (m *CognitoIdentityProviderClientStub) GlobalSignOut(signOutInput *cognitoidentityprovider.GlobalSignOutInput) (*cognitoidentityprovider.GlobalSignOutOutput, error)
- func (m *CognitoIdentityProviderClientStub) InitiateAuth(input *cognitoidentityprovider.InitiateAuthInput) (*cognitoidentityprovider.InitiateAuthOutput, error)
- func (m *CognitoIdentityProviderClientStub) ListUsers(input *cognitoidentityprovider.ListUsersInput) (*cognitoidentityprovider.ListUsersOutput, error)
- func (m *CognitoIdentityProviderClientStub) RespondToAuthChallenge(input *cognitoidentityprovider.RespondToAuthChallengeInput) (*cognitoidentityprovider.RespondToAuthChallengeOutput, error)
- type MockCognitoIdentityProviderClient
- func (m *MockCognitoIdentityProviderClient) AdminCreateUser(userInput *cognitoidentityprovider.AdminCreateUserInput) (*cognitoidentityprovider.AdminCreateUserOutput, error)
- func (m *MockCognitoIdentityProviderClient) AdminUserGlobalSignOut(...) (*cognitoidentityprovider.AdminUserGlobalSignOutOutput, error)
- func (m *MockCognitoIdentityProviderClient) DescribeUserPool(poolInputData *cognitoidentityprovider.DescribeUserPoolInput) (*cognitoidentityprovider.DescribeUserPoolOutput, error)
- func (m *MockCognitoIdentityProviderClient) ForgotPassword(input *cognitoidentityprovider.ForgotPasswordInput) (*cognitoidentityprovider.ForgotPasswordOutput, error)
- func (m *MockCognitoIdentityProviderClient) GlobalSignOut(signOutInput *cognitoidentityprovider.GlobalSignOutInput) (*cognitoidentityprovider.GlobalSignOutOutput, error)
- func (m *MockCognitoIdentityProviderClient) InitiateAuth(authInput *cognitoidentityprovider.InitiateAuthInput) (*cognitoidentityprovider.InitiateAuthOutput, error)
- func (m *MockCognitoIdentityProviderClient) ListUsers(usersInput *cognitoidentityprovider.ListUsersInput) (*cognitoidentityprovider.ListUsersOutput, error)
- func (m *MockCognitoIdentityProviderClient) RespondToAuthChallenge(input *cognitoidentityprovider.RespondToAuthChallengeInput) (*cognitoidentityprovider.RespondToAuthChallengeOutput, error)
- type Session
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 }
func (*CognitoIdentityProviderClientStub) AddUserWithUsername ¶ added in v1.6.0
func (m *CognitoIdentityProviderClientStub) AddUserWithUsername(email, password string, isConfirmed bool)
func (*CognitoIdentityProviderClientStub) AdminCreateUser ¶ added in v1.7.0
func (m *CognitoIdentityProviderClientStub) AdminCreateUser(input *cognitoidentityprovider.AdminCreateUserInput) (*cognitoidentityprovider.AdminCreateUserOutput, error)
func (*CognitoIdentityProviderClientStub) AdminUserGlobalSignOut ¶ added in v1.7.0
func (m *CognitoIdentityProviderClientStub) AdminUserGlobalSignOut(adminUserGlobalSignOutInput *cognitoidentityprovider.AdminUserGlobalSignOutInput) (*cognitoidentityprovider.AdminUserGlobalSignOutOutput, 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) DescribeUserPool ¶ added in v1.5.0
func (m *CognitoIdentityProviderClientStub) DescribeUserPool(poolInputData *cognitoidentityprovider.DescribeUserPoolInput) (*cognitoidentityprovider.DescribeUserPoolOutput, error)
func (*CognitoIdentityProviderClientStub) ForgotPassword ¶ added in v1.11.0
func (m *CognitoIdentityProviderClientStub) ForgotPassword(input *cognitoidentityprovider.ForgotPasswordInput) (*cognitoidentityprovider.ForgotPasswordOutput, 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(email, password string, isConfirmed bool) User
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) ListUsers ¶ added in v1.7.0
func (m *CognitoIdentityProviderClientStub) ListUsers(input *cognitoidentityprovider.ListUsersInput) (*cognitoidentityprovider.ListUsersOutput, error)
func (*CognitoIdentityProviderClientStub) RespondToAuthChallenge ¶ added in v1.10.0
func (m *CognitoIdentityProviderClientStub) RespondToAuthChallenge(input *cognitoidentityprovider.RespondToAuthChallengeInput) (*cognitoidentityprovider.RespondToAuthChallengeOutput, error)
type MockCognitoIdentityProviderClient ¶
type MockCognitoIdentityProviderClient struct { cognitoidentityprovideriface.CognitoIdentityProviderAPI DescribeUserPoolFunc func(poolInputData *cognitoidentityprovider.DescribeUserPoolInput) (*cognitoidentityprovider.DescribeUserPoolOutput, error) AdminCreateUserFunc func(userInput *cognitoidentityprovider.AdminCreateUserInput) (*cognitoidentityprovider.AdminCreateUserOutput, error) GlobalSignOutFunc func(signOutInput *cognitoidentityprovider.GlobalSignOutInput) (*cognitoidentityprovider.GlobalSignOutOutput, error) ListUsersFunc func(usersInput *cognitoidentityprovider.ListUsersInput) (*cognitoidentityprovider.ListUsersOutput, error) InitiateAuthFunc func(authInput *cognitoidentityprovider.InitiateAuthInput) (*cognitoidentityprovider.InitiateAuthOutput, error) AdminUserGlobalSignOutFunc func(adminUserGlobalSignOutInput *cognitoidentityprovider.AdminUserGlobalSignOutInput) (*cognitoidentityprovider.AdminUserGlobalSignOutOutput, error) RespondToAuthChallengeFunc func(input *cognitoidentityprovider.RespondToAuthChallengeInput) (*cognitoidentityprovider.RespondToAuthChallengeOutput, error) ForgotPasswordFunc func(input *cognitoidentityprovider.ForgotPasswordInput) (*cognitoidentityprovider.ForgotPasswordOutput, error) }
func (*MockCognitoIdentityProviderClient) AdminCreateUser ¶ added in v1.7.0
func (m *MockCognitoIdentityProviderClient) AdminCreateUser(userInput *cognitoidentityprovider.AdminCreateUserInput) (*cognitoidentityprovider.AdminCreateUserOutput, error)
AdminCreateUser function
func (*MockCognitoIdentityProviderClient) AdminUserGlobalSignOut ¶ added in v1.7.0
func (m *MockCognitoIdentityProviderClient) AdminUserGlobalSignOut(adminUserGlobalSignOutInput *cognitoidentityprovider.AdminUserGlobalSignOutInput) (*cognitoidentityprovider.AdminUserGlobalSignOutOutput, error)
func (*MockCognitoIdentityProviderClient) DescribeUserPool ¶
func (m *MockCognitoIdentityProviderClient) DescribeUserPool(poolInputData *cognitoidentityprovider.DescribeUserPoolInput) (*cognitoidentityprovider.DescribeUserPoolOutput, error)
func (*MockCognitoIdentityProviderClient) ForgotPassword ¶ added in v1.11.0
func (m *MockCognitoIdentityProviderClient) ForgotPassword(input *cognitoidentityprovider.ForgotPasswordInput) (*cognitoidentityprovider.ForgotPasswordOutput, 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) ListUsers ¶ added in v1.7.0
func (m *MockCognitoIdentityProviderClient) ListUsers(usersInput *cognitoidentityprovider.ListUsersInput) (*cognitoidentityprovider.ListUsersOutput, error)
func (*MockCognitoIdentityProviderClient) RespondToAuthChallenge ¶ added in v1.10.0
func (m *MockCognitoIdentityProviderClient) RespondToAuthChallenge(input *cognitoidentityprovider.RespondToAuthChallengeInput) (*cognitoidentityprovider.RespondToAuthChallengeOutput, error)
Click to show internal directories.
Click to hide internal directories.