v1beta1

package
v0.0.0-...-cc38a72 Latest Latest
Warning

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

Go to latest
Published: May 30, 2017 License: GPL-3.0 Imports: 4 Imported by: 0

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

Jump to

Keyboard shortcuts

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