Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RequestParser ¶
type RequestParser struct { }
RequestParser implements parsing of the request for v1beta1 version
func (RequestParser) ExtractToken ¶
func (r RequestParser) ExtractToken(reqBody io.ReadCloser) (string, error)
ExtractToken retrieves token from the payload and validates request struct
type ResponseConstructor ¶
type ResponseConstructor struct{}
ResponseConstructor is a helper to return v1beta1 type response
func (ResponseConstructor) NewFailResponse ¶
func (r ResponseConstructor) NewFailResponse() []byte
NewFailResponse returns the typical fail response for v1beta1 APIVersion
func (ResponseConstructor) NewSuccessResponse ¶
func (r ResponseConstructor) NewSuccessResponse(user *unversioned.UserInfo) []byte
NewSuccessResponse returns the typical success response for v1beta1 APIVersion
Click to show internal directories.
Click to hide internal directories.