handlers

package
v0.0.2-cli Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2016 License: Apache-2.0 Imports: 11 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Authenticator

type Authenticator struct {
	Client UAAClient
	Logger lager.Logger
}

func (*Authenticator) Wrap

func (a *Authenticator) Wrap(handle http.Handler) http.Handler

type PoliciesCreate

type PoliciesCreate struct {
	Logger      lager.Logger
	Store       store.Store
	Unmarshaler marshal.Unmarshaler
	Marshaler   marshal.Marshaler
	Validator   validator
}

func (*PoliciesCreate) ServeHTTP

func (h *PoliciesCreate) ServeHTTP(w http.ResponseWriter, req *http.Request)

type PoliciesDelete

type PoliciesDelete struct {
	Logger      lager.Logger
	Unmarshaler marshal.Unmarshaler
	Store       store.Store
	Validator   validator
}

func (*PoliciesDelete) ServeHTTP

func (h *PoliciesDelete) ServeHTTP(w http.ResponseWriter, req *http.Request)

type PoliciesIndex

type PoliciesIndex struct {
	Logger    lager.Logger
	Store     store.Store
	Marshaler marshal.Marshaler
}

func (*PoliciesIndex) ServeHTTP

func (h *PoliciesIndex) ServeHTTP(w http.ResponseWriter, req *http.Request)

type PoliciesIndexInternal

type PoliciesIndexInternal struct {
	Logger    lager.Logger
	Store     store.Store
	Marshaler marshal.Marshaler
}

func (*PoliciesIndexInternal) ServeHTTP

func (h *PoliciesIndexInternal) ServeHTTP(w http.ResponseWriter, req *http.Request)

type TagsIndex

type TagsIndex struct {
	Logger    lager.Logger
	Store     store.Store
	Marshaler marshal.Marshaler
}

func (*TagsIndex) ServeHTTP

func (h *TagsIndex) ServeHTTP(w http.ResponseWriter, req *http.Request)

type UAAClient

type UAAClient interface {
	CheckToken(token string) (uaa_client.CheckTokenResponse, error)
}

type UptimeHandler

type UptimeHandler struct {
	StartTime time.Time
}

func (*UptimeHandler) ServeHTTP

func (h *UptimeHandler) ServeHTTP(w http.ResponseWriter, req *http.Request)

type Validator

type Validator struct{}

func (*Validator) ValidatePolicies

func (v *Validator) ValidatePolicies(policies []models.Policy) error

type WhoAmIHandler

type WhoAmIHandler struct {
	Client    uaaRequestClient
	Logger    lager.Logger
	Marshaler marshal.Marshaler
}

func (*WhoAmIHandler) ServeHTTP

func (h *WhoAmIHandler) ServeHTTP(w http.ResponseWriter, req *http.Request)

type WhoAmIResponse

type WhoAmIResponse struct {
	UserName string `json:"user_name"`
}

Jump to

Keyboard shortcuts

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