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
Click to show internal directories.
Click to hide internal directories.