Documentation ¶
Index ¶
- Variables
- func AdminAddUserToGroupResponse() []byte
- func AdminGetUserResponse(principalId, email string) []byte
- func AdminRemoveUserFromGroupResponse() []byte
- func ListGroupsResponse(groupNames ...string) []byte
- func ListUserPoolsResponse() []byte
- func ListUsersInGroupResponse(principalIds ...string) []byte
- func ListUsersResponse(principalId string) []byte
- func WithResourceServer() cognitoidentityprovider.ListResourceServersOutput
- func WithResourceServerOptions(userPoolId, name, identifier string) cognitoidentityprovider.ListResourceServersOutput
- type MockCognitoHTTPClient
- func (m *MockCognitoHTTPClient) AddRequest(method, url, apiOp string, statusCode int, responseBody []byte)
- func (m *MockCognitoHTTPClient) Do(req *http.Request) (*http.Response, error)
- func (m *MockCognitoHTTPClient) Get(url string) (resp *http.Response, err error)
- func (m *MockCognitoHTTPClient) GetRequestBody(method, url, serviceOp string) []byte
- func (m *MockCognitoHTTPClient) GetRequestBodyByIndex(method, url, serviceOp string, reqIndex int) []byte
- func (m *MockCognitoHTTPClient) MockAdminAddUserToGroup()
- func (m *MockCognitoHTTPClient) MockAdminAddUserToGroupWithHttpStatus(httpStatus int)
- func (m *MockCognitoHTTPClient) MockAdminGetUser(userName, email string)
- func (m *MockCognitoHTTPClient) MockAdminRemoveUserFromGroup()
- func (m *MockCognitoHTTPClient) MockAdminRemoveUserFromGroupWithHttpStatus(httpStatus int)
- func (m *MockCognitoHTTPClient) MockListGroups(groupNames ...string)
- func (m *MockCognitoHTTPClient) MockListGroupsWithHttpStatus(httpStatus int, groupNames ...string)
- func (m *MockCognitoHTTPClient) MockListResourceServers(withResp cognitoidentityprovider.ListResourceServersOutput)
- func (m *MockCognitoHTTPClient) MockListResourceServersWithHttpStatus(httpStatus int, withResp cognitoidentityprovider.ListResourceServersOutput)
- func (m *MockCognitoHTTPClient) MockListUserPools()
- func (m *MockCognitoHTTPClient) MockListUserPoolsWithHttpStatus(httpStatus int)
- func (m *MockCognitoHTTPClient) MockListUsers(principalId string)
- func (m *MockCognitoHTTPClient) MockListUsersInGroup(userName ...string)
- func (m *MockCognitoHTTPClient) MockListUsersInGroupWithHttpStatus(httpStatus int, userName ...string)
- func (m *MockCognitoHTTPClient) Post(url, _ string, body io.Reader) (resp *http.Response, err error)
- func (m *MockCognitoHTTPClient) VerifyCalled() bool
Constants ¶
This section is empty.
Variables ¶
View Source
var CognitoApiUrl = fmt.Sprintf("https://cognito-idp.%s.amazonaws.com/", awstestsupport.TestAwsRegion)
Functions ¶
func AdminAddUserToGroupResponse ¶
func AdminAddUserToGroupResponse() []byte
func AdminGetUserResponse ¶
func AdminRemoveUserFromGroupResponse ¶
func AdminRemoveUserFromGroupResponse() []byte
func ListGroupsResponse ¶
func ListUserPoolsResponse ¶
func ListUserPoolsResponse() []byte
func ListUsersResponse ¶
func WithResourceServer ¶
func WithResourceServer() cognitoidentityprovider.ListResourceServersOutput
func WithResourceServerOptions ¶
func WithResourceServerOptions(userPoolId, name, identifier string) cognitoidentityprovider.ListResourceServersOutput
Types ¶
type MockCognitoHTTPClient ¶
func NewMockCognitoHTTPClient ¶
func NewMockCognitoHTTPClient() *MockCognitoHTTPClient
func (*MockCognitoHTTPClient) AddRequest ¶
func (m *MockCognitoHTTPClient) AddRequest(method, url, apiOp string, statusCode int, responseBody []byte)
func (*MockCognitoHTTPClient) Get ¶
func (m *MockCognitoHTTPClient) Get(url string) (resp *http.Response, err error)
func (*MockCognitoHTTPClient) GetRequestBody ¶
func (m *MockCognitoHTTPClient) GetRequestBody(method, url, serviceOp string) []byte
func (*MockCognitoHTTPClient) GetRequestBodyByIndex ¶
func (m *MockCognitoHTTPClient) GetRequestBodyByIndex(method, url, serviceOp string, reqIndex int) []byte
func (*MockCognitoHTTPClient) MockAdminAddUserToGroup ¶
func (m *MockCognitoHTTPClient) MockAdminAddUserToGroup()
func (*MockCognitoHTTPClient) MockAdminAddUserToGroupWithHttpStatus ¶
func (m *MockCognitoHTTPClient) MockAdminAddUserToGroupWithHttpStatus(httpStatus int)
func (*MockCognitoHTTPClient) MockAdminGetUser ¶
func (m *MockCognitoHTTPClient) MockAdminGetUser(userName, email string)
func (*MockCognitoHTTPClient) MockAdminRemoveUserFromGroup ¶
func (m *MockCognitoHTTPClient) MockAdminRemoveUserFromGroup()
func (*MockCognitoHTTPClient) MockAdminRemoveUserFromGroupWithHttpStatus ¶
func (m *MockCognitoHTTPClient) MockAdminRemoveUserFromGroupWithHttpStatus(httpStatus int)
func (*MockCognitoHTTPClient) MockListGroups ¶
func (m *MockCognitoHTTPClient) MockListGroups(groupNames ...string)
func (*MockCognitoHTTPClient) MockListGroupsWithHttpStatus ¶
func (m *MockCognitoHTTPClient) MockListGroupsWithHttpStatus(httpStatus int, groupNames ...string)
func (*MockCognitoHTTPClient) MockListResourceServers ¶
func (m *MockCognitoHTTPClient) MockListResourceServers(withResp cognitoidentityprovider.ListResourceServersOutput)
func (*MockCognitoHTTPClient) MockListResourceServersWithHttpStatus ¶
func (m *MockCognitoHTTPClient) MockListResourceServersWithHttpStatus(httpStatus int, withResp cognitoidentityprovider.ListResourceServersOutput)
func (*MockCognitoHTTPClient) MockListUserPools ¶
func (m *MockCognitoHTTPClient) MockListUserPools()
func (*MockCognitoHTTPClient) MockListUserPoolsWithHttpStatus ¶
func (m *MockCognitoHTTPClient) MockListUserPoolsWithHttpStatus(httpStatus int)
func (*MockCognitoHTTPClient) MockListUsers ¶
func (m *MockCognitoHTTPClient) MockListUsers(principalId string)
func (*MockCognitoHTTPClient) MockListUsersInGroup ¶
func (m *MockCognitoHTTPClient) MockListUsersInGroup(userName ...string)
func (*MockCognitoHTTPClient) MockListUsersInGroupWithHttpStatus ¶
func (m *MockCognitoHTTPClient) MockListUsersInGroupWithHttpStatus(httpStatus int, userName ...string)
func (*MockCognitoHTTPClient) VerifyCalled ¶
func (m *MockCognitoHTTPClient) VerifyCalled() bool
Click to show internal directories.
Click to hide internal directories.