noodle_auth

package
v0.0.0-...-e46559e Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const GetAuthLogoutOKCode int = 200

GetAuthLogoutOKCode is the HTTP code returned for type GetAuthLogoutOK

View Source
const GetAuthLogoutUnauthorizedCode int = 401

GetAuthLogoutUnauthorizedCode is the HTTP code returned for type GetAuthLogoutUnauthorized

View Source
const GetAuthSessionConflictCode int = 409

GetAuthSessionConflictCode is the HTTP code returned for type GetAuthSessionConflict

View Source
const GetAuthSessionOKCode int = 200

GetAuthSessionOKCode is the HTTP code returned for type GetAuthSessionOK

View Source
const GetAuthSessionUnauthorizedCode int = 401

GetAuthSessionUnauthorizedCode is the HTTP code returned for type GetAuthSessionUnauthorized

View Source
const PostAuthAuthenticateConflictCode int = 409

PostAuthAuthenticateConflictCode is the HTTP code returned for type PostAuthAuthenticateConflict

View Source
const PostAuthAuthenticateOKCode int = 200

PostAuthAuthenticateOKCode is the HTTP code returned for type PostAuthAuthenticateOK

View Source
const PostAuthAuthenticateUnauthorizedCode int = 401

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

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

type GetAuthLogoutParams struct {

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

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

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

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

type GetAuthLogoutUnauthorized struct {

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

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

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

type GetAuthSessionConflict struct {

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

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

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

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

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

type GetAuthSessionUnauthorized struct {

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

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

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

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

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

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

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

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

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

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

type PostAuthAuthenticateUnauthorized struct {

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

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

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

Jump to

Keyboard shortcuts

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