Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
*httptest.Server
// TokensFunc handles the /v2.0/tokens endpoint. This must be set
// before the endpoint can be used.
TokensFunc func(*keystone.TokensRequest) (*keystone.TokensResponse, error)
// AuthTokensFunc handles the /v3/auth/tokens endpoint. This must
// be set before the endpoint can be used.
AuthTokensFunc func(*keystone.AuthTokensRequest) (*keystone.AuthTokensResponse, error)
// TenantsFunc handles the /v2.0/tenants endpoint. This must be set
// before the endpoint can be used.
TenantsFunc func(*keystone.TenantsRequest) (*keystone.TenantsResponse, error)
// UserGroupsFunc handles the /v3/users/:id/groups endpoint. This must be set
// before the endpoint can be used.
UserGroupsFunc func(*keystone.UserGroupsRequest) (*keystone.UserGroupsResponse, error)
}
Server provides a mock keystone server for use in tests.
Click to show internal directories.
Click to hide internal directories.