Documentation ¶
Index ¶
- Constants
- type Authorize
- type AuthorizeFound
- type AuthorizeHandler
- type AuthorizeHandlerFunc
- type AuthorizeInternalServerError
- type AuthorizeParams
- type AuthorizeURL
- func (o *AuthorizeURL) Build() (*url.URL, error)
- func (o *AuthorizeURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *AuthorizeURL) Must(u *url.URL, err error) *url.URL
- func (o *AuthorizeURL) SetBasePath(bp string)
- func (o *AuthorizeURL) String() string
- func (o *AuthorizeURL) StringFull(scheme, host string) string
- func (o *AuthorizeURL) WithBasePath(bp string) *AuthorizeURL
- type AuthorizeUnauthorized
- type AuthorizeUnprocessableEntity
- type Callback
- type CallbackHandler
- type CallbackHandlerFunc
- type CallbackInternalServerError
- type CallbackOK
- type CallbackParams
- type CallbackURL
- func (o *CallbackURL) Build() (*url.URL, error)
- func (o *CallbackURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *CallbackURL) Must(u *url.URL, err error) *url.URL
- func (o *CallbackURL) SetBasePath(bp string)
- func (o *CallbackURL) String() string
- func (o *CallbackURL) StringFull(scheme, host string) string
- func (o *CallbackURL) WithBasePath(bp string) *CallbackURL
- type CallbackUnauthorized
- type CallbackUnprocessableEntity
- type Login
- type LoginFound
- type LoginHandler
- type LoginHandlerFunc
- type LoginInternalServerError
- type LoginParams
- type LoginURL
- func (o *LoginURL) Build() (*url.URL, error)
- func (o *LoginURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *LoginURL) Must(u *url.URL, err error) *url.URL
- func (o *LoginURL) SetBasePath(bp string)
- func (o *LoginURL) String() string
- func (o *LoginURL) StringFull(scheme, host string) string
- func (o *LoginURL) WithBasePath(bp string) *LoginURL
- type TokenInfo
- type TokenInfoHandler
- type TokenInfoHandlerFunc
- type TokenInfoInternalServerError
- type TokenInfoOK
- type TokenInfoParams
- type TokenInfoURL
- func (o *TokenInfoURL) Build() (*url.URL, error)
- func (o *TokenInfoURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *TokenInfoURL) Must(u *url.URL, err error) *url.URL
- func (o *TokenInfoURL) SetBasePath(bp string)
- func (o *TokenInfoURL) String() string
- func (o *TokenInfoURL) StringFull(scheme, host string) string
- func (o *TokenInfoURL) WithBasePath(bp string) *TokenInfoURL
- type TokenInfoUnauthorized
- type TokenRefresh
- type TokenRefreshHandler
- type TokenRefreshHandlerFunc
- type TokenRefreshInternalServerError
- type TokenRefreshOK
- type TokenRefreshParams
- type TokenRefreshURL
- func (o *TokenRefreshURL) Build() (*url.URL, error)
- func (o *TokenRefreshURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *TokenRefreshURL) Must(u *url.URL, err error) *url.URL
- func (o *TokenRefreshURL) SetBasePath(bp string)
- func (o *TokenRefreshURL) String() string
- func (o *TokenRefreshURL) StringFull(scheme, host string) string
- func (o *TokenRefreshURL) WithBasePath(bp string) *TokenRefreshURL
- type TokenRefreshUnauthorized
Constants ¶
const AuthorizeFoundCode int = 302
AuthorizeFoundCode is the HTTP code returned for type AuthorizeFound
const AuthorizeInternalServerErrorCode int = 500
AuthorizeInternalServerErrorCode is the HTTP code returned for type AuthorizeInternalServerError
AuthorizeUnauthorizedCode is the HTTP code returned for type AuthorizeUnauthorized
const AuthorizeUnprocessableEntityCode int = 422
AuthorizeUnprocessableEntityCode is the HTTP code returned for type AuthorizeUnprocessableEntity
const CallbackInternalServerErrorCode int = 500
CallbackInternalServerErrorCode is the HTTP code returned for type CallbackInternalServerError
const CallbackOKCode int = 200
CallbackOKCode is the HTTP code returned for type CallbackOK
CallbackUnauthorizedCode is the HTTP code returned for type CallbackUnauthorized
const CallbackUnprocessableEntityCode int = 422
CallbackUnprocessableEntityCode is the HTTP code returned for type CallbackUnprocessableEntity
const LoginFoundCode int = 302
LoginFoundCode is the HTTP code returned for type LoginFound
const LoginInternalServerErrorCode int = 500
LoginInternalServerErrorCode is the HTTP code returned for type LoginInternalServerError
const TokenInfoInternalServerErrorCode int = 500
TokenInfoInternalServerErrorCode is the HTTP code returned for type TokenInfoInternalServerError
const TokenInfoOKCode int = 200
TokenInfoOKCode is the HTTP code returned for type TokenInfoOK
TokenInfoUnauthorizedCode is the HTTP code returned for type TokenInfoUnauthorized
const TokenRefreshInternalServerErrorCode int = 500
TokenRefreshInternalServerErrorCode is the HTTP code returned for type TokenRefreshInternalServerError
const TokenRefreshOKCode int = 200
TokenRefreshOKCode is the HTTP code returned for type TokenRefreshOK
TokenRefreshUnauthorizedCode is the HTTP code returned for type TokenRefreshUnauthorized
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authorize ¶
type Authorize struct { Context *middleware.Context Handler AuthorizeHandler }
Authorize swagger:route GET /auth/authorize Authentication authorize
Handle authentication ¶
Handle authorization API response, authenticate user and redirect to client.
func NewAuthorize ¶
func NewAuthorize(ctx *middleware.Context, handler AuthorizeHandler) *Authorize
NewAuthorize creates a new http.Handler for the authorize operation
type AuthorizeFound ¶
type AuthorizeFound struct { }
AuthorizeFound Found
swagger:response authorizeFound
func NewAuthorizeFound ¶
func NewAuthorizeFound() *AuthorizeFound
NewAuthorizeFound creates AuthorizeFound with default headers values
func (*AuthorizeFound) WriteResponse ¶
func (o *AuthorizeFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AuthorizeHandler ¶
type AuthorizeHandler interface {
Handle(AuthorizeParams) middleware.Responder
}
AuthorizeHandler interface for that can handle valid authorize params
type AuthorizeHandlerFunc ¶
type AuthorizeHandlerFunc func(AuthorizeParams) middleware.Responder
AuthorizeHandlerFunc turns a function with the right signature into a authorize handler
func (AuthorizeHandlerFunc) Handle ¶
func (fn AuthorizeHandlerFunc) Handle(params AuthorizeParams) middleware.Responder
Handle executing the request and returning a response
type AuthorizeInternalServerError ¶
type AuthorizeInternalServerError struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
AuthorizeInternalServerError Internal Server Error
swagger:response authorizeInternalServerError
func NewAuthorizeInternalServerError ¶
func NewAuthorizeInternalServerError() *AuthorizeInternalServerError
NewAuthorizeInternalServerError creates AuthorizeInternalServerError with default headers values
func (*AuthorizeInternalServerError) SetPayload ¶
func (o *AuthorizeInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the authorize internal server error response
func (*AuthorizeInternalServerError) WithPayload ¶
func (o *AuthorizeInternalServerError) WithPayload(payload *models.Error) *AuthorizeInternalServerError
WithPayload adds the payload to the authorize internal server error response
func (*AuthorizeInternalServerError) WriteResponse ¶
func (o *AuthorizeInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AuthorizeParams ¶
AuthorizeParams contains all the bound params for the authorize operation typically these are obtained from a http.Request
swagger:parameters authorize
func NewAuthorizeParams ¶
func NewAuthorizeParams() AuthorizeParams
NewAuthorizeParams creates a new AuthorizeParams object
There are no default values defined in the spec.
func (*AuthorizeParams) BindRequest ¶
func (o *AuthorizeParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewAuthorizeParams() beforehand.
type AuthorizeURL ¶
type AuthorizeURL struct {
// contains filtered or unexported fields
}
AuthorizeURL generates an URL for the authorize operation
func (*AuthorizeURL) Build ¶
func (o *AuthorizeURL) Build() (*url.URL, error)
Build a url path and query string
func (*AuthorizeURL) BuildFull ¶
func (o *AuthorizeURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*AuthorizeURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*AuthorizeURL) SetBasePath ¶
func (o *AuthorizeURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*AuthorizeURL) String ¶
func (o *AuthorizeURL) String() string
String returns the string representation of the path with query string
func (*AuthorizeURL) StringFull ¶
func (o *AuthorizeURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*AuthorizeURL) WithBasePath ¶
func (o *AuthorizeURL) WithBasePath(bp string) *AuthorizeURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type AuthorizeUnauthorized ¶
AuthorizeUnauthorized Unauthorized
swagger:response authorizeUnauthorized
func NewAuthorizeUnauthorized ¶
func NewAuthorizeUnauthorized() *AuthorizeUnauthorized
NewAuthorizeUnauthorized creates AuthorizeUnauthorized with default headers values
func (*AuthorizeUnauthorized) SetPayload ¶
func (o *AuthorizeUnauthorized) SetPayload(payload *models.Error)
SetPayload sets the payload to the authorize unauthorized response
func (*AuthorizeUnauthorized) WithPayload ¶
func (o *AuthorizeUnauthorized) WithPayload(payload *models.Error) *AuthorizeUnauthorized
WithPayload adds the payload to the authorize unauthorized response
func (*AuthorizeUnauthorized) WriteResponse ¶
func (o *AuthorizeUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AuthorizeUnprocessableEntity ¶
type AuthorizeUnprocessableEntity struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
AuthorizeUnprocessableEntity Unprocessable Entity
swagger:response authorizeUnprocessableEntity
func NewAuthorizeUnprocessableEntity ¶
func NewAuthorizeUnprocessableEntity() *AuthorizeUnprocessableEntity
NewAuthorizeUnprocessableEntity creates AuthorizeUnprocessableEntity with default headers values
func (*AuthorizeUnprocessableEntity) SetPayload ¶
func (o *AuthorizeUnprocessableEntity) SetPayload(payload *models.Error)
SetPayload sets the payload to the authorize unprocessable entity response
func (*AuthorizeUnprocessableEntity) WithPayload ¶
func (o *AuthorizeUnprocessableEntity) WithPayload(payload *models.Error) *AuthorizeUnprocessableEntity
WithPayload adds the payload to the authorize unprocessable entity response
func (*AuthorizeUnprocessableEntity) WriteResponse ¶
func (o *AuthorizeUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type Callback ¶
type Callback struct { Context *middleware.Context Handler CallbackHandler }
Callback swagger:route GET /auth/callback Authentication callback
Authenticate user ¶
Authenticate a user with an authorization code.
func NewCallback ¶
func NewCallback(ctx *middleware.Context, handler CallbackHandler) *Callback
NewCallback creates a new http.Handler for the callback operation
type CallbackHandler ¶
type CallbackHandler interface {
Handle(CallbackParams) middleware.Responder
}
CallbackHandler interface for that can handle valid callback params
type CallbackHandlerFunc ¶
type CallbackHandlerFunc func(CallbackParams) middleware.Responder
CallbackHandlerFunc turns a function with the right signature into a callback handler
func (CallbackHandlerFunc) Handle ¶
func (fn CallbackHandlerFunc) Handle(params CallbackParams) middleware.Responder
Handle executing the request and returning a response
type CallbackInternalServerError ¶
type CallbackInternalServerError struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
CallbackInternalServerError Internal Server Error
swagger:response callbackInternalServerError
func NewCallbackInternalServerError ¶
func NewCallbackInternalServerError() *CallbackInternalServerError
NewCallbackInternalServerError creates CallbackInternalServerError with default headers values
func (*CallbackInternalServerError) SetPayload ¶
func (o *CallbackInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the callback internal server error response
func (*CallbackInternalServerError) WithPayload ¶
func (o *CallbackInternalServerError) WithPayload(payload *models.Error) *CallbackInternalServerError
WithPayload adds the payload to the callback internal server error response
func (*CallbackInternalServerError) WriteResponse ¶
func (o *CallbackInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CallbackOK ¶
CallbackOK OK
swagger:response callbackOK
func NewCallbackOK ¶
func NewCallbackOK() *CallbackOK
NewCallbackOK creates CallbackOK with default headers values
func (*CallbackOK) SetPayload ¶
func (o *CallbackOK) SetPayload(payload *models.Token)
SetPayload sets the payload to the callback o k response
func (*CallbackOK) WithPayload ¶
func (o *CallbackOK) WithPayload(payload *models.Token) *CallbackOK
WithPayload adds the payload to the callback o k response
func (*CallbackOK) WriteResponse ¶
func (o *CallbackOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CallbackParams ¶
CallbackParams contains all the bound params for the callback operation typically these are obtained from a http.Request
swagger:parameters callback
func NewCallbackParams ¶
func NewCallbackParams() CallbackParams
NewCallbackParams creates a new CallbackParams object
There are no default values defined in the spec.
func (*CallbackParams) BindRequest ¶
func (o *CallbackParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewCallbackParams() beforehand.
type CallbackURL ¶
type CallbackURL struct {
// contains filtered or unexported fields
}
CallbackURL generates an URL for the callback operation
func (*CallbackURL) Build ¶
func (o *CallbackURL) Build() (*url.URL, error)
Build a url path and query string
func (*CallbackURL) BuildFull ¶
func (o *CallbackURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*CallbackURL) SetBasePath ¶
func (o *CallbackURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*CallbackURL) String ¶
func (o *CallbackURL) String() string
String returns the string representation of the path with query string
func (*CallbackURL) StringFull ¶
func (o *CallbackURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*CallbackURL) WithBasePath ¶
func (o *CallbackURL) WithBasePath(bp string) *CallbackURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type CallbackUnauthorized ¶
CallbackUnauthorized Unprocessable Entity
swagger:response callbackUnauthorized
func NewCallbackUnauthorized ¶
func NewCallbackUnauthorized() *CallbackUnauthorized
NewCallbackUnauthorized creates CallbackUnauthorized with default headers values
func (*CallbackUnauthorized) SetPayload ¶
func (o *CallbackUnauthorized) SetPayload(payload *models.Error)
SetPayload sets the payload to the callback unauthorized response
func (*CallbackUnauthorized) WithPayload ¶
func (o *CallbackUnauthorized) WithPayload(payload *models.Error) *CallbackUnauthorized
WithPayload adds the payload to the callback unauthorized response
func (*CallbackUnauthorized) WriteResponse ¶
func (o *CallbackUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CallbackUnprocessableEntity ¶
type CallbackUnprocessableEntity struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
CallbackUnprocessableEntity Unprocessable Entity
swagger:response callbackUnprocessableEntity
func NewCallbackUnprocessableEntity ¶
func NewCallbackUnprocessableEntity() *CallbackUnprocessableEntity
NewCallbackUnprocessableEntity creates CallbackUnprocessableEntity with default headers values
func (*CallbackUnprocessableEntity) SetPayload ¶
func (o *CallbackUnprocessableEntity) SetPayload(payload *models.Error)
SetPayload sets the payload to the callback unprocessable entity response
func (*CallbackUnprocessableEntity) WithPayload ¶
func (o *CallbackUnprocessableEntity) WithPayload(payload *models.Error) *CallbackUnprocessableEntity
WithPayload adds the payload to the callback unprocessable entity response
func (*CallbackUnprocessableEntity) WriteResponse ¶
func (o *CallbackUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type Login ¶
type Login struct { Context *middleware.Context Handler LoginHandler }
Login swagger:route GET /auth/login Authentication login
Login user ¶
Login a user with redirection.
func NewLogin ¶
func NewLogin(ctx *middleware.Context, handler LoginHandler) *Login
NewLogin creates a new http.Handler for the login operation
type LoginFound ¶
type LoginFound struct { }
LoginFound Found
swagger:response loginFound
func NewLoginFound ¶
func NewLoginFound() *LoginFound
NewLoginFound creates LoginFound with default headers values
func (*LoginFound) WriteResponse ¶
func (o *LoginFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type LoginHandler ¶
type LoginHandler interface {
Handle(LoginParams) middleware.Responder
}
LoginHandler interface for that can handle valid login params
type LoginHandlerFunc ¶
type LoginHandlerFunc func(LoginParams) middleware.Responder
LoginHandlerFunc turns a function with the right signature into a login handler
func (LoginHandlerFunc) Handle ¶
func (fn LoginHandlerFunc) Handle(params LoginParams) middleware.Responder
Handle executing the request and returning a response
type LoginInternalServerError ¶
type LoginInternalServerError struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
LoginInternalServerError Internal Server Error
swagger:response loginInternalServerError
func NewLoginInternalServerError ¶
func NewLoginInternalServerError() *LoginInternalServerError
NewLoginInternalServerError creates LoginInternalServerError with default headers values
func (*LoginInternalServerError) SetPayload ¶
func (o *LoginInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the login internal server error response
func (*LoginInternalServerError) WithPayload ¶
func (o *LoginInternalServerError) WithPayload(payload *models.Error) *LoginInternalServerError
WithPayload adds the payload to the login internal server error response
func (*LoginInternalServerError) WriteResponse ¶
func (o *LoginInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type LoginParams ¶
LoginParams contains all the bound params for the login operation typically these are obtained from a http.Request
swagger:parameters login
func NewLoginParams ¶
func NewLoginParams() LoginParams
NewLoginParams creates a new LoginParams object
There are no default values defined in the spec.
func (*LoginParams) BindRequest ¶
func (o *LoginParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewLoginParams() beforehand.
type LoginURL ¶
type LoginURL struct {
// contains filtered or unexported fields
}
LoginURL generates an URL for the login operation
func (*LoginURL) SetBasePath ¶
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*LoginURL) StringFull ¶
StringFull returns the string representation of a complete url
func (*LoginURL) WithBasePath ¶
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type TokenInfo ¶
type TokenInfo struct { Context *middleware.Context Handler TokenInfoHandler }
TokenInfo swagger:route GET /auth/token/info Authentication tokenInfo
Send token information ¶
Send token information or unauthorized error response.
func NewTokenInfo ¶
func NewTokenInfo(ctx *middleware.Context, handler TokenInfoHandler) *TokenInfo
NewTokenInfo creates a new http.Handler for the token info operation
type TokenInfoHandler ¶
type TokenInfoHandler interface {
Handle(TokenInfoParams) middleware.Responder
}
TokenInfoHandler interface for that can handle valid token info params
type TokenInfoHandlerFunc ¶
type TokenInfoHandlerFunc func(TokenInfoParams) middleware.Responder
TokenInfoHandlerFunc turns a function with the right signature into a token info handler
func (TokenInfoHandlerFunc) Handle ¶
func (fn TokenInfoHandlerFunc) Handle(params TokenInfoParams) middleware.Responder
Handle executing the request and returning a response
type TokenInfoInternalServerError ¶
type TokenInfoInternalServerError struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
TokenInfoInternalServerError Internal Server Error
swagger:response tokenInfoInternalServerError
func NewTokenInfoInternalServerError ¶
func NewTokenInfoInternalServerError() *TokenInfoInternalServerError
NewTokenInfoInternalServerError creates TokenInfoInternalServerError with default headers values
func (*TokenInfoInternalServerError) SetPayload ¶
func (o *TokenInfoInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the token info internal server error response
func (*TokenInfoInternalServerError) WithPayload ¶
func (o *TokenInfoInternalServerError) WithPayload(payload *models.Error) *TokenInfoInternalServerError
WithPayload adds the payload to the token info internal server error response
func (*TokenInfoInternalServerError) WriteResponse ¶
func (o *TokenInfoInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type TokenInfoOK ¶
TokenInfoOK OK
swagger:response tokenInfoOK
func NewTokenInfoOK ¶
func NewTokenInfoOK() *TokenInfoOK
NewTokenInfoOK creates TokenInfoOK with default headers values
func (*TokenInfoOK) SetPayload ¶
func (o *TokenInfoOK) SetPayload(payload *models.TokenInfo)
SetPayload sets the payload to the token info o k response
func (*TokenInfoOK) WithPayload ¶
func (o *TokenInfoOK) WithPayload(payload *models.TokenInfo) *TokenInfoOK
WithPayload adds the payload to the token info o k response
func (*TokenInfoOK) WriteResponse ¶
func (o *TokenInfoOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type TokenInfoParams ¶
type TokenInfoParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Bearer access token Required: true In: header */ Authorization string }
TokenInfoParams contains all the bound params for the token info operation typically these are obtained from a http.Request
swagger:parameters tokenInfo
func NewTokenInfoParams ¶
func NewTokenInfoParams() TokenInfoParams
NewTokenInfoParams creates a new TokenInfoParams object
There are no default values defined in the spec.
func (*TokenInfoParams) BindRequest ¶
func (o *TokenInfoParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewTokenInfoParams() beforehand.
type TokenInfoURL ¶
type TokenInfoURL struct {
// contains filtered or unexported fields
}
TokenInfoURL generates an URL for the token info operation
func (*TokenInfoURL) Build ¶
func (o *TokenInfoURL) Build() (*url.URL, error)
Build a url path and query string
func (*TokenInfoURL) BuildFull ¶
func (o *TokenInfoURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*TokenInfoURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*TokenInfoURL) SetBasePath ¶
func (o *TokenInfoURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*TokenInfoURL) String ¶
func (o *TokenInfoURL) String() string
String returns the string representation of the path with query string
func (*TokenInfoURL) StringFull ¶
func (o *TokenInfoURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*TokenInfoURL) WithBasePath ¶
func (o *TokenInfoURL) WithBasePath(bp string) *TokenInfoURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type TokenInfoUnauthorized ¶
TokenInfoUnauthorized Unauthorized
swagger:response tokenInfoUnauthorized
func NewTokenInfoUnauthorized ¶
func NewTokenInfoUnauthorized() *TokenInfoUnauthorized
NewTokenInfoUnauthorized creates TokenInfoUnauthorized with default headers values
func (*TokenInfoUnauthorized) SetPayload ¶
func (o *TokenInfoUnauthorized) SetPayload(payload *models.Error)
SetPayload sets the payload to the token info unauthorized response
func (*TokenInfoUnauthorized) WithPayload ¶
func (o *TokenInfoUnauthorized) WithPayload(payload *models.Error) *TokenInfoUnauthorized
WithPayload adds the payload to the token info unauthorized response
func (*TokenInfoUnauthorized) WriteResponse ¶
func (o *TokenInfoUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type TokenRefresh ¶
type TokenRefresh struct { Context *middleware.Context Handler TokenRefreshHandler }
TokenRefresh swagger:route GET /auth/token/refresh Authentication tokenRefresh
Refresh token ¶
Refresh expired token.
func NewTokenRefresh ¶
func NewTokenRefresh(ctx *middleware.Context, handler TokenRefreshHandler) *TokenRefresh
NewTokenRefresh creates a new http.Handler for the token refresh operation
func (*TokenRefresh) ServeHTTP ¶
func (o *TokenRefresh) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type TokenRefreshHandler ¶
type TokenRefreshHandler interface {
Handle(TokenRefreshParams) middleware.Responder
}
TokenRefreshHandler interface for that can handle valid token refresh params
type TokenRefreshHandlerFunc ¶
type TokenRefreshHandlerFunc func(TokenRefreshParams) middleware.Responder
TokenRefreshHandlerFunc turns a function with the right signature into a token refresh handler
func (TokenRefreshHandlerFunc) Handle ¶
func (fn TokenRefreshHandlerFunc) Handle(params TokenRefreshParams) middleware.Responder
Handle executing the request and returning a response
type TokenRefreshInternalServerError ¶
type TokenRefreshInternalServerError struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
TokenRefreshInternalServerError Internal Server Error
swagger:response tokenRefreshInternalServerError
func NewTokenRefreshInternalServerError ¶
func NewTokenRefreshInternalServerError() *TokenRefreshInternalServerError
NewTokenRefreshInternalServerError creates TokenRefreshInternalServerError with default headers values
func (*TokenRefreshInternalServerError) SetPayload ¶
func (o *TokenRefreshInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the token refresh internal server error response
func (*TokenRefreshInternalServerError) WithPayload ¶
func (o *TokenRefreshInternalServerError) WithPayload(payload *models.Error) *TokenRefreshInternalServerError
WithPayload adds the payload to the token refresh internal server error response
func (*TokenRefreshInternalServerError) WriteResponse ¶
func (o *TokenRefreshInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type TokenRefreshOK ¶
TokenRefreshOK OK
swagger:response tokenRefreshOK
func NewTokenRefreshOK ¶
func NewTokenRefreshOK() *TokenRefreshOK
NewTokenRefreshOK creates TokenRefreshOK with default headers values
func (*TokenRefreshOK) SetPayload ¶
func (o *TokenRefreshOK) SetPayload(payload *models.Token)
SetPayload sets the payload to the token refresh o k response
func (*TokenRefreshOK) WithPayload ¶
func (o *TokenRefreshOK) WithPayload(payload *models.Token) *TokenRefreshOK
WithPayload adds the payload to the token refresh o k response
func (*TokenRefreshOK) WriteResponse ¶
func (o *TokenRefreshOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type TokenRefreshParams ¶
type TokenRefreshParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Bearer refresh token Required: true In: header */ Authorization string }
TokenRefreshParams contains all the bound params for the token refresh operation typically these are obtained from a http.Request
swagger:parameters tokenRefresh
func NewTokenRefreshParams ¶
func NewTokenRefreshParams() TokenRefreshParams
NewTokenRefreshParams creates a new TokenRefreshParams object
There are no default values defined in the spec.
func (*TokenRefreshParams) BindRequest ¶
func (o *TokenRefreshParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewTokenRefreshParams() beforehand.
type TokenRefreshURL ¶
type TokenRefreshURL struct {
// contains filtered or unexported fields
}
TokenRefreshURL generates an URL for the token refresh operation
func (*TokenRefreshURL) Build ¶
func (o *TokenRefreshURL) Build() (*url.URL, error)
Build a url path and query string
func (*TokenRefreshURL) BuildFull ¶
func (o *TokenRefreshURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*TokenRefreshURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*TokenRefreshURL) SetBasePath ¶
func (o *TokenRefreshURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*TokenRefreshURL) String ¶
func (o *TokenRefreshURL) String() string
String returns the string representation of the path with query string
func (*TokenRefreshURL) StringFull ¶
func (o *TokenRefreshURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*TokenRefreshURL) WithBasePath ¶
func (o *TokenRefreshURL) WithBasePath(bp string) *TokenRefreshURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type TokenRefreshUnauthorized ¶
TokenRefreshUnauthorized Unauthorized
swagger:response tokenRefreshUnauthorized
func NewTokenRefreshUnauthorized ¶
func NewTokenRefreshUnauthorized() *TokenRefreshUnauthorized
NewTokenRefreshUnauthorized creates TokenRefreshUnauthorized with default headers values
func (*TokenRefreshUnauthorized) SetPayload ¶
func (o *TokenRefreshUnauthorized) SetPayload(payload *models.Error)
SetPayload sets the payload to the token refresh unauthorized response
func (*TokenRefreshUnauthorized) WithPayload ¶
func (o *TokenRefreshUnauthorized) WithPayload(payload *models.Error) *TokenRefreshUnauthorized
WithPayload adds the payload to the token refresh unauthorized response
func (*TokenRefreshUnauthorized) WriteResponse ¶
func (o *TokenRefreshUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
Source Files ¶
- authorize.go
- authorize_parameters.go
- authorize_responses.go
- authorize_urlbuilder.go
- callback.go
- callback_parameters.go
- callback_responses.go
- callback_urlbuilder.go
- login.go
- login_parameters.go
- login_responses.go
- login_urlbuilder.go
- token_info.go
- token_info_parameters.go
- token_info_responses.go
- token_info_urlbuilder.go
- token_refresh.go
- token_refresh_parameters.go
- token_refresh_responses.go
- token_refresh_urlbuilder.go