Documentation ¶
Index ¶
- Constants
- type AuthenticatedHandler
- type Authenticator
- type Health
- type PoliciesCleanup
- type PoliciesCreate
- type PoliciesDelete
- type PoliciesIndex
- type PoliciesIndexInternal
- type PolicyFilter
- type PolicyGuard
- type TagsIndex
- type UAAClient
- type UptimeHandler
- type Validator
- type WhoAmIHandler
- type WhoAmIResponse
Constants ¶
View Source
const MAX_REQ_BODY_SIZE = 10 << 20 // 10 MB
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthenticatedHandler ¶ added in v1.0.0
type AuthenticatedHandler interface {
ServeHTTP(logger lager.Logger, response http.ResponseWriter, request *http.Request, tokenData uaa_client.CheckTokenResponse)
}
type Authenticator ¶
func (*Authenticator) Wrap ¶
func (a *Authenticator) Wrap(handle AuthenticatedHandler) middleware.LoggableHandlerFunc
type PoliciesCleanup ¶ added in v0.7.0
type PoliciesCleanup struct { Marshaler marshal.Marshaler PolicyCleaner policyCleaner ErrorResponse errorResponse }
func (*PoliciesCleanup) ServeHTTP ¶ added in v0.7.0
func (h *PoliciesCleanup) ServeHTTP(logger lager.Logger, w http.ResponseWriter, req *http.Request, tokenData uaa_client.CheckTokenResponse)
type PoliciesCreate ¶
type PoliciesCreate struct { Store store Unmarshaler marshal.Unmarshaler Validator validator PolicyGuard policyGuard ErrorResponse errorResponse }
func (*PoliciesCreate) ServeHTTP ¶
func (h *PoliciesCreate) ServeHTTP(logger lager.Logger, w http.ResponseWriter, req *http.Request, tokenData uaa_client.CheckTokenResponse)
type PoliciesDelete ¶
type PoliciesDelete struct { Unmarshaler marshal.Unmarshaler Store store Validator validator PolicyGuard policyGuard ErrorResponse errorResponse }
func (*PoliciesDelete) ServeHTTP ¶
func (h *PoliciesDelete) ServeHTTP(logger lager.Logger, w http.ResponseWriter, req *http.Request, tokenData uaa_client.CheckTokenResponse)
type PoliciesIndex ¶
type PoliciesIndex struct { Store store Marshaler marshal.Marshaler PolicyFilter policyFilter ErrorResponse errorResponse }
func (*PoliciesIndex) ServeHTTP ¶
func (h *PoliciesIndex) ServeHTTP(logger lager.Logger, w http.ResponseWriter, req *http.Request, userToken uaa_client.CheckTokenResponse)
type PoliciesIndexInternal ¶
type PoliciesIndexInternal struct { Logger lager.Logger Store store Marshaler marshal.Marshaler ErrorResponse errorResponse }
func (*PoliciesIndexInternal) ServeHTTP ¶
func (h *PoliciesIndexInternal) ServeHTTP(logger lager.Logger, w http.ResponseWriter, req *http.Request)
type PolicyFilter ¶ added in v0.13.0
type PolicyFilter struct { CCClient ccClient UAAClient uaaClient ChunkSize int }
func (*PolicyFilter) FilterPolicies ¶ added in v0.13.0
func (f *PolicyFilter) FilterPolicies(policies []models.Policy, userToken uaa_client.CheckTokenResponse) ([]models.Policy, error)
type PolicyGuard ¶ added in v0.12.0
type PolicyGuard struct { CCClient ccClient 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 ¶
func (*TagsIndex) ServeHTTP ¶
func (h *TagsIndex) ServeHTTP(logger lager.Logger, w http.ResponseWriter, req *http.Request, _ uaa_client.CheckTokenResponse)
type UAAClient ¶
type UAAClient interface {
CheckToken(token string) (uaa_client.CheckTokenResponse, error)
}
type UptimeHandler ¶
func (*UptimeHandler) ServeHTTP ¶
func (h *UptimeHandler) ServeHTTP(logger lager.Logger, w http.ResponseWriter, req *http.Request)
type WhoAmIHandler ¶
func (*WhoAmIHandler) ServeHTTP ¶
func (h *WhoAmIHandler) ServeHTTP(logger lager.Logger, w http.ResponseWriter, req *http.Request, tokenData uaa_client.CheckTokenResponse)
type WhoAmIResponse ¶
type WhoAmIResponse struct {
UserName string `json:"user_name"`
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.