token

package
v0.0.0-...-c4f9bb7 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2019 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const AddUserPermissionOKCode int = 200

AddUserPermissionOKCode is the HTTP code returned for type AddUserPermissionOK

View Source
const AddUserPermissionUnauthorizedCode int = 401

AddUserPermissionUnauthorizedCode is the HTTP code returned for type AddUserPermissionUnauthorized

View Source
const DeleteUserPermissionOKCode int = 200

DeleteUserPermissionOKCode is the HTTP code returned for type DeleteUserPermissionOK

View Source
const DeleteUserPermissionUnauthorizedCode int = 401

DeleteUserPermissionUnauthorizedCode is the HTTP code returned for type DeleteUserPermissionUnauthorized

View Source
const GetUserPermissionOKCode int = 200

GetUserPermissionOKCode is the HTTP code returned for type GetUserPermissionOK

View Source
const GetUserPermissionUnauthorizedCode int = 401

GetUserPermissionUnauthorizedCode is the HTTP code returned for type GetUserPermissionUnauthorized

View Source
const TokenValidatPayloadOKCode int = 200

TokenValidatPayloadOKCode is the HTTP code returned for type TokenValidatPayloadOK

View Source
const TokenValidatPayloadUnauthorizedCode int = 401

TokenValidatPayloadUnauthorizedCode is the HTTP code returned for type TokenValidatPayloadUnauthorized

View Source
const TokenValidateOKCode int = 200

TokenValidateOKCode is the HTTP code returned for type TokenValidateOK

View Source
const TokenValidateUnauthorizedCode int = 401

TokenValidateUnauthorizedCode is the HTTP code returned for type TokenValidateUnauthorized

View Source
const UpdateUserPermissionOKCode int = 200

UpdateUserPermissionOKCode is the HTTP code returned for type UpdateUserPermissionOK

View Source
const UpdateUserPermissionUnauthorizedCode int = 401

UpdateUserPermissionUnauthorizedCode is the HTTP code returned for type UpdateUserPermissionUnauthorized

Variables

This section is empty.

Functions

This section is empty.

Types

type AddUserPermission

type AddUserPermission struct {
	Context *middleware.Context
	Handler AddUserPermissionHandler
}

AddUserPermission swagger:route POST /token/authorization/ token addUserPermission

Get all Permissions for a particular token .

Add a permission.

func NewAddUserPermission

func NewAddUserPermission(ctx *middleware.Context, handler AddUserPermissionHandler) *AddUserPermission

NewAddUserPermission creates a new http.Handler for the add user permission operation

func (*AddUserPermission) ServeHTTP

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

type AddUserPermissionDefault

