versioned

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: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIVersion

type APIVersion int

APIVersion allows to select the version API server for integration

const (
	//V1Beta1 version of the API Server
	V1Beta1 APIVersion = iota
)

type RequestParser

type RequestParser interface {
	ReadBody(body io.ReadCloser) error
	IsResourceRequest() bool
	IsNonResourceRequest() bool
	ExtractResourceSpecs() *unversioned.ResourceSpec
	ExtractNonResourceSpecs() *unversioned.NonResourceSpec
	ExtractUserSpecs() *unversioned.UserSpec
}

RequestParser provides an interface to parse and retrieve the token from the authentication request

type ResponseConstructor

type ResponseConstructor interface {
	NewFailResponse(reason string) []byte
	NewSuccessResponse() []byte
}

ResponseConstructor provides an interface to apiVersion dependent request formats

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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