Documentation ¶
Index ¶
- Variables
- type Context
- type DebugMessage
- type DebugMessages
- type Result
- type Results
- type Step
- func NewAssertContentType(responseContextVar string, contentType string) Step
- func NewAssertStatus(code int, responseContextVar string) Step
- func NewClaims(jwtClaimsCtxKey string, authoriserBuilder auth.AuthoriserBuilder) Step
- func NewClientCredentialsGrant(grantTokenCtxKey, clientCtxKey, tokenEndpoint string, httpClient *http.Client) Step
- func NewClientDelete(registrationEndpoint, clientCtxKey, grantTokenCtxKey string, ...) Step
- func NewClientRegisterResponse(responseCtxKey, clientCtxKey string, authoriserBuilder auth.AuthoriserBuilder) Step
- func NewClientRetrieve(responseCtxKey, registrationEndpoint, clientCtxKey, grantTokenCtxKey string, ...) Step
- func NewClientRetrieveResponse(responseCtxKey, clientCtxKey, tokenEndpoint string) Step
- func NewClientRetrieveSchema(responseCtxKey string, validator schema.Validator) Step
- func NewClientUpdate(...) Step
- func NewGetRequest(url, responseContextVar string, httpClient *http.Client) Step
- func NewPostClientRegister(registrationEndpoint, jwtClaimsCtxKey, responseCtxKey string, ...) Step
- func NewSetInvalidGrantToken(grantTokenCtxKey string) Step
- func NewValidateRegistrationEndpoint(registrationEndpoint *string) Step
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrKeyNotFoundInContext = errors.New("key not found in context")
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context interface { SetString(key, value string) GetString(key string) (string, error) SetInt(key string, value int) GetInt(key string) (int, error) SetResponse(key string, response *http.Response) GetResponse(key string) (*http.Response, error) SetOpenIdConfig(key string, config openid.Configuration) GetOpenIdConfig(key string) (openid.Configuration, error) SetClient(key string, client dcr.Client) GetClient(key string) (dcr.Client, error) SetGrantToken(key string, token auth.GrantToken) GetGrantToken(key string) (auth.GrantToken, error) }
func NewContext ¶
func NewContext() Context
type DebugMessage ¶
type DebugMessages ¶
type DebugMessages struct {
Item []DebugMessage
}
func NewDebug ¶
func NewDebug() *DebugMessages
func (*DebugMessages) Log ¶
func (d *DebugMessages) Log(msg string)
func (*DebugMessages) Logf ¶
func (d *DebugMessages) Logf(format string, a ...interface{})
type Result ¶
type Result struct { Name string Pass bool FailReason string Debug DebugMessages }
func NewFailResult ¶
func NewFailResultWithDebug ¶
func NewFailResultWithDebug(name, reason string, log *DebugMessages) Result
func NewPassResult ¶
func NewPassResultWithDebug ¶
func NewPassResultWithDebug(name string, log *DebugMessages) Result
type Step ¶
func NewAssertContentType ¶
func NewAssertStatus ¶
func NewClaims ¶
func NewClaims(jwtClaimsCtxKey string, authoriserBuilder auth.AuthoriserBuilder) Step
func NewClientDelete ¶
func NewClientRegisterResponse ¶
func NewClientRegisterResponse(responseCtxKey, clientCtxKey string, authoriserBuilder auth.AuthoriserBuilder) Step
func NewClientRetrieve ¶
func NewClientRetrieveSchema ¶
func NewClientUpdate ¶
func NewGetRequest ¶
func NewPostClientRegister ¶
func NewSetInvalidGrantToken ¶
Source Files ¶
- claims.go
- client_delete.go
- client_register.go
- client_register_response.go
- client_retrieve.go
- client_retrieve_response.go
- client_retrieve_schema.go
- client_update.go
- content_type.go
- context.go
- credentials_grant.go
- get_request.go
- registration_endpoint_validate.go
- set_invalid_grant_token.go
- status_code.go
- step.go
Click to show internal directories.
Click to hide internal directories.