auth

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const AuthenticateInternalServerErrorCode int = 500

AuthenticateInternalServerErrorCode is the HTTP code returned for type AuthenticateInternalServerError

View Source
const AuthenticateOKCode int = 200

AuthenticateOKCode is the HTTP code returned for type AuthenticateOK

View Source
const AuthenticateUnauthorizedCode int = 401

AuthenticateUnauthorizedCode is the HTTP code returned for type AuthenticateUnauthorized

View Source
const LoginInternalServerErrorCode int = 500

LoginInternalServerErrorCode is the HTTP code returned for type LoginInternalServerError

View Source
const LoginOKCode int = 200

LoginOKCode is the HTTP code returned for type LoginOK

View Source
const LoginUnauthorizedCode int = 401

LoginUnauthorizedCode is the HTTP code returned for type LoginUnauthorized

Variables

This section is empty.

Functions

This section is empty.

Types

type Authenticate

type Authenticate struct {
	Context *middleware.Context
	Handler AuthenticateHandler
}

Authenticate swagger:route POST /authenticate auth authenticate

verifies user credentials

authenticates users

func NewAuthenticate

func NewAuthenticate(ctx *middleware.Context, handler AuthenticateHandler) *Authenticate

NewAuthenticate creates a new http.Handler for the authenticate operation

func (*Authenticate) ServeHTTP

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

type AuthenticateHandler

type AuthenticateHandler interface {
	Handle(AuthenticateParams) middleware.Responder
}

AuthenticateHandler interface for that can handle valid authenticate params

type AuthenticateHandlerFunc

type AuthenticateHandlerFunc func(AuthenticateParams) middleware.Responder

AuthenticateHandlerFunc turns a function with the right signature into a authenticate handler

func (AuthenticateHandlerFunc) Handle

Handle executing the request and returning a response

type AuthenticateInternalServerError

