users

package
v1.29.0 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2025 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const GetOwnInfoInternalServerErrorCode int = 500

GetOwnInfoInternalServerErrorCode is the HTTP code returned for type GetOwnInfoInternalServerError

View Source
const GetOwnInfoOKCode int = 200

GetOwnInfoOKCode is the HTTP code returned for type GetOwnInfoOK

View Source
const GetOwnInfoUnauthorizedCode int = 401

GetOwnInfoUnauthorizedCode is the HTTP code returned for type GetOwnInfoUnauthorized

Variables

This section is empty.

Functions

This section is empty.

Types

type GetOwnInfo

type GetOwnInfo struct {
	Context *middleware.Context
	Handler GetOwnInfoHandler
}
GetOwnInfo swagger:route GET /users/own-info users getOwnInfo

get info relevant to own user, e.g. username, roles

func NewGetOwnInfo

func NewGetOwnInfo(ctx *middleware.Context, handler GetOwnInfoHandler) *GetOwnInfo

NewGetOwnInfo creates a new http.Handler for the get own info operation

func (*GetOwnInfo) ServeHTTP

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

type GetOwnInfoHandler

type GetOwnInfoHandler interface {
	Handle(GetOwnInfoParams, *models.Principal) middleware.Responder
}

GetOwnInfoHandler interface for that can handle valid get own info params

type GetOwnInfoHandlerFunc

type GetOwnInfoHandlerFunc func(GetOwnInfoParams, *models.Principal) middleware.Responder

GetOwnInfoHandlerFunc turns a function with the right signature into a get own info handler

func (GetOwnInfoHandlerFunc) Handle

Handle executing the request and returning a response

type GetOwnInfoInternalServerError

type GetOwnInfoInternalServerError struct {

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

GetOwnInfoInternalServerError An error has occurred while trying to fulfill the request. Most likely the ErrorResponse will contain more information about the error.

swagger:response getOwnInfoInternalServerError

func NewGetOwnInfoInternalServerError

func NewGetOwnInfoInternalServerError() *GetOwnInfoInternalServerError

NewGetOwnInfoInternalServerError creates GetOwnInfoInternalServerError with default headers values

func (*GetOwnInfoInternalServerError) SetPayload

func (o *GetOwnInfoInternalServerError) SetPayload(payload *models.ErrorResponse)

SetPayload sets the payload to the get own info internal server error response

func (*GetOwnInfoInternalServerError) WithPayload

WithPayload adds the payload to the get own info internal server error response

func (*GetOwnInfoInternalServerError) WriteResponse

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

WriteResponse to the client

type GetOwnInfoOK

type GetOwnInfoOK struct {

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

GetOwnInfoOK Info about the user

swagger:response getOwnInfoOK

func NewGetOwnInfoOK

func NewGetOwnInfoOK() *GetOwnInfoOK

NewGetOwnInfoOK creates GetOwnInfoOK with default headers values

func (*GetOwnInfoOK) SetPayload

func (o *GetOwnInfoOK) SetPayload(payload *models.UserInfo)

SetPayload sets the payload to the get own info o k response

func (*GetOwnInfoOK) WithPayload

func (o *GetOwnInfoOK) WithPayload(payload *models.UserInfo) *GetOwnInfoOK

WithPayload adds the payload to the get own info o k response

func (*GetOwnInfoOK) WriteResponse

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

WriteResponse to the client

type GetOwnInfoParams

type GetOwnInfoParams struct {

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

GetOwnInfoParams contains all the bound params for the get own info operation typically these are obtained from a http.Request

swagger:parameters getOwnInfo

func NewGetOwnInfoParams

func NewGetOwnInfoParams() GetOwnInfoParams

NewGetOwnInfoParams creates a new GetOwnInfoParams object

There are no default values defined in the spec.

func (*GetOwnInfoParams) BindRequest

func (o *GetOwnInfoParams) 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 NewGetOwnInfoParams() beforehand.

type GetOwnInfoURL

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

GetOwnInfoURL generates an URL for the get own info operation

func (*GetOwnInfoURL) Build

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

Build a url path and query string

func (*GetOwnInfoURL) BuildFull

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

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

func (*GetOwnInfoURL) Must

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

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

func (*GetOwnInfoURL) SetBasePath

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

func (o *GetOwnInfoURL) String() string

String returns the string representation of the path with query string

func (*GetOwnInfoURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetOwnInfoURL) WithBasePath

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

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 GetOwnInfoUnauthorized

type GetOwnInfoUnauthorized struct {
}

GetOwnInfoUnauthorized Unauthorized or invalid credentials.

swagger:response getOwnInfoUnauthorized

func NewGetOwnInfoUnauthorized

func NewGetOwnInfoUnauthorized() *GetOwnInfoUnauthorized

NewGetOwnInfoUnauthorized creates GetOwnInfoUnauthorized with default headers values

func (*GetOwnInfoUnauthorized) WriteResponse

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

WriteResponse to the client

Jump to

Keyboard shortcuts

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