Documentation ¶
Index ¶
- Constants
- type Authenticator
- type ErrorResponse
- func (e *ErrorResponse) BadRequest(w http.ResponseWriter, err error, message, description string)
- func (e *ErrorResponse) Forbidden(w http.ResponseWriter, err error, message, description string)
- func (e *ErrorResponse) InternalServerError(w http.ResponseWriter, err error, message, description string)
- func (e *ErrorResponse) Unauthorized(w http.ResponseWriter, err error, message, description string)
- type MetricWrapper
- 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 Authenticator ¶
type Authenticator struct { Client UAAClient Logger lager.Logger Scopes []string ErrorResponse errorResponse }
func (*Authenticator) Wrap ¶
func (a *Authenticator) Wrap(handle authenticatedHandler) http.Handler
type ErrorResponse ¶
func (*ErrorResponse) BadRequest ¶
func (e *ErrorResponse) BadRequest(w http.ResponseWriter, err error, message, description string)
func (*ErrorResponse) Forbidden ¶
func (e *ErrorResponse) Forbidden(w http.ResponseWriter, err error, message, description string)
func (*ErrorResponse) InternalServerError ¶
func (e *ErrorResponse) InternalServerError(w http.ResponseWriter, err error, message, description string)
func (*ErrorResponse) Unauthorized ¶
func (e *ErrorResponse) Unauthorized(w http.ResponseWriter, err error, message, description string)
type MetricWrapper ¶
type MetricWrapper struct { Name string MetricsSender metricsSender }
type PoliciesCleanup ¶
type PoliciesCleanup struct { Logger lager.Logger Marshaler marshal.Marshaler PolicyCleaner policyCleaner ErrorResponse errorResponse }
func (*PoliciesCleanup) ServeHTTP ¶
func (h *PoliciesCleanup) ServeHTTP(w http.ResponseWriter, req *http.Request, tokenData uaa_client.CheckTokenResponse)
type PoliciesCreate ¶
type PoliciesCreate struct { Logger lager.Logger Store store Unmarshaler marshal.Unmarshaler Validator validator PolicyGuard policyGuard ErrorResponse errorResponse }
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 Validator validator PolicyGuard policyGuard ErrorResponse errorResponse }
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 Marshaler marshal.Marshaler PolicyFilter policyFilter ErrorResponse errorResponse }
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 Marshaler marshal.Marshaler ErrorResponse errorResponse }
func (*PoliciesIndexInternal) ServeHTTP ¶
func (h *PoliciesIndexInternal) ServeHTTP(w http.ResponseWriter, req *http.Request)
type PolicyFilter ¶
type PolicyFilter struct { CCClient ccClient UAAClient uaaClient ChunkSize int }
func (*PolicyFilter) FilterPolicies ¶
func (f *PolicyFilter) FilterPolicies(policies []models.Policy, userToken uaa_client.CheckTokenResponse) ([]models.Policy, error)
type PolicyGuard ¶
type PolicyGuard struct { CCClient ccClient UAAClient uaaClient }
func (*PolicyGuard) CheckAccess ¶
func (g *PolicyGuard) CheckAccess(policies []models.Policy, userToken uaa_client.CheckTokenResponse) (bool, error)
type TagsIndex ¶
type TagsIndex struct { Logger lager.Logger Store store Marshaler marshal.Marshaler ErrorResponse errorResponse }
func (*TagsIndex) ServeHTTP ¶
func (h *TagsIndex) ServeHTTP(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(w http.ResponseWriter, req *http.Request)
type WhoAmIHandler ¶
type WhoAmIHandler struct { Logger lager.Logger Marshaler marshal.Marshaler ErrorResponse errorResponse }
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"`
}
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter
|
This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter |
Click to show internal directories.
Click to hide internal directories.