Documentation ¶
Index ¶
- Constants
- type GetAuthLogout
- type GetAuthLogoutHandler
- type GetAuthLogoutHandlerFunc
- type GetAuthLogoutOK
- type GetAuthLogoutParams
- type GetAuthLogoutURL
- func (o *GetAuthLogoutURL) Build() (*url.URL, error)
- func (o *GetAuthLogoutURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetAuthLogoutURL) Must(u *url.URL, err error) *url.URL
- func (o *GetAuthLogoutURL) SetBasePath(bp string)
- func (o *GetAuthLogoutURL) String() string
- func (o *GetAuthLogoutURL) StringFull(scheme, host string) string
- func (o *GetAuthLogoutURL) WithBasePath(bp string) *GetAuthLogoutURL
- type GetAuthLogoutUnauthorized
- type GetAuthSession
- type GetAuthSessionConflict
- type GetAuthSessionHandler
- type GetAuthSessionHandlerFunc
- type GetAuthSessionOK
- type GetAuthSessionParams
- type GetAuthSessionURL
- func (o *GetAuthSessionURL) Build() (*url.URL, error)
- func (o *GetAuthSessionURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetAuthSessionURL) Must(u *url.URL, err error) *url.URL
- func (o *GetAuthSessionURL) SetBasePath(bp string)
- func (o *GetAuthSessionURL) String() string
- func (o *GetAuthSessionURL) StringFull(scheme, host string) string
- func (o *GetAuthSessionURL) WithBasePath(bp string) *GetAuthSessionURL
- type GetAuthSessionUnauthorized
- type PostAuthAuthenticate
- type PostAuthAuthenticateConflict
- type PostAuthAuthenticateHandler
- type PostAuthAuthenticateHandlerFunc
- type PostAuthAuthenticateOK
- type PostAuthAuthenticateParams
- type PostAuthAuthenticateURL
- func (o *PostAuthAuthenticateURL) Build() (*url.URL, error)
- func (o *PostAuthAuthenticateURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *PostAuthAuthenticateURL) Must(u *url.URL, err error) *url.URL
- func (o *PostAuthAuthenticateURL) SetBasePath(bp string)
- func (o *PostAuthAuthenticateURL) String() string
- func (o *PostAuthAuthenticateURL) StringFull(scheme, host string) string
- func (o *PostAuthAuthenticateURL) WithBasePath(bp string) *PostAuthAuthenticateURL
- type PostAuthAuthenticateUnauthorized
Constants ¶
const GetAuthLogoutOKCode int = 200
GetAuthLogoutOKCode is the HTTP code returned for type GetAuthLogoutOK
GetAuthLogoutUnauthorizedCode is the HTTP code returned for type GetAuthLogoutUnauthorized
const GetAuthSessionConflictCode int = 409
GetAuthSessionConflictCode is the HTTP code returned for type GetAuthSessionConflict
const GetAuthSessionOKCode int = 200
GetAuthSessionOKCode is the HTTP code returned for type GetAuthSessionOK
GetAuthSessionUnauthorizedCode is the HTTP code returned for type GetAuthSessionUnauthorized
const PostAuthAuthenticateConflictCode int = 409
PostAuthAuthenticateConflictCode is the HTTP code returned for type PostAuthAuthenticateConflict
const PostAuthAuthenticateOKCode int = 200
PostAuthAuthenticateOKCode is the HTTP code returned for type PostAuthAuthenticateOK
PostAuthAuthenticateUnauthorizedCode is the HTTP code returned for type PostAuthAuthenticateUnauthorized
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetAuthLogout ¶
type GetAuthLogout struct { Context *middleware.Context Handler GetAuthLogoutHandler }
GetAuthLogout swagger:route GET /auth/logout noodle-auth getAuthLogout
Log out a user
func NewGetAuthLogout ¶
func NewGetAuthLogout(ctx *middleware.Context, handler GetAuthLogoutHandler) *GetAuthLogout
NewGetAuthLogout creates a new http.Handler for the get auth logout operation
func (*GetAuthLogout) ServeHTTP ¶
func (o *GetAuthLogout) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetAuthLogoutHandler ¶
type GetAuthLogoutHandler interface {
Handle(GetAuthLogoutParams, *models.Principal) middleware.Responder
}
GetAuthLogoutHandler interface for that can handle valid get auth logout params
type GetAuthLogoutHandlerFunc ¶
type GetAuthLogoutHandlerFunc func(GetAuthLogoutParams, *models.Principal) middleware.Responder
GetAuthLogoutHandlerFunc turns a function with the right signature into a get auth logout handler
func (GetAuthLogoutHandlerFunc) Handle ¶
func (fn GetAuthLogoutHandlerFunc) Handle(params GetAuthLogoutParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type GetAuthLogoutOK ¶
type GetAuthLogoutOK struct { }
GetAuthLogoutOK OK
swagger:response getAuthLogoutOK
func NewGetAuthLogoutOK ¶
func NewGetAuthLogoutOK() *GetAuthLogoutOK
NewGetAuthLogoutOK creates GetAuthLogoutOK with default headers values
func (*GetAuthLogoutOK) WriteResponse ¶
func (o *GetAuthLogoutOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetAuthLogoutParams ¶
GetAuthLogoutParams contains all the bound params for the get auth logout operation typically these are obtained from a http.Request
swagger:parameters GetAuthLogout
func NewGetAuthLogoutParams ¶
func NewGetAuthLogoutParams() GetAuthLogoutParams
NewGetAuthLogoutParams creates a new GetAuthLogoutParams object
There are no default values defined in the spec.
func (*GetAuthLogoutParams) BindRequest ¶
func (o *GetAuthLogoutParams) 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 NewGetAuthLogoutParams() beforehand.
type GetAuthLogoutURL ¶
type GetAuthLogoutURL struct {
// contains filtered or unexported fields
}
GetAuthLogoutURL generates an URL for the get auth logout operation
func (*GetAuthLogoutURL) Build ¶
func (o *GetAuthLogoutURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetAuthLogoutURL) BuildFull ¶
func (o *GetAuthLogoutURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetAuthLogoutURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetAuthLogoutURL) SetBasePath ¶
func (o *GetAuthLogoutURL) 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 (*GetAuthLogoutURL) String ¶
func (o *GetAuthLogoutURL) String() string
String returns the string representation of the path with query string
func (*GetAuthLogoutURL) StringFull ¶
func (o *GetAuthLogoutURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetAuthLogoutURL) WithBasePath ¶
func (o *GetAuthLogoutURL) WithBasePath(bp string) *GetAuthLogoutURL
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 GetAuthLogoutUnauthorized ¶
GetAuthLogoutUnauthorized unauthorized
swagger:response getAuthLogoutUnauthorized
func NewGetAuthLogoutUnauthorized ¶
func NewGetAuthLogoutUnauthorized() *GetAuthLogoutUnauthorized
NewGetAuthLogoutUnauthorized creates GetAuthLogoutUnauthorized with default headers values
func (*GetAuthLogoutUnauthorized) SetPayload ¶
func (o *GetAuthLogoutUnauthorized) SetPayload(payload *models.Error)
SetPayload sets the payload to the get auth logout unauthorized response
func (*GetAuthLogoutUnauthorized) WithPayload ¶
func (o *GetAuthLogoutUnauthorized) WithPayload(payload *models.Error) *GetAuthLogoutUnauthorized
WithPayload adds the payload to the get auth logout unauthorized response
func (*GetAuthLogoutUnauthorized) WriteResponse ¶
func (o *GetAuthLogoutUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetAuthSession ¶
type GetAuthSession struct { Context *middleware.Context Handler GetAuthSessionHandler }
GetAuthSession swagger:route GET /auth/session noodle-auth getAuthSession
Get Session for Token
func NewGetAuthSession ¶
func NewGetAuthSession(ctx *middleware.Context, handler GetAuthSessionHandler) *GetAuthSession
NewGetAuthSession creates a new http.Handler for the get auth session operation
func (*GetAuthSession) ServeHTTP ¶
func (o *GetAuthSession) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetAuthSessionConflict ¶
GetAuthSessionConflict Failed
swagger:response getAuthSessionConflict
func NewGetAuthSessionConflict ¶
func NewGetAuthSessionConflict() *GetAuthSessionConflict
NewGetAuthSessionConflict creates GetAuthSessionConflict with default headers values
func (*GetAuthSessionConflict) SetPayload ¶
func (o *GetAuthSessionConflict) SetPayload(payload *models.Error)
SetPayload sets the payload to the get auth session conflict response
func (*GetAuthSessionConflict) WithPayload ¶
func (o *GetAuthSessionConflict) WithPayload(payload *models.Error) *GetAuthSessionConflict
WithPayload adds the payload to the get auth session conflict response
func (*GetAuthSessionConflict) WriteResponse ¶
func (o *GetAuthSessionConflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetAuthSessionHandler ¶
type GetAuthSessionHandler interface {
Handle(GetAuthSessionParams, *models.Principal) middleware.Responder
}
GetAuthSessionHandler interface for that can handle valid get auth session params
type GetAuthSessionHandlerFunc ¶
type GetAuthSessionHandlerFunc func(GetAuthSessionParams, *models.Principal) middleware.Responder
GetAuthSessionHandlerFunc turns a function with the right signature into a get auth session handler
func (GetAuthSessionHandlerFunc) Handle ¶
func (fn GetAuthSessionHandlerFunc) Handle(params GetAuthSessionParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type GetAuthSessionOK ¶
type GetAuthSessionOK struct { /* In: Body */ Payload *models.UserSession `json:"body,omitempty"` }
GetAuthSessionOK OK
swagger:response getAuthSessionOK
func NewGetAuthSessionOK ¶
func NewGetAuthSessionOK() *GetAuthSessionOK
NewGetAuthSessionOK creates GetAuthSessionOK with default headers values
func (*GetAuthSessionOK) SetPayload ¶
func (o *GetAuthSessionOK) SetPayload(payload *models.UserSession)
SetPayload sets the payload to the get auth session o k response
func (*GetAuthSessionOK) WithPayload ¶
func (o *GetAuthSessionOK) WithPayload(payload *models.UserSession) *GetAuthSessionOK
WithPayload adds the payload to the get auth session o k response
func (*GetAuthSessionOK) WriteResponse ¶
func (o *GetAuthSessionOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetAuthSessionParams ¶
type GetAuthSessionParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: query */ Token string }
GetAuthSessionParams contains all the bound params for the get auth session operation typically these are obtained from a http.Request
swagger:parameters GetAuthSession
func NewGetAuthSessionParams ¶
func NewGetAuthSessionParams() GetAuthSessionParams
NewGetAuthSessionParams creates a new GetAuthSessionParams object
There are no default values defined in the spec.
func (*GetAuthSessionParams) BindRequest ¶
func (o *GetAuthSessionParams) 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 NewGetAuthSessionParams() beforehand.
type GetAuthSessionURL ¶
type GetAuthSessionURL struct { Token string // contains filtered or unexported fields }
GetAuthSessionURL generates an URL for the get auth session operation
func (*GetAuthSessionURL) Build ¶
func (o *GetAuthSessionURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetAuthSessionURL) BuildFull ¶
func (o *GetAuthSessionURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetAuthSessionURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetAuthSessionURL) SetBasePath ¶
func (o *GetAuthSessionURL) 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 (*GetAuthSessionURL) String ¶
func (o *GetAuthSessionURL) String() string
String returns the string representation of the path with query string
func (*GetAuthSessionURL) StringFull ¶
func (o *GetAuthSessionURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetAuthSessionURL) WithBasePath ¶
func (o *GetAuthSessionURL) WithBasePath(bp string) *GetAuthSessionURL
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 GetAuthSessionUnauthorized ¶
GetAuthSessionUnauthorized unauthorized
swagger:response getAuthSessionUnauthorized
func NewGetAuthSessionUnauthorized ¶
func NewGetAuthSessionUnauthorized() *GetAuthSessionUnauthorized
NewGetAuthSessionUnauthorized creates GetAuthSessionUnauthorized with default headers values
func (*GetAuthSessionUnauthorized) SetPayload ¶
func (o *GetAuthSessionUnauthorized) SetPayload(payload *models.Error)
SetPayload sets the payload to the get auth session unauthorized response
func (*GetAuthSessionUnauthorized) WithPayload ¶
func (o *GetAuthSessionUnauthorized) WithPayload(payload *models.Error) *GetAuthSessionUnauthorized
WithPayload adds the payload to the get auth session unauthorized response
func (*GetAuthSessionUnauthorized) WriteResponse ¶
func (o *GetAuthSessionUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PostAuthAuthenticate ¶
type PostAuthAuthenticate struct { Context *middleware.Context Handler PostAuthAuthenticateHandler }
PostAuthAuthenticate swagger:route POST /auth/authenticate noodle-auth postAuthAuthenticate
Authenticates a User
func NewPostAuthAuthenticate ¶
func NewPostAuthAuthenticate(ctx *middleware.Context, handler PostAuthAuthenticateHandler) *PostAuthAuthenticate
NewPostAuthAuthenticate creates a new http.Handler for the post auth authenticate operation
func (*PostAuthAuthenticate) ServeHTTP ¶
func (o *PostAuthAuthenticate) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type PostAuthAuthenticateConflict ¶
type PostAuthAuthenticateConflict struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
PostAuthAuthenticateConflict Failed
swagger:response postAuthAuthenticateConflict
func NewPostAuthAuthenticateConflict ¶
func NewPostAuthAuthenticateConflict() *PostAuthAuthenticateConflict
NewPostAuthAuthenticateConflict creates PostAuthAuthenticateConflict with default headers values
func (*PostAuthAuthenticateConflict) SetPayload ¶
func (o *PostAuthAuthenticateConflict) SetPayload(payload *models.Error)
SetPayload sets the payload to the post auth authenticate conflict response
func (*PostAuthAuthenticateConflict) WithPayload ¶
func (o *PostAuthAuthenticateConflict) WithPayload(payload *models.Error) *PostAuthAuthenticateConflict
WithPayload adds the payload to the post auth authenticate conflict response
func (*PostAuthAuthenticateConflict) WriteResponse ¶
func (o *PostAuthAuthenticateConflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PostAuthAuthenticateHandler ¶
type PostAuthAuthenticateHandler interface {
Handle(PostAuthAuthenticateParams) middleware.Responder
}
PostAuthAuthenticateHandler interface for that can handle valid post auth authenticate params
type PostAuthAuthenticateHandlerFunc ¶
type PostAuthAuthenticateHandlerFunc func(PostAuthAuthenticateParams) middleware.Responder
PostAuthAuthenticateHandlerFunc turns a function with the right signature into a post auth authenticate handler
func (PostAuthAuthenticateHandlerFunc) Handle ¶
func (fn PostAuthAuthenticateHandlerFunc) Handle(params PostAuthAuthenticateParams) middleware.Responder
Handle executing the request and returning a response
type PostAuthAuthenticateOK ¶
type PostAuthAuthenticateOK struct { /* In: Body */ Payload *models.UserSession `json:"body,omitempty"` }
PostAuthAuthenticateOK OK
swagger:response postAuthAuthenticateOK
func NewPostAuthAuthenticateOK ¶
func NewPostAuthAuthenticateOK() *PostAuthAuthenticateOK
NewPostAuthAuthenticateOK creates PostAuthAuthenticateOK with default headers values
func (*PostAuthAuthenticateOK) SetPayload ¶
func (o *PostAuthAuthenticateOK) SetPayload(payload *models.UserSession)
SetPayload sets the payload to the post auth authenticate o k response
func (*PostAuthAuthenticateOK) WithPayload ¶
func (o *PostAuthAuthenticateOK) WithPayload(payload *models.UserSession) *PostAuthAuthenticateOK
WithPayload adds the payload to the post auth authenticate o k response
func (*PostAuthAuthenticateOK) WriteResponse ¶
func (o *PostAuthAuthenticateOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PostAuthAuthenticateParams ¶
type PostAuthAuthenticateParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: body */ Login *models.UserLogin }
PostAuthAuthenticateParams contains all the bound params for the post auth authenticate operation typically these are obtained from a http.Request
swagger:parameters PostAuthAuthenticate
func NewPostAuthAuthenticateParams ¶
func NewPostAuthAuthenticateParams() PostAuthAuthenticateParams
NewPostAuthAuthenticateParams creates a new PostAuthAuthenticateParams object
There are no default values defined in the spec.
func (*PostAuthAuthenticateParams) BindRequest ¶
func (o *PostAuthAuthenticateParams) 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 NewPostAuthAuthenticateParams() beforehand.
type PostAuthAuthenticateURL ¶
type PostAuthAuthenticateURL struct {
// contains filtered or unexported fields
}
PostAuthAuthenticateURL generates an URL for the post auth authenticate operation
func (*PostAuthAuthenticateURL) Build ¶
func (o *PostAuthAuthenticateURL) Build() (*url.URL, error)
Build a url path and query string
func (*PostAuthAuthenticateURL) BuildFull ¶
func (o *PostAuthAuthenticateURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*PostAuthAuthenticateURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*PostAuthAuthenticateURL) SetBasePath ¶
func (o *PostAuthAuthenticateURL) 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 (*PostAuthAuthenticateURL) String ¶
func (o *PostAuthAuthenticateURL) String() string
String returns the string representation of the path with query string
func (*PostAuthAuthenticateURL) StringFull ¶
func (o *PostAuthAuthenticateURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*PostAuthAuthenticateURL) WithBasePath ¶
func (o *PostAuthAuthenticateURL) WithBasePath(bp string) *PostAuthAuthenticateURL
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 PostAuthAuthenticateUnauthorized ¶
PostAuthAuthenticateUnauthorized unauthorized
swagger:response postAuthAuthenticateUnauthorized
func NewPostAuthAuthenticateUnauthorized ¶
func NewPostAuthAuthenticateUnauthorized() *PostAuthAuthenticateUnauthorized
NewPostAuthAuthenticateUnauthorized creates PostAuthAuthenticateUnauthorized with default headers values
func (*PostAuthAuthenticateUnauthorized) SetPayload ¶
func (o *PostAuthAuthenticateUnauthorized) SetPayload(payload *models.Error)
SetPayload sets the payload to the post auth authenticate unauthorized response
func (*PostAuthAuthenticateUnauthorized) WithPayload ¶
func (o *PostAuthAuthenticateUnauthorized) WithPayload(payload *models.Error) *PostAuthAuthenticateUnauthorized
WithPayload adds the payload to the post auth authenticate unauthorized response
func (*PostAuthAuthenticateUnauthorized) WriteResponse ¶
func (o *PostAuthAuthenticateUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
Source Files ¶
- get_auth_logout.go
- get_auth_logout_parameters.go
- get_auth_logout_responses.go
- get_auth_logout_urlbuilder.go
- get_auth_session.go
- get_auth_session_parameters.go
- get_auth_session_responses.go
- get_auth_session_urlbuilder.go
- post_auth_authenticate.go
- post_auth_authenticate_parameters.go
- post_auth_authenticate_responses.go
- post_auth_authenticate_urlbuilder.go