Documentation ¶
Index ¶
- func IgnoreAPIError(w http.ResponseWriter, r *http.Request, err apierrors.RequestError)
- type DefaultPorterHandler
- func (d *DefaultPorterHandler) Config() *config.Config
- func (d *DefaultPorterHandler) DecodeAndValidate(w http.ResponseWriter, r *http.Request, v interface{}) bool
- func (d *DefaultPorterHandler) DecodeAndValidateNoWrite(r *http.Request, v interface{}) error
- func (d *DefaultPorterHandler) HandleAPIError(w http.ResponseWriter, r *http.Request, err apierrors.RequestError)
- func (d *DefaultPorterHandler) HandleAPIErrorNoWrite(w http.ResponseWriter, r *http.Request, err apierrors.RequestError)
- func (d *DefaultPorterHandler) PopulateOAuthSession(w http.ResponseWriter, r *http.Request, state string, isProject bool) error
- func (d *DefaultPorterHandler) Repo() repository.Repository
- func (d *DefaultPorterHandler) WriteResult(w http.ResponseWriter, r *http.Request, v interface{})
- type PorterHandler
- type PorterHandlerReadWriter
- type PorterHandlerReader
- type PorterHandlerWriter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IgnoreAPIError ¶
func IgnoreAPIError(w http.ResponseWriter, r *http.Request, err apierrors.RequestError)
Types ¶
type DefaultPorterHandler ¶
type DefaultPorterHandler struct {
// contains filtered or unexported fields
}
func (*DefaultPorterHandler) Config ¶
func (d *DefaultPorterHandler) Config() *config.Config
func (*DefaultPorterHandler) DecodeAndValidate ¶
func (d *DefaultPorterHandler) DecodeAndValidate(w http.ResponseWriter, r *http.Request, v interface{}) bool
func (*DefaultPorterHandler) DecodeAndValidateNoWrite ¶
func (d *DefaultPorterHandler) DecodeAndValidateNoWrite(r *http.Request, v interface{}) error
func (*DefaultPorterHandler) HandleAPIError ¶
func (d *DefaultPorterHandler) HandleAPIError(w http.ResponseWriter, r *http.Request, err apierrors.RequestError)
func (*DefaultPorterHandler) HandleAPIErrorNoWrite ¶ added in v0.10.2
func (d *DefaultPorterHandler) HandleAPIErrorNoWrite(w http.ResponseWriter, r *http.Request, err apierrors.RequestError)
func (*DefaultPorterHandler) PopulateOAuthSession ¶
func (d *DefaultPorterHandler) PopulateOAuthSession(w http.ResponseWriter, r *http.Request, state string, isProject bool) error
func (*DefaultPorterHandler) Repo ¶
func (d *DefaultPorterHandler) Repo() repository.Repository
func (*DefaultPorterHandler) WriteResult ¶
func (d *DefaultPorterHandler) WriteResult(w http.ResponseWriter, r *http.Request, v interface{})
type PorterHandler ¶
type PorterHandler interface { Config() *config.Config Repo() repository.Repository HandleAPIError(w http.ResponseWriter, r *http.Request, err apierrors.RequestError) HandleAPIErrorNoWrite(w http.ResponseWriter, r *http.Request, err apierrors.RequestError) PopulateOAuthSession(w http.ResponseWriter, r *http.Request, state string, isProject bool) error }
type PorterHandlerReadWriter ¶
type PorterHandlerReadWriter interface { PorterHandlerWriter PorterHandlerReader }
func NewDefaultPorterHandler ¶
func NewDefaultPorterHandler( config *config.Config, decoderValidator shared.RequestDecoderValidator, writer shared.ResultWriter, ) PorterHandlerReadWriter
type PorterHandlerReader ¶
type PorterHandlerReader interface { PorterHandler shared.RequestDecoderValidator }
type PorterHandlerWriter ¶
type PorterHandlerWriter interface { PorterHandler shared.ResultWriter }
Click to show internal directories.
Click to hide internal directories.