Documentation ¶
Index ¶
- Constants
- type Login
- type LoginDefault
- func (o *LoginDefault) SetPayload(payload *models.APIError)
- func (o *LoginDefault) SetStatusCode(code int)
- func (o *LoginDefault) WithPayload(payload *models.APIError) *LoginDefault
- func (o *LoginDefault) WithStatusCode(code int) *LoginDefault
- func (o *LoginDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type LoginDetail
- type LoginDetailDefault
- func (o *LoginDetailDefault) SetPayload(payload *models.APIError)
- func (o *LoginDetailDefault) SetStatusCode(code int)
- func (o *LoginDetailDefault) WithPayload(payload *models.APIError) *LoginDetailDefault
- func (o *LoginDetailDefault) WithStatusCode(code int) *LoginDetailDefault
- func (o *LoginDetailDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type LoginDetailHandler
- type LoginDetailHandlerFunc
- type LoginDetailOK
- type LoginDetailParams
- type LoginDetailURL
- func (o *LoginDetailURL) Build() (*url.URL, error)
- func (o *LoginDetailURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *LoginDetailURL) Must(u *url.URL, err error) *url.URL
- func (o *LoginDetailURL) SetBasePath(bp string)
- func (o *LoginDetailURL) String() string
- func (o *LoginDetailURL) StringFull(scheme, host string) string
- func (o *LoginDetailURL) WithBasePath(bp string) *LoginDetailURL
- type LoginHandler
- type LoginHandlerFunc
- type LoginNoContent
- type LoginOauth2Auth
- type LoginOauth2AuthDefault
- func (o *LoginOauth2AuthDefault) SetPayload(payload *models.APIError)
- func (o *LoginOauth2AuthDefault) SetStatusCode(code int)
- func (o *LoginOauth2AuthDefault) WithPayload(payload *models.APIError) *LoginOauth2AuthDefault
- func (o *LoginOauth2AuthDefault) WithStatusCode(code int) *LoginOauth2AuthDefault
- func (o *LoginOauth2AuthDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type LoginOauth2AuthHandler
- type LoginOauth2AuthHandlerFunc
- type LoginOauth2AuthNoContent
- type LoginOauth2AuthParams
- type LoginOauth2AuthURL
- func (o *LoginOauth2AuthURL) Build() (*url.URL, error)
- func (o *LoginOauth2AuthURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *LoginOauth2AuthURL) Must(u *url.URL, err error) *url.URL
- func (o *LoginOauth2AuthURL) SetBasePath(bp string)
- func (o *LoginOauth2AuthURL) String() string
- func (o *LoginOauth2AuthURL) StringFull(scheme, host string) string
- func (o *LoginOauth2AuthURL) WithBasePath(bp string) *LoginOauth2AuthURL
- 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 Logout
- type LogoutDefault
- func (o *LogoutDefault) SetPayload(payload *models.APIError)
- func (o *LogoutDefault) SetStatusCode(code int)
- func (o *LogoutDefault) WithPayload(payload *models.APIError) *LogoutDefault
- func (o *LogoutDefault) WithStatusCode(code int) *LogoutDefault
- func (o *LogoutDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type LogoutHandler
- type LogoutHandlerFunc
- type LogoutOK
- type LogoutParams
- type LogoutURL
- func (o *LogoutURL) Build() (*url.URL, error)
- func (o *LogoutURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *LogoutURL) Must(u *url.URL, err error) *url.URL
- func (o *LogoutURL) SetBasePath(bp string)
- func (o *LogoutURL) String() string
- func (o *LogoutURL) StringFull(scheme, host string) string
- func (o *LogoutURL) WithBasePath(bp string) *LogoutURL
- type SessionCheck
- type SessionCheckDefault
- func (o *SessionCheckDefault) SetPayload(payload *models.APIError)
- func (o *SessionCheckDefault) SetStatusCode(code int)
- func (o *SessionCheckDefault) WithPayload(payload *models.APIError) *SessionCheckDefault
- func (o *SessionCheckDefault) WithStatusCode(code int) *SessionCheckDefault
- func (o *SessionCheckDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type SessionCheckHandler
- type SessionCheckHandlerFunc
- type SessionCheckOK
- type SessionCheckParams
- type SessionCheckURL
- func (o *SessionCheckURL) Build() (*url.URL, error)
- func (o *SessionCheckURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *SessionCheckURL) Must(u *url.URL, err error) *url.URL
- func (o *SessionCheckURL) SetBasePath(bp string)
- func (o *SessionCheckURL) String() string
- func (o *SessionCheckURL) StringFull(scheme, host string) string
- func (o *SessionCheckURL) WithBasePath(bp string) *SessionCheckURL
Constants ¶
const LoginDetailOKCode int = 200
LoginDetailOKCode is the HTTP code returned for type LoginDetailOK
const LoginNoContentCode int = 204
LoginNoContentCode is the HTTP code returned for type LoginNoContent
const LoginOauth2AuthNoContentCode int = 204
LoginOauth2AuthNoContentCode is the HTTP code returned for type LoginOauth2AuthNoContent
const LogoutOKCode int = 200
LogoutOKCode is the HTTP code returned for type LogoutOK
const SessionCheckOKCode int = 200
SessionCheckOKCode is the HTTP code returned for type SessionCheckOK
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Login ¶
type Login struct { Context *middleware.Context Handler LoginHandler }
Login swagger:route POST /login Auth login
Login to Console
func NewLogin ¶
func NewLogin(ctx *middleware.Context, handler LoginHandler) *Login
NewLogin creates a new http.Handler for the login operation
type LoginDefault ¶
type LoginDefault struct { /* In: Body */ Payload *models.APIError `json:"body,omitempty"` // contains filtered or unexported fields }
LoginDefault Generic error response.
swagger:response loginDefault
func NewLoginDefault ¶
func NewLoginDefault(code int) *LoginDefault
NewLoginDefault creates LoginDefault with default headers values
func (*LoginDefault) SetPayload ¶
func (o *LoginDefault) SetPayload(payload *models.APIError)
SetPayload sets the payload to the login default response
func (*LoginDefault) SetStatusCode ¶
func (o *LoginDefault) SetStatusCode(code int)
SetStatusCode sets the status to the login default response
func (*LoginDefault) WithPayload ¶
func (o *LoginDefault) WithPayload(payload *models.APIError) *LoginDefault
WithPayload adds the payload to the login default response
func (*LoginDefault) WithStatusCode ¶
func (o *LoginDefault) WithStatusCode(code int) *LoginDefault
WithStatusCode adds the status to the login default response
func (*LoginDefault) WriteResponse ¶
func (o *LoginDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type LoginDetail ¶
type LoginDetail struct { Context *middleware.Context Handler LoginDetailHandler }
LoginDetail swagger:route GET /login Auth loginDetail
Returns login strategy, form or sso.
func NewLoginDetail ¶
func NewLoginDetail(ctx *middleware.Context, handler LoginDetailHandler) *LoginDetail
NewLoginDetail creates a new http.Handler for the login detail operation
func (*LoginDetail) ServeHTTP ¶
func (o *LoginDetail) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type LoginDetailDefault ¶
type LoginDetailDefault struct { /* In: Body */ Payload *models.APIError `json:"body,omitempty"` // contains filtered or unexported fields }
LoginDetailDefault Generic error response.
swagger:response loginDetailDefault
func NewLoginDetailDefault ¶
func NewLoginDetailDefault(code int) *LoginDetailDefault
NewLoginDetailDefault creates LoginDetailDefault with default headers values
func (*LoginDetailDefault) SetPayload ¶
func (o *LoginDetailDefault) SetPayload(payload *models.APIError)
SetPayload sets the payload to the login detail default response
func (*LoginDetailDefault) SetStatusCode ¶
func (o *LoginDetailDefault) SetStatusCode(code int)
SetStatusCode sets the status to the login detail default response
func (*LoginDetailDefault) WithPayload ¶
func (o *LoginDetailDefault) WithPayload(payload *models.APIError) *LoginDetailDefault
WithPayload adds the payload to the login detail default response
func (*LoginDetailDefault) WithStatusCode ¶
func (o *LoginDetailDefault) WithStatusCode(code int) *LoginDetailDefault
WithStatusCode adds the status to the login detail default response
func (*LoginDetailDefault) WriteResponse ¶
func (o *LoginDetailDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type LoginDetailHandler ¶
type LoginDetailHandler interface {
Handle(LoginDetailParams) middleware.Responder
}
LoginDetailHandler interface for that can handle valid login detail params
type LoginDetailHandlerFunc ¶
type LoginDetailHandlerFunc func(LoginDetailParams) middleware.Responder
LoginDetailHandlerFunc turns a function with the right signature into a login detail handler
func (LoginDetailHandlerFunc) Handle ¶
func (fn LoginDetailHandlerFunc) Handle(params LoginDetailParams) middleware.Responder
Handle executing the request and returning a response
type LoginDetailOK ¶
type LoginDetailOK struct { /* In: Body */ Payload *models.LoginDetails `json:"body,omitempty"` }
LoginDetailOK A successful response.
swagger:response loginDetailOK
func NewLoginDetailOK ¶
func NewLoginDetailOK() *LoginDetailOK
NewLoginDetailOK creates LoginDetailOK with default headers values
func (*LoginDetailOK) SetPayload ¶
func (o *LoginDetailOK) SetPayload(payload *models.LoginDetails)
SetPayload sets the payload to the login detail o k response
func (*LoginDetailOK) WithPayload ¶
func (o *LoginDetailOK) WithPayload(payload *models.LoginDetails) *LoginDetailOK
WithPayload adds the payload to the login detail o k response
func (*LoginDetailOK) WriteResponse ¶
func (o *LoginDetailOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type LoginDetailParams ¶
LoginDetailParams contains all the bound params for the login detail operation typically these are obtained from a http.Request
swagger:parameters LoginDetail
func NewLoginDetailParams ¶
func NewLoginDetailParams() LoginDetailParams
NewLoginDetailParams creates a new LoginDetailParams object
There are no default values defined in the spec.
func (*LoginDetailParams) BindRequest ¶
func (o *LoginDetailParams) 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 NewLoginDetailParams() beforehand.
type LoginDetailURL ¶
type LoginDetailURL struct {
// contains filtered or unexported fields
}
LoginDetailURL generates an URL for the login detail operation
func (*LoginDetailURL) Build ¶
func (o *LoginDetailURL) Build() (*url.URL, error)
Build a url path and query string
func (*LoginDetailURL) BuildFull ¶
func (o *LoginDetailURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*LoginDetailURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*LoginDetailURL) SetBasePath ¶
func (o *LoginDetailURL) 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 (*LoginDetailURL) String ¶
func (o *LoginDetailURL) String() string
String returns the string representation of the path with query string
func (*LoginDetailURL) StringFull ¶
func (o *LoginDetailURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*LoginDetailURL) WithBasePath ¶
func (o *LoginDetailURL) WithBasePath(bp string) *LoginDetailURL
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 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 LoginNoContent ¶
type LoginNoContent struct { }
LoginNoContent A successful login.
swagger:response loginNoContent
func NewLoginNoContent ¶
func NewLoginNoContent() *LoginNoContent
NewLoginNoContent creates LoginNoContent with default headers values
func (*LoginNoContent) WriteResponse ¶
func (o *LoginNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type LoginOauth2Auth ¶
type LoginOauth2Auth struct { Context *middleware.Context Handler LoginOauth2AuthHandler }
LoginOauth2Auth swagger:route POST /login/oauth2/auth Auth loginOauth2Auth
Identity Provider oauth2 callback endpoint.
func NewLoginOauth2Auth ¶
func NewLoginOauth2Auth(ctx *middleware.Context, handler LoginOauth2AuthHandler) *LoginOauth2Auth
NewLoginOauth2Auth creates a new http.Handler for the login oauth2 auth operation
func (*LoginOauth2Auth) ServeHTTP ¶
func (o *LoginOauth2Auth) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type LoginOauth2AuthDefault ¶
type LoginOauth2AuthDefault struct { /* In: Body */ Payload *models.APIError `json:"body,omitempty"` // contains filtered or unexported fields }
LoginOauth2AuthDefault Generic error response.
swagger:response loginOauth2AuthDefault
func NewLoginOauth2AuthDefault ¶
func NewLoginOauth2AuthDefault(code int) *LoginOauth2AuthDefault
NewLoginOauth2AuthDefault creates LoginOauth2AuthDefault with default headers values
func (*LoginOauth2AuthDefault) SetPayload ¶
func (o *LoginOauth2AuthDefault) SetPayload(payload *models.APIError)
SetPayload sets the payload to the login oauth2 auth default response
func (*LoginOauth2AuthDefault) SetStatusCode ¶
func (o *LoginOauth2AuthDefault) SetStatusCode(code int)
SetStatusCode sets the status to the login oauth2 auth default response
func (*LoginOauth2AuthDefault) WithPayload ¶
func (o *LoginOauth2AuthDefault) WithPayload(payload *models.APIError) *LoginOauth2AuthDefault
WithPayload adds the payload to the login oauth2 auth default response
func (*LoginOauth2AuthDefault) WithStatusCode ¶
func (o *LoginOauth2AuthDefault) WithStatusCode(code int) *LoginOauth2AuthDefault
WithStatusCode adds the status to the login oauth2 auth default response
func (*LoginOauth2AuthDefault) WriteResponse ¶
func (o *LoginOauth2AuthDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type LoginOauth2AuthHandler ¶
type LoginOauth2AuthHandler interface {
Handle(LoginOauth2AuthParams) middleware.Responder
}
LoginOauth2AuthHandler interface for that can handle valid login oauth2 auth params
type LoginOauth2AuthHandlerFunc ¶
type LoginOauth2AuthHandlerFunc func(LoginOauth2AuthParams) middleware.Responder
LoginOauth2AuthHandlerFunc turns a function with the right signature into a login oauth2 auth handler
func (LoginOauth2AuthHandlerFunc) Handle ¶
func (fn LoginOauth2AuthHandlerFunc) Handle(params LoginOauth2AuthParams) middleware.Responder
Handle executing the request and returning a response
type LoginOauth2AuthNoContent ¶
type LoginOauth2AuthNoContent struct { }
LoginOauth2AuthNoContent A successful login.
swagger:response loginOauth2AuthNoContent
func NewLoginOauth2AuthNoContent ¶
func NewLoginOauth2AuthNoContent() *LoginOauth2AuthNoContent
NewLoginOauth2AuthNoContent creates LoginOauth2AuthNoContent with default headers values
func (*LoginOauth2AuthNoContent) WriteResponse ¶
func (o *LoginOauth2AuthNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type LoginOauth2AuthParams ¶
type LoginOauth2AuthParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: body */ Body *models.LoginOauth2AuthRequest }
LoginOauth2AuthParams contains all the bound params for the login oauth2 auth operation typically these are obtained from a http.Request
swagger:parameters LoginOauth2Auth
func NewLoginOauth2AuthParams ¶
func NewLoginOauth2AuthParams() LoginOauth2AuthParams
NewLoginOauth2AuthParams creates a new LoginOauth2AuthParams object
There are no default values defined in the spec.
func (*LoginOauth2AuthParams) BindRequest ¶
func (o *LoginOauth2AuthParams) 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 NewLoginOauth2AuthParams() beforehand.
type LoginOauth2AuthURL ¶
type LoginOauth2AuthURL struct {
// contains filtered or unexported fields
}
LoginOauth2AuthURL generates an URL for the login oauth2 auth operation
func (*LoginOauth2AuthURL) Build ¶
func (o *LoginOauth2AuthURL) Build() (*url.URL, error)
Build a url path and query string
func (*LoginOauth2AuthURL) BuildFull ¶
func (o *LoginOauth2AuthURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*LoginOauth2AuthURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*LoginOauth2AuthURL) SetBasePath ¶
func (o *LoginOauth2AuthURL) 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 (*LoginOauth2AuthURL) String ¶
func (o *LoginOauth2AuthURL) String() string
String returns the string representation of the path with query string
func (*LoginOauth2AuthURL) StringFull ¶
func (o *LoginOauth2AuthURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*LoginOauth2AuthURL) WithBasePath ¶
func (o *LoginOauth2AuthURL) WithBasePath(bp string) *LoginOauth2AuthURL
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 LoginParams ¶
type LoginParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: body */ Body *models.LoginRequest }
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 Logout ¶
type Logout struct { Context *middleware.Context Handler LogoutHandler }
Logout swagger:route POST /logout Auth logout
Logout from Console.
func NewLogout ¶
func NewLogout(ctx *middleware.Context, handler LogoutHandler) *Logout
NewLogout creates a new http.Handler for the logout operation
type LogoutDefault ¶
type LogoutDefault struct { /* In: Body */ Payload *models.APIError `json:"body,omitempty"` // contains filtered or unexported fields }
LogoutDefault Generic error response.
swagger:response logoutDefault
func NewLogoutDefault ¶
func NewLogoutDefault(code int) *LogoutDefault
NewLogoutDefault creates LogoutDefault with default headers values
func (*LogoutDefault) SetPayload ¶
func (o *LogoutDefault) SetPayload(payload *models.APIError)
SetPayload sets the payload to the logout default response
func (*LogoutDefault) SetStatusCode ¶
func (o *LogoutDefault) SetStatusCode(code int)
SetStatusCode sets the status to the logout default response
func (*LogoutDefault) WithPayload ¶
func (o *LogoutDefault) WithPayload(payload *models.APIError) *LogoutDefault
WithPayload adds the payload to the logout default response
func (*LogoutDefault) WithStatusCode ¶
func (o *LogoutDefault) WithStatusCode(code int) *LogoutDefault
WithStatusCode adds the status to the logout default response
func (*LogoutDefault) WriteResponse ¶
func (o *LogoutDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type LogoutHandler ¶
type LogoutHandler interface {
Handle(LogoutParams, *models.Principal) middleware.Responder
}
LogoutHandler interface for that can handle valid logout params
type LogoutHandlerFunc ¶
type LogoutHandlerFunc func(LogoutParams, *models.Principal) middleware.Responder
LogoutHandlerFunc turns a function with the right signature into a logout handler
func (LogoutHandlerFunc) Handle ¶
func (fn LogoutHandlerFunc) Handle(params LogoutParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type LogoutOK ¶
type LogoutOK struct { }
LogoutOK A successful response.
swagger:response logoutOK
func NewLogoutOK ¶
func NewLogoutOK() *LogoutOK
NewLogoutOK creates LogoutOK with default headers values
func (*LogoutOK) WriteResponse ¶
func (o *LogoutOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type LogoutParams ¶
type LogoutParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: body */ Body *models.LogoutRequest }
LogoutParams contains all the bound params for the logout operation typically these are obtained from a http.Request
swagger:parameters Logout
func NewLogoutParams ¶
func NewLogoutParams() LogoutParams
NewLogoutParams creates a new LogoutParams object
There are no default values defined in the spec.
func (*LogoutParams) BindRequest ¶
func (o *LogoutParams) 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 NewLogoutParams() beforehand.
type LogoutURL ¶
type LogoutURL struct {
// contains filtered or unexported fields
}
LogoutURL generates an URL for the logout operation
func (*LogoutURL) 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 (*LogoutURL) StringFull ¶
StringFull returns the string representation of a complete url
func (*LogoutURL) 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 SessionCheck ¶
type SessionCheck struct { Context *middleware.Context Handler SessionCheckHandler }
SessionCheck swagger:route GET /session Auth sessionCheck
Endpoint to check if your session is still valid
func NewSessionCheck ¶
func NewSessionCheck(ctx *middleware.Context, handler SessionCheckHandler) *SessionCheck
NewSessionCheck creates a new http.Handler for the session check operation
func (*SessionCheck) ServeHTTP ¶
func (o *SessionCheck) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type SessionCheckDefault ¶
type SessionCheckDefault struct { /* In: Body */ Payload *models.APIError `json:"body,omitempty"` // contains filtered or unexported fields }
SessionCheckDefault Generic error response.
swagger:response sessionCheckDefault
func NewSessionCheckDefault ¶
func NewSessionCheckDefault(code int) *SessionCheckDefault
NewSessionCheckDefault creates SessionCheckDefault with default headers values
func (*SessionCheckDefault) SetPayload ¶
func (o *SessionCheckDefault) SetPayload(payload *models.APIError)
SetPayload sets the payload to the session check default response
func (*SessionCheckDefault) SetStatusCode ¶
func (o *SessionCheckDefault) SetStatusCode(code int)
SetStatusCode sets the status to the session check default response
func (*SessionCheckDefault) WithPayload ¶
func (o *SessionCheckDefault) WithPayload(payload *models.APIError) *SessionCheckDefault
WithPayload adds the payload to the session check default response
func (*SessionCheckDefault) WithStatusCode ¶
func (o *SessionCheckDefault) WithStatusCode(code int) *SessionCheckDefault
WithStatusCode adds the status to the session check default response
func (*SessionCheckDefault) WriteResponse ¶
func (o *SessionCheckDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type SessionCheckHandler ¶
type SessionCheckHandler interface {
Handle(SessionCheckParams, *models.Principal) middleware.Responder
}
SessionCheckHandler interface for that can handle valid session check params
type SessionCheckHandlerFunc ¶
type SessionCheckHandlerFunc func(SessionCheckParams, *models.Principal) middleware.Responder
SessionCheckHandlerFunc turns a function with the right signature into a session check handler
func (SessionCheckHandlerFunc) Handle ¶
func (fn SessionCheckHandlerFunc) Handle(params SessionCheckParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type SessionCheckOK ¶
type SessionCheckOK struct { /* In: Body */ Payload *models.SessionResponse `json:"body,omitempty"` }
SessionCheckOK A successful response.
swagger:response sessionCheckOK
func NewSessionCheckOK ¶
func NewSessionCheckOK() *SessionCheckOK
NewSessionCheckOK creates SessionCheckOK with default headers values
func (*SessionCheckOK) SetPayload ¶
func (o *SessionCheckOK) SetPayload(payload *models.SessionResponse)
SetPayload sets the payload to the session check o k response
func (*SessionCheckOK) WithPayload ¶
func (o *SessionCheckOK) WithPayload(payload *models.SessionResponse) *SessionCheckOK
WithPayload adds the payload to the session check o k response
func (*SessionCheckOK) WriteResponse ¶
func (o *SessionCheckOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type SessionCheckParams ¶
SessionCheckParams contains all the bound params for the session check operation typically these are obtained from a http.Request
swagger:parameters SessionCheck
func NewSessionCheckParams ¶
func NewSessionCheckParams() SessionCheckParams
NewSessionCheckParams creates a new SessionCheckParams object
There are no default values defined in the spec.
func (*SessionCheckParams) BindRequest ¶
func (o *SessionCheckParams) 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 NewSessionCheckParams() beforehand.
type SessionCheckURL ¶
type SessionCheckURL struct {
// contains filtered or unexported fields
}
SessionCheckURL generates an URL for the session check operation
func (*SessionCheckURL) Build ¶
func (o *SessionCheckURL) Build() (*url.URL, error)
Build a url path and query string
func (*SessionCheckURL) BuildFull ¶
func (o *SessionCheckURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*SessionCheckURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*SessionCheckURL) SetBasePath ¶
func (o *SessionCheckURL) 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 (*SessionCheckURL) String ¶
func (o *SessionCheckURL) String() string
String returns the string representation of the path with query string
func (*SessionCheckURL) StringFull ¶
func (o *SessionCheckURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*SessionCheckURL) WithBasePath ¶
func (o *SessionCheckURL) WithBasePath(bp string) *SessionCheckURL
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
Source Files ¶
- login.go
- login_detail.go
- login_detail_parameters.go
- login_detail_responses.go
- login_detail_urlbuilder.go
- login_oauth2_auth.go
- login_oauth2_auth_parameters.go
- login_oauth2_auth_responses.go
- login_oauth2_auth_urlbuilder.go
- login_parameters.go
- login_responses.go
- login_urlbuilder.go
- logout.go
- logout_parameters.go
- logout_responses.go
- logout_urlbuilder.go
- session_check.go
- session_check_parameters.go
- session_check_responses.go
- session_check_urlbuilder.go