Documentation ¶
Index ¶
- Constants
- type Authenticate
- type AuthenticateHandler
- type AuthenticateHandlerFunc
- type AuthenticateInternalServerError
- func (o *AuthenticateInternalServerError) SetPayload(payload *models.TokenReviewRequest)
- func (o *AuthenticateInternalServerError) WithPayload(payload *models.TokenReviewRequest) *AuthenticateInternalServerError
- func (o *AuthenticateInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type AuthenticateOK
- type AuthenticateParams
- type AuthenticateURL
- func (o *AuthenticateURL) Build() (*url.URL, error)
- func (o *AuthenticateURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *AuthenticateURL) Must(u *url.URL, err error) *url.URL
- func (o *AuthenticateURL) SetBasePath(bp string)
- func (o *AuthenticateURL) String() string
- func (o *AuthenticateURL) StringFull(scheme, host string) string
- func (o *AuthenticateURL) WithBasePath(bp string) *AuthenticateURL
- type AuthenticateUnauthorized
- type Login
- type LoginHandler
- type LoginHandlerFunc
- type LoginInternalServerError
- type LoginOK
- type LoginParams
- type LoginURL
- func (o *LoginURL) Build() (*url.URL, error)
- func (o *LoginURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *LoginURL) Must(u *url.URL, err error) *url.URL
- func (o *LoginURL) SetBasePath(bp string)
- func (o *LoginURL) String() string
- func (o *LoginURL) StringFull(scheme, host string) string
- func (o *LoginURL) WithBasePath(bp string) *LoginURL
- type LoginUnauthorized
Constants ¶
const AuthenticateInternalServerErrorCode int = 500
AuthenticateInternalServerErrorCode is the HTTP code returned for type AuthenticateInternalServerError
const AuthenticateOKCode int = 200
AuthenticateOKCode is the HTTP code returned for type AuthenticateOK
AuthenticateUnauthorizedCode is the HTTP code returned for type AuthenticateUnauthorized
const LoginInternalServerErrorCode int = 500
LoginInternalServerErrorCode is the HTTP code returned for type LoginInternalServerError
const LoginOKCode int = 200
LoginOKCode is the HTTP code returned for type LoginOK
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 ¶
func (fn AuthenticateHandlerFunc) Handle(params AuthenticateParams) middleware.Responder
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 ¶
func (o *AuthenticateInternalServerError) SetPayload(payload *models.TokenReviewRequest)
SetPayload sets the payload to the authenticate internal server error response
func (*AuthenticateInternalServerError) WithPayload ¶
func (o *AuthenticateInternalServerError) WithPayload(payload *models.TokenReviewRequest) *AuthenticateInternalServerError
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 ¶
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 { models.TokenReviewRequest `json:"body,omitempty"` }Payload *
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 ¶
func (o *AuthenticateUnauthorized) WithPayload(payload *models.TokenReviewRequest) *AuthenticateUnauthorized
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
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 ¶
func (o *LoginInternalServerError) WithPayload(payload *models.TokenReviewRequest) *LoginInternalServerError
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 (*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 ¶
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) SetBasePath ¶
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) StringFull ¶
StringFull returns the string representation of a complete url
func (*LoginURL) 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 LoginUnauthorized ¶
type LoginUnauthorized struct { models.TokenReviewRequest `json:"body,omitempty"` }Payload *
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 ¶
func (o *LoginUnauthorized) WithPayload(payload *models.TokenReviewRequest) *LoginUnauthorized
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