Documentation
¶
Index ¶
- func BootstrapArchiveDomain() archive.AsyncJobAdapter
- func BootstrapCatalogAndArchiveDomains()
- func BootstrapCatalogDomain()
- func BootstrapOAuthDomain()
- type ArgParser
- type Response
- func BadRequest(body interface{}) (Response, error)
- func InternalError(cause error) (Response, error)
- func NewJsonResponse(code int, body interface{}, headers map[string]string) (Response, error)
- func NotFound(body interface{}) (Response, error)
- func Ok(body interface{}) (Response, error)
- func ValidateRequest(request *events.APIGatewayProxyRequest, query *oauth.AuthoriseQuery) (Response, bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BootstrapArchiveDomain ¶
func BootstrapArchiveDomain() archive.AsyncJobAdapter
func BootstrapCatalogAndArchiveDomains ¶
func BootstrapCatalogAndArchiveDomains()
BootstrapCatalogAndArchiveDomains bootstraps all domains
func BootstrapCatalogDomain ¶
func BootstrapCatalogDomain()
BootstrapCatalogDomain bootstraps both oauth and catalog
Types ¶
type ArgParser ¶
type ArgParser struct {
// contains filtered or unexported fields
}
ArgParser is a helper to read several parameters from the request
func NewArgParser ¶
func NewArgParser(request *events.APIGatewayProxyRequest) *ArgParser
func (*ArgParser) BadRequest ¶
func (*ArgParser) HasViolations ¶
func (*ArgParser) ReadPathParameterInt ¶
func (*ArgParser) ReadPathParameterString ¶
type Response ¶
type Response events.APIGatewayProxyResponse
func BadRequest ¶
func InternalError ¶
InternalError logs the error and create a 500 error response
func NewJsonResponse ¶
NewJsonResponse serialises body into JSON and create a Response containing it as body.
func ValidateRequest ¶
func ValidateRequest(request *events.APIGatewayProxyRequest, query *oauth.AuthoriseQuery) (Response, bool)
ValidateRequest make sure authorisation is valid for the expected actions. Return [response, TRUE] when the consumer is not authorised.
Click to show internal directories.
Click to hide internal directories.