user_api

package
v0.15.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 5, 2022 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const CheckMinIOVersionOKCode int = 200

CheckMinIOVersionOKCode is the HTTP code returned for type CheckMinIOVersionOK

View Source
const LoginDetailOKCode int = 200

LoginDetailOKCode is the HTTP code returned for type LoginDetailOK

View Source
const LoginOauth2AuthNoContentCode int = 204

LoginOauth2AuthNoContentCode is the HTTP code returned for type LoginOauth2AuthNoContent

View Source
const LoginOperatorNoContentCode int = 204

LoginOperatorNoContentCode is the HTTP code returned for type LoginOperatorNoContent

View Source
const LogoutOKCode int = 200

LogoutOKCode is the HTTP code returned for type LogoutOK

View Source
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 CheckMinIOVersion added in v0.15.1

type CheckMinIOVersion struct {
	Context *middleware.Context
	Handler CheckMinIOVersionHandler
}
CheckMinIOVersion swagger:route GET /check-version UserAPI checkMinIOVersion

Checks the current Operator version against the latest

func NewCheckMinIOVersion added in v0.15.1

func NewCheckMinIOVersion(ctx *middleware.Context, handler CheckMinIOVersionHandler) *CheckMinIOVersion

NewCheckMinIOVersion creates a new http.Handler for the check min i o version operation

func (*CheckMinIOVersion) ServeHTTP added in v0.15.1

func (o *CheckMinIOVersion) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type CheckMinIOVersionDefault added in v0.15.1

type CheckMinIOVersionDefault struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

CheckMinIOVersionDefault Generic error response.

swagger:response checkMinIOVersionDefault

func NewCheckMinIOVersionDefault added in v0.15.1

func NewCheckMinIOVersionDefault(code int) *CheckMinIOVersionDefault

NewCheckMinIOVersionDefault creates CheckMinIOVersionDefault with default headers values

func (*CheckMinIOVersionDefault) SetPayload added in v0.15.1

