integration

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2015 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package integration contains integration tests for OpenShift Origin.

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func Error

func Error(message string, status int, w http.ResponseWriter)

func NewIdentifyingHandler

func NewIdentifyingHandler() http.Handler

func NewXRemoteUserProxyingHandler

func NewXRemoteUserProxyingHandler(rawURL string) http.Handler

Types

type BasicAuthChallenger

type BasicAuthChallenger struct {
	// contains filtered or unexported fields
}

func NewBasicAuthChallenger

func NewBasicAuthChallenger(realm string, users []User, authenticatedHandler http.Handler) BasicAuthChallenger

NewBasicAuthChallenger provides a simple basic auth server that is compatible with our basic auth password validator

Example
Output:

func (*BasicAuthChallenger) Challenge

func (challenger *BasicAuthChallenger) Challenge(w http.ResponseWriter)

func (BasicAuthChallenger) ServeHTTP

func (challenger BasicAuthChallenger) ServeHTTP(w http.ResponseWriter, r *http.Request)

func (*BasicAuthChallenger) Validate

func (challenger *BasicAuthChallenger) Validate(username, password string) bool

type User

type User struct {
	ID       string
	Password string
	Name     string
	Email    string
}

Jump to

Keyboard shortcuts

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