type AuthenticateInternalServerError struct {

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

AuthenticateInternalServerError internal server error

swagger:response authenticateInternalServerError

func NewAuthenticateInternalServerError

func NewAuthenticateInternalServerError() *AuthenticateInternalServerError

NewAuthenticateInternalServerError creates AuthenticateInternalServerError with default headers values

func (*AuthenticateInternalServerError) SetPayload

SetPayload sets the payload to the authenticate internal server error response

func (*AuthenticateInternalServerError) WithPayload

WithPayload adds the payload to the authenticate internal server error response

func (*AuthenticateInternalServerError) WriteResponse

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

WriteResponse to the client

type AuthenticateOK

type AuthenticateOK struct {

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

AuthenticateOK OK (successfully authenticated)

swagger:response authenticateOK

func NewAuthenticateOK

func NewAuthenticateOK() *AuthenticateOK

NewAuthenticateOK creates AuthenticateOK with default headers values

func (*AuthenticateOK) SetPayload

func (o *AuthenticateOK) SetPayload(payload *models.TokenReviewRequest)

SetPayload sets the payload to the authenticate o k response

func (*AuthenticateOK) WithPayload

func (o *AuthenticateOK) WithPayload(payload *models.TokenReviewRequest) *AuthenticateOK

WithPayload adds the payload to the authenticate o k response

func (*AuthenticateOK) WriteResponse

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

WriteResponse to the client

type AuthenticateParams

type AuthenticateParams struct {

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

	/*TokenReviewRequest object that needs to be verified
	  Required: true
	  In: body
	*/
	Body *models.TokenReviewRequest
}

AuthenticateParams contains all the bound params for the authenticate operation typically these are obtained from a http.Request

swagger:parameters authenticate

func NewAuthenticateParams

func NewAuthenticateParams() AuthenticateParams

NewAuthenticateParams creates a new AuthenticateParams object no default values defined in spec.

func (*AuthenticateParams) BindRequest

func (o *AuthenticateParams) 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 NewAuthenticateParams() beforehand.

type AuthenticateURL

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

AuthenticateURL generates an URL for the authenticate operation

func (*AuthenticateURL) Build

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

Build a url path and query string

func (*AuthenticateURL) BuildFull

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

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

func (*AuthenticateURL) Must

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

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

func (*AuthenticateURL) SetBasePath

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

func (o *AuthenticateURL) String() string

String returns the string representation of the path with query string

func (*AuthenticateURL) StringFull

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

StringFull returns the string representation of a complete url

func (*AuthenticateURL) WithBasePath

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

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 AuthenticateUnauthorized

type AuthenticateUnauthorized struct {

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

AuthenticateUnauthorized unauthorized

swagger:response authenticateUnauthorized

func NewAuthenticateUnauthorized

func NewAuthenticateUnauthorized() *AuthenticateUnauthorized

NewAuthenticateUnauthorized creates AuthenticateUnauthorized with default headers values

func (*AuthenticateUnauthorized) SetPayload

func (o *AuthenticateUnauthorized) SetPayload(payload *models.TokenReviewRequest)

SetPayload sets the payload to the authenticate unauthorized response

func (*AuthenticateUnauthorized) WithPayload

WithPayload adds the payload to the authenticate unauthorized response

func (*AuthenticateUnauthorized) WriteResponse

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

WriteResponse to the client

type Login

type Login struct {
	Context *middleware.Context
	Handler LoginHandler
}

Login swagger:route POST /login auth login

issues tokens for cluster access

login users

func NewLogin

func NewLogin(ctx *middleware.Context, handler LoginHandler) *Login

NewLogin creates a new http.Handler for the login operation

func (*Login) ServeHTTP

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

type LoginHandler

type LoginHandler interface {
	Handle(LoginParams, *models.Principal) middleware.Responder
}

LoginHandler interface for that can handle valid login params

type LoginHandlerFunc

type LoginHandlerFunc func(LoginParams, *models.Principal) middleware.Responder

LoginHandlerFunc turns a function with the right signature into a login handler

func (LoginHandlerFunc) Handle

func (fn LoginHandlerFunc) Handle(params LoginParams, principal *models.Principal) middleware.Responder

Handle executing the request and returning a response

type LoginInternalServerError

type LoginInternalServerError struct {

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

LoginInternalServerError internal server error

swagger:response loginInternalServerError

func NewLoginInternalServerError

func NewLoginInternalServerError() *LoginInternalServerError

NewLoginInternalServerError creates LoginInternalServerError with default headers values

func (*LoginInternalServerError) SetPayload

func (o *LoginInternalServerError) SetPayload(payload *models.TokenReviewRequest)

SetPayload sets the payload to the login internal server error response

func (*LoginInternalServerError) WithPayload

WithPayload adds the payload to the login internal server error response

func (*LoginInternalServerError) WriteResponse

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

WriteResponse to the client

type LoginOK

type LoginOK struct {

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

LoginOK OK (successfully authenticated)

swagger:response loginOK

func NewLoginOK

func NewLoginOK() *LoginOK

NewLoginOK creates LoginOK with default headers values

func (*LoginOK) SetPayload

func (o *LoginOK) SetPayload(payload *models.TokenReviewRequest)

SetPayload sets the payload to the login o k response

func (*LoginOK) WithPayload

func (o *LoginOK) WithPayload(payload *models.TokenReviewRequest) *LoginOK

WithPayload adds the payload to the login o k response

func (*LoginOK) WriteResponse

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

WriteResponse to the client

type LoginParams

type LoginParams struct {

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

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

swagger:parameters login

func NewLoginParams

func NewLoginParams() LoginParams

NewLoginParams creates a new LoginParams object no default values defined in spec.

func (*LoginParams) BindRequest

func (o *LoginParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewLoginParams() beforehand.

type LoginURL

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

LoginURL generates an URL for the login operation

func (*LoginURL) Build

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

Build a url path and query string

func (*LoginURL) BuildFull

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

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

func (*LoginURL) Must

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

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

func (*LoginURL) SetBasePath

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

func (o *LoginURL) String() string

String returns the string representation of the path with query string

func (*LoginURL) StringFull

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

StringFull returns the string representation of a complete url

func (*LoginURL) WithBasePath

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

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 LoginUnauthorized

type LoginUnauthorized struct {

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

LoginUnauthorized unauthorized

swagger:response loginUnauthorized

func NewLoginUnauthorized

func NewLoginUnauthorized() *LoginUnauthorized

NewLoginUnauthorized creates LoginUnauthorized with default headers values

func (*LoginUnauthorized) SetPayload

func (o *LoginUnauthorized) SetPayload(payload *models.TokenReviewRequest)

SetPayload sets the payload to the login unauthorized response

func (*LoginUnauthorized) WithPayload

WithPayload adds the payload to the login unauthorized response

func (*LoginUnauthorized) WriteResponse

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