func (o *CheckMinIOVersionDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the check min i o version default response

func (*CheckMinIOVersionDefault) SetStatusCode added in v0.15.1

func (o *CheckMinIOVersionDefault) SetStatusCode(code int)

SetStatusCode sets the status to the check min i o version default response

func (*CheckMinIOVersionDefault) WithPayload added in v0.15.1

WithPayload adds the payload to the check min i o version default response

func (*CheckMinIOVersionDefault) WithStatusCode added in v0.15.1

func (o *CheckMinIOVersionDefault) WithStatusCode(code int) *CheckMinIOVersionDefault

WithStatusCode adds the status to the check min i o version default response

func (*CheckMinIOVersionDefault) WriteResponse added in v0.15.1

func (o *CheckMinIOVersionDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type CheckMinIOVersionHandler added in v0.15.1

type CheckMinIOVersionHandler interface {
	Handle(CheckMinIOVersionParams) middleware.Responder
}

CheckMinIOVersionHandler interface for that can handle valid check min i o version params

type CheckMinIOVersionHandlerFunc added in v0.15.1

type CheckMinIOVersionHandlerFunc func(CheckMinIOVersionParams) middleware.Responder

CheckMinIOVersionHandlerFunc turns a function with the right signature into a check min i o version handler

func (CheckMinIOVersionHandlerFunc) Handle added in v0.15.1

Handle executing the request and returning a response

type CheckMinIOVersionOK added in v0.15.1

type CheckMinIOVersionOK struct {

	/*
	  In: Body
	*/
	Payload *models.CheckOperatorVersionResponse `json:"body,omitempty"`
}

CheckMinIOVersionOK A successful response.

swagger:response checkMinIOVersionOK

func NewCheckMinIOVersionOK added in v0.15.1

func NewCheckMinIOVersionOK() *CheckMinIOVersionOK

NewCheckMinIOVersionOK creates CheckMinIOVersionOK with default headers values

func (*CheckMinIOVersionOK) SetPayload added in v0.15.1

SetPayload sets the payload to the check min i o version o k response

func (*CheckMinIOVersionOK) WithPayload added in v0.15.1

WithPayload adds the payload to the check min i o version o k response

func (*CheckMinIOVersionOK) WriteResponse added in v0.15.1

func (o *CheckMinIOVersionOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type CheckMinIOVersionParams added in v0.15.1

type CheckMinIOVersionParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`
}

CheckMinIOVersionParams contains all the bound params for the check min i o version operation typically these are obtained from a http.Request

swagger:parameters CheckMinIOVersion”

func NewCheckMinIOVersionParams added in v0.15.1

func NewCheckMinIOVersionParams() CheckMinIOVersionParams

NewCheckMinIOVersionParams creates a new CheckMinIOVersionParams object

There are no default values defined in the spec.

func (*CheckMinIOVersionParams) BindRequest added in v0.15.1

func (o *CheckMinIOVersionParams) 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 NewCheckMinIOVersionParams() beforehand.

type CheckMinIOVersionURL added in v0.15.1

type CheckMinIOVersionURL struct {
	// contains filtered or unexported fields
}

CheckMinIOVersionURL generates an URL for the check min i o version operation

func (*CheckMinIOVersionURL) Build added in v0.15.1

func (o *CheckMinIOVersionURL) Build() (*url.URL, error)

Build a url path and query string

func (*CheckMinIOVersionURL) BuildFull added in v0.15.1

func (o *CheckMinIOVersionURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*CheckMinIOVersionURL) Must added in v0.15.1

func (o *CheckMinIOVersionURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*CheckMinIOVersionURL) SetBasePath added in v0.15.1

func (o *CheckMinIOVersionURL) 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 (*CheckMinIOVersionURL) String added in v0.15.1

func (o *CheckMinIOVersionURL) String() string

String returns the string representation of the path with query string

func (*CheckMinIOVersionURL) StringFull added in v0.15.1

func (o *CheckMinIOVersionURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*CheckMinIOVersionURL) WithBasePath added in v0.15.1

func (o *CheckMinIOVersionURL) WithBasePath(bp string) *CheckMinIOVersionURL

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 LoginDetail

type LoginDetail struct {
	Context *middleware.Context
	Handler LoginDetailHandler
}
LoginDetail swagger:route GET /login UserAPI 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.Error `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.Error)

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.Error) *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

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

type LoginDetailParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`
}

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

func (o *LoginDetailURL) Must(u *url.URL, err error) *url.URL

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 LoginOauth2Auth

type LoginOauth2Auth struct {
	Context *middleware.Context
	Handler LoginOauth2AuthHandler
}
LoginOauth2Auth swagger:route POST /login/oauth2/auth UserAPI 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.Error `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.Error)

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.Error) *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

Handle executing the request and returning a response

type LoginOauth2AuthNoContent added in v0.12.3

type LoginOauth2AuthNoContent struct {
}

LoginOauth2AuthNoContent A successful login.

swagger:response loginOauth2AuthNoContent

func NewLoginOauth2AuthNoContent added in v0.12.3

func NewLoginOauth2AuthNoContent() *LoginOauth2AuthNoContent

NewLoginOauth2AuthNoContent creates LoginOauth2AuthNoContent with default headers values

func (*LoginOauth2AuthNoContent) WriteResponse added in v0.12.3

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

func (o *LoginOauth2AuthURL) Must(u *url.URL, err error) *url.URL

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 LoginOperator

type LoginOperator struct {
	Context *middleware.Context
	Handler LoginOperatorHandler
}
LoginOperator swagger:route POST /login/operator UserAPI loginOperator

Login to Operator Console.

func NewLoginOperator

func NewLoginOperator(ctx *middleware.Context, handler LoginOperatorHandler) *LoginOperator

NewLoginOperator creates a new http.Handler for the login operator operation

func (*LoginOperator) ServeHTTP

func (o *LoginOperator) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type LoginOperatorDefault

type LoginOperatorDefault struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

LoginOperatorDefault Generic error response.

swagger:response loginOperatorDefault

func NewLoginOperatorDefault

func NewLoginOperatorDefault(code int) *LoginOperatorDefault

NewLoginOperatorDefault creates LoginOperatorDefault with default headers values

func (*LoginOperatorDefault) SetPayload