type AddUserPermissionDefault struct {

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

AddUserPermissionDefault Unexpected error

swagger:response addUserPermissionDefault

func NewAddUserPermissionDefault

func NewAddUserPermissionDefault(code int) *AddUserPermissionDefault

NewAddUserPermissionDefault creates AddUserPermissionDefault with default headers values

func (*AddUserPermissionDefault) SetPayload

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

SetPayload sets the payload to the add user permission default response

func (*AddUserPermissionDefault) SetStatusCode

func (o *AddUserPermissionDefault) SetStatusCode(code int)

SetStatusCode sets the status to the add user permission default response

func (*AddUserPermissionDefault) WithPayload

WithPayload adds the payload to the add user permission default response

func (*AddUserPermissionDefault) WithStatusCode

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

WithStatusCode adds the status to the add user permission default response

func (*AddUserPermissionDefault) WriteResponse

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

WriteResponse to the client

type AddUserPermissionHandler

type AddUserPermissionHandler interface {
	Handle(AddUserPermissionParams, interface{}) middleware.Responder
}

AddUserPermissionHandler interface for that can handle valid add user permission params

type AddUserPermissionHandlerFunc

type AddUserPermissionHandlerFunc func(AddUserPermissionParams, interface{}) middleware.Responder

AddUserPermissionHandlerFunc turns a function with the right signature into a add user permission handler

func (AddUserPermissionHandlerFunc) Handle

func (fn AddUserPermissionHandlerFunc) Handle(params AddUserPermissionParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type AddUserPermissionOK

type AddUserPermissionOK struct {
}

AddUserPermissionOK successful operation

swagger:response addUserPermissionOK

func NewAddUserPermissionOK

func NewAddUserPermissionOK() *AddUserPermissionOK

NewAddUserPermissionOK creates AddUserPermissionOK with default headers values

func (*AddUserPermissionOK) WriteResponse

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

WriteResponse to the client

type AddUserPermissionParams

type AddUserPermissionParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request

	/*
	  Required: true
	  In: header
	*/
	Authorization string
	/*
	  Required: true
	  In: body
	*/
	Permission *models.Permission
}

AddUserPermissionParams contains all the bound params for the add user permission operation typically these are obtained from a http.Request

swagger:parameters addUserPermission

func NewAddUserPermissionParams

func NewAddUserPermissionParams() AddUserPermissionParams

NewAddUserPermissionParams creates a new AddUserPermissionParams object with the default values initialized.

func (*AddUserPermissionParams) BindRequest

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

type AddUserPermissionURL

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

AddUserPermissionURL generates an URL for the add user permission operation

func (*AddUserPermissionURL) Build

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

Build a url path and query string

func (*AddUserPermissionURL) BuildFull

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

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

func (*AddUserPermissionURL) Must

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

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

func (*AddUserPermissionURL) SetBasePath

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

func (o *AddUserPermissionURL) String() string

String returns the string representation of the path with query string

func (*AddUserPermissionURL) StringFull

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

StringFull returns the string representation of a complete url

func (*AddUserPermissionURL) WithBasePath

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

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 AddUserPermissionUnauthorized

type AddUserPermissionUnauthorized struct {
	/*
	  Required: true
	*/
	WWWAuthenticate string `json:"WWW_Authenticate"`
}

AddUserPermissionUnauthorized Authentication information is missing or invalid

swagger:response addUserPermissionUnauthorized

func NewAddUserPermissionUnauthorized

func NewAddUserPermissionUnauthorized() *AddUserPermissionUnauthorized

NewAddUserPermissionUnauthorized creates AddUserPermissionUnauthorized with default headers values

func (*AddUserPermissionUnauthorized) SetWWWAuthenticate

func (o *AddUserPermissionUnauthorized) SetWWWAuthenticate(wWWAuthenticate string)

SetWWWAuthenticate sets the wWWAuthenticate to the add user permission unauthorized response

func (*AddUserPermissionUnauthorized) WithWWWAuthenticate

func (o *AddUserPermissionUnauthorized) WithWWWAuthenticate(wWWAuthenticate string) *AddUserPermissionUnauthorized

WithWWWAuthenticate adds the wWWAuthenticate to the add user permission unauthorized response

func (*AddUserPermissionUnauthorized) WriteResponse

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

WriteResponse to the client

type DeleteUserPermission

type DeleteUserPermission struct {
	Context *middleware.Context
	Handler DeleteUserPermissionHandler
}

DeleteUserPermission swagger:route DELETE /token/authorization/ token deleteUserPermission

Get all Permissions for a particular token .

Delete a permission.

func NewDeleteUserPermission

func NewDeleteUserPermission(ctx *middleware.Context, handler DeleteUserPermissionHandler) *DeleteUserPermission

NewDeleteUserPermission creates a new http.Handler for the delete user permission operation

func (*DeleteUserPermission) ServeHTTP

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

type DeleteUserPermissionDefault

type DeleteUserPermissionDefault struct {

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

DeleteUserPermissionDefault Unexpected error

swagger:response deleteUserPermissionDefault

func NewDeleteUserPermissionDefault

func NewDeleteUserPermissionDefault(code int) *DeleteUserPermissionDefault

NewDeleteUserPermissionDefault creates DeleteUserPermissionDefault with default headers values

func (*DeleteUserPermissionDefault) SetPayload

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

SetPayload sets the payload to the delete user permission default response

func (*DeleteUserPermissionDefault) SetStatusCode

func (o *DeleteUserPermissionDefault) SetStatusCode(code int)

SetStatusCode sets the status to the delete user permission default response

func (*DeleteUserPermissionDefault) WithPayload

WithPayload adds the payload to the delete user permission default response

func (*DeleteUserPermissionDefault) WithStatusCode

WithStatusCode adds the status to the delete user permission default response

func (*DeleteUserPermissionDefault) WriteResponse

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

WriteResponse to the client

type DeleteUserPermissionHandler

type DeleteUserPermissionHandler interface {
	Handle(DeleteUserPermissionParams, interface{}) middleware.Responder
}

DeleteUserPermissionHandler interface for that can handle valid delete user permission params

type DeleteUserPermissionHandlerFunc

type DeleteUserPermissionHandlerFunc func(DeleteUserPermissionParams, interface{}) middleware.Responder

DeleteUserPermissionHandlerFunc turns a function with the right signature into a delete user permission handler

func (DeleteUserPermissionHandlerFunc) Handle

func (fn DeleteUserPermissionHandlerFunc) Handle(params DeleteUserPermissionParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type DeleteUserPermissionOK

type DeleteUserPermissionOK struct {
}

DeleteUserPermissionOK successful operation

swagger:response deleteUserPermissionOK

func NewDeleteUserPermissionOK

func NewDeleteUserPermissionOK() *DeleteUserPermissionOK

NewDeleteUserPermissionOK creates DeleteUserPermissionOK with default headers values

func (*DeleteUserPermissionOK) WriteResponse

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

WriteResponse to the client

type DeleteUserPermissionParams

type DeleteUserPermissionParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request

	/*
	  Required: true
	  In: header
	*/
	Authorization string
	/*
	  Required: true
	  In: body
	*/
	Permission *models.Permission
}

DeleteUserPermissionParams contains all the bound params for the delete user permission operation typically these are obtained from a http.Request

swagger:parameters deleteUserPermission

func NewDeleteUserPermissionParams

func NewDeleteUserPermissionParams() DeleteUserPermissionParams

NewDeleteUserPermissionParams creates a new DeleteUserPermissionParams object with the default values initialized.

func (*DeleteUserPermissionParams) 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

type DeleteUserPermissionURL

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

DeleteUserPermissionURL generates an URL for the delete user permission operation

func (*DeleteUserPermissionURL) Build

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

Build a url path and query string

func (*DeleteUserPermissionURL) BuildFull

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

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

func (*DeleteUserPermissionURL) Must

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

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

func (*DeleteUserPermissionURL) SetBasePath

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

func (o *DeleteUserPermissionURL) String() string

String returns the string representation of the path with query string

func (*DeleteUserPermissionURL) StringFull

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

StringFull returns the string representation of a complete url

func (*DeleteUserPermissionURL) 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 DeleteUserPermissionUnauthorized

type DeleteUserPermissionUnauthorized struct {
	/*
	  Required: true
	*/
	WWWAuthenticate string `json:"WWW_Authenticate"`
}

DeleteUserPermissionUnauthorized Authentication information is missing or invalid

swagger:response deleteUserPermissionUnauthorized

func NewDeleteUserPermissionUnauthorized

func NewDeleteUserPermissionUnauthorized() *DeleteUserPermissionUnauthorized

NewDeleteUserPermissionUnauthorized creates DeleteUserPermissionUnauthorized with default headers values

func (*DeleteUserPermissionUnauthorized) SetWWWAuthenticate

func (o *DeleteUserPermissionUnauthorized) SetWWWAuthenticate(wWWAuthenticate string)

SetWWWAuthenticate sets the wWWAuthenticate to the delete user permission unauthorized response

func (*DeleteUserPermissionUnauthorized) WithWWWAuthenticate

func (o *DeleteUserPermissionUnauthorized) WithWWWAuthenticate(wWWAuthenticate string) *DeleteUserPermissionUnauthorized

WithWWWAuthenticate adds the wWWAuthenticate to the delete user permission unauthorized response

func (*DeleteUserPermissionUnauthorized) WriteResponse

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

WriteResponse to the client

type GetUserPermission

type GetUserPermission struct {
	Context *middleware.Context
	Handler GetUserPermissionHandler
}

GetUserPermission swagger:route GET /token/authorization/ token getUserPermission

Get all Permissions for a particular token .

This API is responsible to get the Authorization for a particular Token. This API trys to answer the question What Do i have access to? First it will validate it is a valid Authenticated Token and then will get from the repository what are the available actions for the user and on which resources , this authenticate {subject, resource, action}

func NewGetUserPermission

func NewGetUserPermission(ctx *middleware.Context, handler GetUserPermissionHandler) *GetUserPermission

NewGetUserPermission creates a new http.Handler for the get user permission operation

func (*GetUserPermission) ServeHTTP

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

type GetUserPermissionDefault

type GetUserPermissionDefault struct {

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

GetUserPermissionDefault Unexpected error

swagger:response getUserPermissionDefault

func NewGetUserPermissionDefault

func NewGetUserPermissionDefault(code int) *GetUserPermissionDefault

NewGetUserPermissionDefault creates GetUserPermissionDefault with default headers values

func (*GetUserPermissionDefault) SetPayload

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

SetPayload sets the payload to the get user permission default response

func (*GetUserPermissionDefault) SetStatusCode

func (o *GetUserPermissionDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get user permission default response

func (*GetUserPermissionDefault) WithPayload

WithPayload adds the payload to the get user permission default response

func (*GetUserPermissionDefault) WithStatusCode

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

WithStatusCode adds the status to the get user permission default response

func (*GetUserPermissionDefault) WriteResponse

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

WriteResponse to the client

type GetUserPermissionHandler

type GetUserPermissionHandler interface {
	Handle(GetUserPermissionParams, interface{}) middleware.Responder
}

GetUserPermissionHandler interface for that can handle valid get user permission params

type GetUserPermissionHandlerFunc

type GetUserPermissionHandlerFunc func(GetUserPermissionParams, interface{}) middleware.Responder

GetUserPermissionHandlerFunc turns a function with the right signature into a get user permission handler

func (GetUserPermissionHandlerFunc) Handle

func (fn GetUserPermissionHandlerFunc) Handle(params GetUserPermissionParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type GetUserPermissionOK

type GetUserPermissionOK struct {

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

GetUserPermissionOK successful operation

swagger:response getUserPermissionOK

func NewGetUserPermissionOK

func NewGetUserPermissionOK() *GetUserPermissionOK

NewGetUserPermissionOK creates GetUserPermissionOK with default headers values

func (*GetUserPermissionOK) SetPayload

func (o *GetUserPermissionOK) SetPayload(payload models.GetUserPermissionOKBody)

SetPayload sets the payload to the get user permission o k response

func (*GetUserPermissionOK) WithPayload

WithPayload adds the payload to the get user permission o k response

func (*GetUserPermissionOK) WriteResponse

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

WriteResponse to the client

type GetUserPermissionParams

type GetUserPermissionParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request

	/*
	  Required: true
	  In: header
	*/
	Authorization string
}

GetUserPermissionParams contains all the bound params for the get user permission operation typically these are obtained from a http.Request

swagger:parameters getUserPermission

func NewGetUserPermissionParams

func NewGetUserPermissionParams() GetUserPermissionParams

NewGetUserPermissionParams creates a new GetUserPermissionParams object with the default values initialized.

func (*GetUserPermissionParams) BindRequest

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

type GetUserPermissionURL

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

GetUserPermissionURL generates an URL for the get user permission operation

func (*GetUserPermissionURL) Build

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

Build a url path and query string

func (*GetUserPermissionURL) BuildFull

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

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

func (*GetUserPermissionURL) Must

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

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

func (*GetUserPermissionURL) SetBasePath

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

func (o *GetUserPermissionURL) String() string

String returns the string representation of the path with query string

func (*GetUserPermissionURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetUserPermissionURL) WithBasePath

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

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 GetUserPermissionUnauthorized

type GetUserPermissionUnauthorized struct {
	/*
	  Required: true
	*/
	WWWAuthenticate string `json:"WWW_Authenticate"`
}

GetUserPermissionUnauthorized Authentication information is missing or invalid

swagger:response getUserPermissionUnauthorized

func NewGetUserPermissionUnauthorized

func NewGetUserPermissionUnauthorized() *GetUserPermissionUnauthorized

NewGetUserPermissionUnauthorized creates GetUserPermissionUnauthorized with default headers values

func (*GetUserPermissionUnauthorized) SetWWWAuthenticate

func (o *GetUserPermissionUnauthorized) SetWWWAuthenticate(wWWAuthenticate string)

SetWWWAuthenticate sets the wWWAuthenticate to the get user permission unauthorized response

func (*GetUserPermissionUnauthorized) WithWWWAuthenticate

func (o *GetUserPermissionUnauthorized) WithWWWAuthenticate(wWWAuthenticate string) *GetUserPermissionUnauthorized

WithWWWAuthenticate adds the wWWAuthenticate to the get user permission unauthorized response

func (*GetUserPermissionUnauthorized) WriteResponse

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

WriteResponse to the client

type TokenValidatPayload

type TokenValidatPayload struct {
	Context *middleware.Context
	Handler TokenValidatPayloadHandler
}

TokenValidatPayload swagger:route POST /token/authentication token tokenValidatPayload

Validate token in header no need for authentication

Validate token

func NewTokenValidatPayload

func NewTokenValidatPayload(ctx *middleware.Context, handler TokenValidatPayloadHandler) *TokenValidatPayload

NewTokenValidatPayload creates a new http.Handler for the token validat payload operation

func (*TokenValidatPayload) ServeHTTP

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

type TokenValidatPayloadDefault

type TokenValidatPayloadDefault struct {

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

TokenValidatPayloadDefault Unexpected error

swagger:response tokenValidatPayloadDefault

func NewTokenValidatPayloadDefault

func NewTokenValidatPayloadDefault(code int) *TokenValidatPayloadDefault

NewTokenValidatPayloadDefault creates TokenValidatPayloadDefault with default headers values

func (*TokenValidatPayloadDefault) SetPayload

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

SetPayload sets the payload to the token validat payload default response

func (*TokenValidatPayloadDefault) SetStatusCode

func (o *TokenValidatPayloadDefault) SetStatusCode(code int)

SetStatusCode sets the status to the token validat payload default response

func (*TokenValidatPayloadDefault) WithPayload

WithPayload adds the payload to the token validat payload default response

func (*TokenValidatPayloadDefault) WithStatusCode

WithStatusCode adds the status to the token validat payload default response

func (*TokenValidatPayloadDefault) WriteResponse

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

WriteResponse to the client

type TokenValidatPayloadHandler

type TokenValidatPayloadHandler interface {
	Handle(TokenValidatPayloadParams) middleware.Responder
}

TokenValidatPayloadHandler interface for that can handle valid token validat payload params

type TokenValidatPayloadHandlerFunc

type TokenValidatPayloadHandlerFunc func(TokenValidatPayloadParams) middleware.Responder

TokenValidatPayloadHandlerFunc turns a function with the right signature into a token validat payload handler

func (TokenValidatPayloadHandlerFunc) Handle

Handle executing the request and returning a response

type TokenValidatPayloadOK

type TokenValidatPayloadOK struct {
}

TokenValidatPayloadOK Valid Token

swagger:response tokenValidatPayloadOK

func NewTokenValidatPayloadOK

func NewTokenValidatPayloadOK() *TokenValidatPayloadOK

NewTokenValidatPayloadOK creates TokenValidatPayloadOK with default headers values

func (*TokenValidatPayloadOK) WriteResponse

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

WriteResponse to the client

type TokenValidatPayloadParams

type TokenValidatPayloadParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request

	/*Login mode to create
	  Required: true
	  In: body
	*/
	Login *string
}

TokenValidatPayloadParams contains all the bound params for the token validat payload operation typically these are obtained from a http.Request

swagger:parameters tokenValidatPayload

func NewTokenValidatPayloadParams

func NewTokenValidatPayloadParams() TokenValidatPayloadParams

NewTokenValidatPayloadParams creates a new TokenValidatPayloadParams object with the default values initialized.

func (*TokenValidatPayloadParams) 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

type TokenValidatPayloadURL

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

TokenValidatPayloadURL generates an URL for the token validat payload operation

func (*TokenValidatPayloadURL) Build

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

Build a url path and query string

func (*TokenValidatPayloadURL) BuildFull

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

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

func (*TokenValidatPayloadURL) Must

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

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

func (*TokenValidatPayloadURL) SetBasePath

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

func (o *TokenValidatPayloadURL) String() string

String returns the string representation of the path with query string

func (*TokenValidatPayloadURL) StringFull

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

StringFull returns the string representation of a complete url

func (*TokenValidatPayloadURL) 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 TokenValidatPayloadUnauthorized

type TokenValidatPayloadUnauthorized struct {
	/*
	  Required: true
	*/
	WWWAuthenticate string `json:"WWW_Authenticate"`
}

TokenValidatPayloadUnauthorized Authentication information is missing or invalid

swagger:response tokenValidatPayloadUnauthorized

func NewTokenValidatPayloadUnauthorized

func NewTokenValidatPayloadUnauthorized() *TokenValidatPayloadUnauthorized

NewTokenValidatPayloadUnauthorized creates TokenValidatPayloadUnauthorized with default headers values

func (*TokenValidatPayloadUnauthorized) SetWWWAuthenticate

func (o *TokenValidatPayloadUnauthorized) SetWWWAuthenticate(wWWAuthenticate string)

SetWWWAuthenticate sets the wWWAuthenticate to the token validat payload unauthorized response

func (*TokenValidatPayloadUnauthorized) WithWWWAuthenticate

func (o *TokenValidatPayloadUnauthorized) WithWWWAuthenticate(wWWAuthenticate string) *TokenValidatPayloadUnauthorized

WithWWWAuthenticate adds the wWWAuthenticate to the token validat payload unauthorized response

func (*TokenValidatPayloadUnauthorized) WriteResponse

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

WriteResponse to the client

type TokenValidate

type TokenValidate struct {
	Context *middleware.Context
	Handler TokenValidateHandler
}

TokenValidate swagger:route GET /token/authentication token tokenValidate

Validate token in header.

Get Loging screen

func NewTokenValidate

func NewTokenValidate(ctx *middleware.Context, handler TokenValidateHandler) *TokenValidate

NewTokenValidate creates a new http.Handler for the token validate operation

func (*TokenValidate) ServeHTTP

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

type TokenValidateDefault

type TokenValidateDefault struct {

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

TokenValidateDefault Unexpected error

swagger:response tokenValidateDefault

func NewTokenValidateDefault

func NewTokenValidateDefault(code int) *TokenValidateDefault

NewTokenValidateDefault creates TokenValidateDefault with default headers values

func (*TokenValidateDefault) SetPayload

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

SetPayload sets the payload to the token validate default response

func (*TokenValidateDefault) SetStatusCode

func (o *TokenValidateDefault) SetStatusCode(code int)

SetStatusCode sets the status to the token validate default response

func (*TokenValidateDefault) WithPayload

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

WithPayload adds the payload to the token validate default response

func (*TokenValidateDefault) WithStatusCode

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

WithStatusCode adds the status to the token validate default response

func (*TokenValidateDefault) WriteResponse

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

WriteResponse to the client

type TokenValidateHandler

type TokenValidateHandler interface {
	Handle(TokenValidateParams) middleware.Responder
}

TokenValidateHandler interface for that can handle valid token validate params

type TokenValidateHandlerFunc

type TokenValidateHandlerFunc func(TokenValidateParams) middleware.Responder

TokenValidateHandlerFunc turns a function with the right signature into a token validate handler

func (TokenValidateHandlerFunc) Handle

Handle executing the request and returning a response

type TokenValidateOK

type TokenValidateOK struct {
}

TokenValidateOK Successful operation

swagger:response tokenValidateOK

func NewTokenValidateOK

func NewTokenValidateOK() *TokenValidateOK

NewTokenValidateOK creates TokenValidateOK with default headers values

func (*TokenValidateOK) WriteResponse

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

WriteResponse to the client

type TokenValidateParams

type TokenValidateParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request

	/*
	  Required: true
	  In: header
	*/
	Authorization string
}

TokenValidateParams contains all the bound params for the token validate operation typically these are obtained from a http.Request

swagger:parameters tokenValidate

func NewTokenValidateParams

func NewTokenValidateParams() TokenValidateParams

NewTokenValidateParams creates a new TokenValidateParams object with the default values initialized.

func (*TokenValidateParams) BindRequest

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

type TokenValidateURL

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

TokenValidateURL generates an URL for the token validate operation

func (*TokenValidateURL) Build

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

Build a url path and query string

func (*TokenValidateURL) BuildFull

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

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

func (*TokenValidateURL) Must

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

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

func (*TokenValidateURL) SetBasePath

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

func (o *TokenValidateURL) String() string

String returns the string representation of the path with query string

func (*TokenValidateURL) StringFull

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

StringFull returns the string representation of a complete url

func (*TokenValidateURL) WithBasePath

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

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 TokenValidateUnauthorized

type TokenValidateUnauthorized struct {
	/*
	  Required: true
	*/
	WWWAuthenticate string `json:"WWW_Authenticate"`
}

TokenValidateUnauthorized Authentication information is missing or invalid

swagger:response tokenValidateUnauthorized

func NewTokenValidateUnauthorized

func NewTokenValidateUnauthorized() *TokenValidateUnauthorized

NewTokenValidateUnauthorized creates TokenValidateUnauthorized with default headers values

func (*TokenValidateUnauthorized) SetWWWAuthenticate

func (o *TokenValidateUnauthorized) SetWWWAuthenticate(wWWAuthenticate string)

SetWWWAuthenticate sets the wWWAuthenticate to the token validate unauthorized response

func (*TokenValidateUnauthorized) WithWWWAuthenticate

func (o *TokenValidateUnauthorized) WithWWWAuthenticate(wWWAuthenticate string) *TokenValidateUnauthorized

WithWWWAuthenticate adds the wWWAuthenticate to the token validate unauthorized response

func (*TokenValidateUnauthorized) WriteResponse

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

WriteResponse to the client

type UpdateUserPermission

type UpdateUserPermission struct {
	Context *middleware.Context
	Handler UpdateUserPermissionHandler
}

UpdateUserPermission swagger:route PUT /token/authorization/ token updateUserPermission

Get all Permissions for a particular token .

Update a permission.

func NewUpdateUserPermission

func NewUpdateUserPermission(ctx *middleware.Context, handler UpdateUserPermissionHandler) *UpdateUserPermission

NewUpdateUserPermission creates a new http.Handler for the update user permission operation

func (*UpdateUserPermission) ServeHTTP

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

type UpdateUserPermissionDefault

type UpdateUserPermissionDefault struct {

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

UpdateUserPermissionDefault Unexpected error

swagger:response updateUserPermissionDefault

func NewUpdateUserPermissionDefault

func NewUpdateUserPermissionDefault(code int) *UpdateUserPermissionDefault

NewUpdateUserPermissionDefault creates UpdateUserPermissionDefault with default headers values

func (*UpdateUserPermissionDefault) SetPayload

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

SetPayload sets the payload to the update user permission default response

func (*UpdateUserPermissionDefault) SetStatusCode

func (o *UpdateUserPermissionDefault) SetStatusCode(code int)

SetStatusCode sets the status to the update user permission default response

func (*UpdateUserPermissionDefault) WithPayload

WithPayload adds the payload to the update user permission default response

func (*UpdateUserPermissionDefault) WithStatusCode

WithStatusCode adds the status to the update user permission default response

func (*UpdateUserPermissionDefault) WriteResponse

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

WriteResponse to the client

type UpdateUserPermissionHandler

type UpdateUserPermissionHandler interface {
	Handle(UpdateUserPermissionParams, interface{}) middleware.Responder
}

UpdateUserPermissionHandler interface for that can handle valid update user permission params

type UpdateUserPermissionHandlerFunc

type UpdateUserPermissionHandlerFunc func(UpdateUserPermissionParams, interface{}) middleware.Responder

UpdateUserPermissionHandlerFunc turns a function with the right signature into a update user permission handler

func (UpdateUserPermissionHandlerFunc) Handle

func (fn UpdateUserPermissionHandlerFunc) Handle(params UpdateUserPermissionParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type UpdateUserPermissionOK

type UpdateUserPermissionOK struct {
}

UpdateUserPermissionOK successful operation

swagger:response updateUserPermissionOK

func NewUpdateUserPermissionOK

func NewUpdateUserPermissionOK() *UpdateUserPermissionOK

NewUpdateUserPermissionOK creates UpdateUserPermissionOK with default headers values

func (*UpdateUserPermissionOK) WriteResponse

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

WriteResponse to the client

type UpdateUserPermissionParams

type UpdateUserPermissionParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request

	/*
	  Required: true
	  In: header
	*/
	Authorization string
	/*
	  Required: true
	  In: body
	*/
	Permission *models.Permission
}

UpdateUserPermissionParams contains all the bound params for the update user permission operation typically these are obtained from a http.Request

swagger:parameters updateUserPermission

func NewUpdateUserPermissionParams

func NewUpdateUserPermissionParams() UpdateUserPermissionParams

NewUpdateUserPermissionParams creates a new UpdateUserPermissionParams object with the default values initialized.

func (*UpdateUserPermissionParams) 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

type UpdateUserPermissionURL

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

UpdateUserPermissionURL generates an URL for the update user permission operation

func (*UpdateUserPermissionURL) Build

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

Build a url path and query string

func (*UpdateUserPermissionURL) BuildFull

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

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

func (*UpdateUserPermissionURL) Must

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

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

func (*UpdateUserPermissionURL) SetBasePath

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

func (o *UpdateUserPermissionURL) String() string

String returns the string representation of the path with query string

func (*UpdateUserPermissionURL) StringFull

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

StringFull returns the string representation of a complete url

func (*UpdateUserPermissionURL) 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 UpdateUserPermissionUnauthorized

type UpdateUserPermissionUnauthorized struct {
	/*
	  Required: true
	*/
	WWWAuthenticate string `json:"WWW_Authenticate"`
}

UpdateUserPermissionUnauthorized Authentication information is missing or invalid

swagger:response updateUserPermissionUnauthorized

func NewUpdateUserPermissionUnauthorized

func NewUpdateUserPermissionUnauthorized() *UpdateUserPermissionUnauthorized

NewUpdateUserPermissionUnauthorized creates UpdateUserPermissionUnauthorized with default headers values

func (*UpdateUserPermissionUnauthorized) SetWWWAuthenticate

func (o *UpdateUserPermissionUnauthorized) SetWWWAuthenticate(wWWAuthenticate string)

SetWWWAuthenticate sets the wWWAuthenticate to the update user permission unauthorized response

func (*UpdateUserPermissionUnauthorized) WithWWWAuthenticate

func (o *UpdateUserPermissionUnauthorized) WithWWWAuthenticate(wWWAuthenticate string) *UpdateUserPermissionUnauthorized

WithWWWAuthenticate adds the wWWAuthenticate to the update user permission unauthorized response

func (*UpdateUserPermissionUnauthorized) WriteResponse

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