handlers

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2017 License: Apache-2.0 Imports: 11 Imported by: 0

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
	Scopes []string
}

func (*Authenticator) Wrap

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

type PoliciesCleanup added in v0.7.0

type PoliciesCleanup struct {
	Logger    lager.Logger
	Store     store.Store
	Marshaler marshal.Marshaler
	UAAClient uaaClient
	CCClient  ccClient
}

func (*PoliciesCleanup) ServeHTTP added in v0.7.0

func (h *PoliciesCleanup) ServeHTTP(w http.ResponseWriter, req *http.Request, tokenData uaa_client.CheckTokenResponse)

type PoliciesCreate

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

func (*PoliciesCreate) ServeHTTP

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

type PoliciesDelete

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

func (*PoliciesDelete) ServeHTTP

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

type PoliciesIndex

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

func (*PoliciesIndex) ServeHTTP

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

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 PolicyFilter added in v0.13.0

type PolicyFilter struct {
	CCClient  policyFilterCCClient
	UAAClient uaaClient
}

func (*PolicyFilter) FilterPolicies added in v0.13.0

func (g *PolicyFilter) FilterPolicies(policies []models.Policy, userToken uaa_client.CheckTokenResponse) ([]models.Policy, error)

type PolicyGuard added in v0.12.0

type PolicyGuard struct {
	CCClient  policyGuardCCClient
	UAAClient uaaClient
}

func (*PolicyGuard) CheckAccess added in v0.12.0

func (g *PolicyGuard) CheckAccess(policies []models.Policy, userToken uaa_client.CheckTokenResponse) (bool, error)

type TagsIndex

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

func (*TagsIndex) ServeHTTP

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 {
	Logger    lager.Logger
	Marshaler marshal.Marshaler
}

func (*WhoAmIHandler) ServeHTTP

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

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