func (o *LoginOperatorDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the login operator default response

func (*LoginOperatorDefault) SetStatusCode

func (o *LoginOperatorDefault) SetStatusCode(code int)

SetStatusCode sets the status to the login operator default response

func (*LoginOperatorDefault) WithPayload

func (o *LoginOperatorDefault) WithPayload(payload *models.Error) *LoginOperatorDefault

WithPayload adds the payload to the login operator default response

func (*LoginOperatorDefault) WithStatusCode

func (o *LoginOperatorDefault) WithStatusCode(code int) *LoginOperatorDefault

WithStatusCode adds the status to the login operator default response

func (*LoginOperatorDefault) WriteResponse

func (o *LoginOperatorDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type LoginOperatorHandler

type LoginOperatorHandler interface {
	Handle(LoginOperatorParams) middleware.Responder
}

LoginOperatorHandler interface for that can handle valid login operator params

type LoginOperatorHandlerFunc

type LoginOperatorHandlerFunc func(LoginOperatorParams) middleware.Responder

LoginOperatorHandlerFunc turns a function with the right signature into a login operator handler

func (LoginOperatorHandlerFunc) Handle

Handle executing the request and returning a response

type LoginOperatorNoContent added in v0.12.3

type LoginOperatorNoContent struct {
}

LoginOperatorNoContent A successful login.

swagger:response loginOperatorNoContent

func NewLoginOperatorNoContent added in v0.12.3

func NewLoginOperatorNoContent() *LoginOperatorNoContent

NewLoginOperatorNoContent creates LoginOperatorNoContent with default headers values

func (*LoginOperatorNoContent) WriteResponse added in v0.12.3

func (o *LoginOperatorNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type LoginOperatorParams

type LoginOperatorParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*
	  Required: true
	  In: body
	*/
	Body *models.LoginOperatorRequest
}

LoginOperatorParams contains all the bound params for the login operator operation typically these are obtained from a http.Request

swagger:parameters LoginOperator

func NewLoginOperatorParams

func NewLoginOperatorParams() LoginOperatorParams

NewLoginOperatorParams creates a new LoginOperatorParams object

There are no default values defined in the spec.

func (*LoginOperatorParams) BindRequest

func (o *LoginOperatorParams) 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 NewLoginOperatorParams() beforehand.

type LoginOperatorURL

type LoginOperatorURL struct {
	// contains filtered or unexported fields
}

LoginOperatorURL generates an URL for the login operator operation

func (*LoginOperatorURL) Build

func (o *LoginOperatorURL) Build() (*url.URL, error)

Build a url path and query string

func (*LoginOperatorURL) BuildFull

func (o *LoginOperatorURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*LoginOperatorURL) Must

func (o *LoginOperatorURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*LoginOperatorURL) SetBasePath

func (o *LoginOperatorURL) 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 (*LoginOperatorURL) String

func (o *LoginOperatorURL) String() string

String returns the string representation of the path with query string

func (*LoginOperatorURL) StringFull

func (o *LoginOperatorURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*LoginOperatorURL) WithBasePath

func (o *LoginOperatorURL) WithBasePath(bp string) *LoginOperatorURL

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 UserAPI logout

Logout from Operator.

func NewLogout

func NewLogout(ctx *middleware.Context, handler LogoutHandler) *Logout

NewLogout creates a new http.Handler for the logout operation

func (*Logout) ServeHTTP

func (o *Logout) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type LogoutDefault

type LogoutDefault struct {

	/*
	  In: Body
	*/
	Payload *models.Error `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.Error)

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.Error) *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:"-"`
}

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) Build

func (o *LogoutURL) Build() (*url.URL, error)

Build a url path and query string

func (*LogoutURL) BuildFull

func (o *LogoutURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*LogoutURL) Must

func (o *LogoutURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*LogoutURL) SetBasePath

func (o *LogoutURL) 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 (*LogoutURL) String

func (o *LogoutURL) String() string

String returns the string representation of the path with query string

func (*LogoutURL) StringFull

func (o *LogoutURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*LogoutURL) WithBasePath

func (o *LogoutURL) WithBasePath(bp string) *LogoutURL

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 UserAPI 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.Error `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.Error)

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.Error) *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

Handle executing the request and returning a response

type SessionCheckOK

type SessionCheckOK struct {

	/*
	  In: Body
	*/
	Payload *models.OperatorSessionResponse `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.OperatorSessionResponse)

SetPayload sets the payload to the session check o k response

func (*SessionCheckOK) WithPayload

func (o *SessionCheckOK) WithPayload(payload *models.OperatorSessionResponse) *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

type SessionCheckParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`
}

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

func (o *SessionCheckURL) Must(u *url.URL, err error) *url.URL

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL