mock

package
v1.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 25, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateMockIDToken added in v1.7.0

func GenerateMockIDToken(email string) string

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 (*CognitoIdentityProviderClientStub) AdminUserGlobalSignOut added in v1.7.0

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 (*CognitoIdentityProviderClientStub) ForgotPassword added in v1.11.0

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 (*CognitoIdentityProviderClientStub) InitiateAuth added in v1.6.0

func (*CognitoIdentityProviderClientStub) ListUsers added in v1.7.0

func (*CognitoIdentityProviderClientStub) RespondToAuthChallenge added in v1.10.0

type MockCognitoIdentityProviderClient

func (*MockCognitoIdentityProviderClient) AdminCreateUser added in v1.7.0

AdminCreateUser function

func (*MockCognitoIdentityProviderClient) AdminUserGlobalSignOut added in v1.7.0

func (*MockCognitoIdentityProviderClient) DescribeUserPool

func (*MockCognitoIdentityProviderClient) ForgotPassword added in v1.11.0

func (*MockCognitoIdentityProviderClient) GlobalSignOut added in v1.5.0

func (*MockCognitoIdentityProviderClient) InitiateAuth added in v1.7.0

func (*MockCognitoIdentityProviderClient) ListUsers added in v1.7.0

func (*MockCognitoIdentityProviderClient) RespondToAuthChallenge added in v1.10.0

type Session added in v1.5.0

type Session struct {
	AccessToken  string
	IdToken      string
	RefreshToken string
}

type User added in v1.6.0

type User struct {
	ID         string
	Email      string
	Password   string
	GivenName  string
	FamilyName string
	Groups     []string
	Status     string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL