wrappa

package
v4.2.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2018 License: Apache-2.0 Imports: 7 Imported by: 71

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIAuthWrappa

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

func NewAPIAuthWrappa

func NewAPIAuthWrappa(
	checkPipelineAccessHandlerFactory auth.CheckPipelineAccessHandlerFactory,
	checkBuildReadAccessHandlerFactory auth.CheckBuildReadAccessHandlerFactory,
	checkBuildWriteAccessHandlerFactory auth.CheckBuildWriteAccessHandlerFactory,
	checkWorkerTeamAccessHandlerFactory auth.CheckWorkerTeamAccessHandlerFactory,
) *APIAuthWrappa

func (*APIAuthWrappa) Wrap

func (wrappa *APIAuthWrappa) Wrap(handlers rata.Handlers) rata.Handlers

type APIMetricsWrappa

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

func (APIMetricsWrappa) Wrap

func (wrappa APIMetricsWrappa) Wrap(handlers rata.Handlers) rata.Handlers

type ConcourseVersionWrappa

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

func (ConcourseVersionWrappa) Wrap

func (wrappa ConcourseVersionWrappa) Wrap(handlers rata.Handlers) rata.Handlers

type LoggerHandler

type LoggerHandler struct {
	Logger  lager.Logger
	Handler http.Handler
}

func (LoggerHandler) ServeHTTP

func (handler LoggerHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type MultiWrappa

type MultiWrappa []Wrappa

func (MultiWrappa) Wrap

func (wrappas MultiWrappa) Wrap(handlers rata.Handlers) rata.Handlers

type SecurityHandler

type SecurityHandler struct {
	XFrameOptions string
	Handler       http.Handler
}

func (SecurityHandler) ServeHTTP

func (handler SecurityHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type VersionedHandler

type VersionedHandler struct {
	Version string
	Handler http.Handler
}

func (VersionedHandler) ServeHTTP

func (handler VersionedHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type Wrappa

type Wrappa interface {
	Wrap(rata.Handlers) rata.Handlers
}

func NewAPIMetricsWrappa

func NewAPIMetricsWrappa(logger lager.Logger) Wrappa

func NewConcourseVersionWrappa

func NewConcourseVersionWrappa(version string) Wrappa

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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