Documentation ¶
Index ¶
- Constants
- type GetBadge
- type GetBadgeDefault
- func (o *GetBadgeDefault) SetPayload(payload *models.Error)
- func (o *GetBadgeDefault) SetStatusCode(code int)
- func (o *GetBadgeDefault) WithPayload(payload *models.Error) *GetBadgeDefault
- func (o *GetBadgeDefault) WithStatusCode(code int) *GetBadgeDefault
- func (o *GetBadgeDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetBadgeFound
- type GetBadgeHandler
- type GetBadgeHandlerFunc
- type GetBadgeParams
- type GetBadgeURL
- func (o *GetBadgeURL) Build() (*url.URL, error)
- func (o *GetBadgeURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetBadgeURL) Must(u *url.URL, err error) *url.URL
- func (o *GetBadgeURL) SetBasePath(bp string)
- func (o *GetBadgeURL) String() string
- func (o *GetBadgeURL) StringFull(scheme, host string) string
- func (o *GetBadgeURL) WithBasePath(bp string) *GetBadgeURL
Constants ¶
const GetBadgeFoundCode int = 302
GetBadgeFoundCode is the HTTP code returned for type GetBadgeFound
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetBadge ¶
type GetBadge struct { Context *middleware.Context Handler GetBadgeHandler }
GetBadge swagger:route GET /projects/{platform}/{org}/{repo}/badge badge getBadge
Get a repository's Scorecard badge
func NewGetBadge ¶
func NewGetBadge(ctx *middleware.Context, handler GetBadgeHandler) *GetBadge
NewGetBadge creates a new http.Handler for the get badge operation
type GetBadgeDefault ¶
type GetBadgeDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
GetBadgeDefault There was an internal error in the server while processing the request
swagger:response getBadgeDefault
func NewGetBadgeDefault ¶
func NewGetBadgeDefault(code int) *GetBadgeDefault
NewGetBadgeDefault creates GetBadgeDefault with default headers values
func (*GetBadgeDefault) SetPayload ¶
func (o *GetBadgeDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the get badge default response
func (*GetBadgeDefault) SetStatusCode ¶
func (o *GetBadgeDefault) SetStatusCode(code int)
SetStatusCode sets the status to the get badge default response
func (*GetBadgeDefault) WithPayload ¶
func (o *GetBadgeDefault) WithPayload(payload *models.Error) *GetBadgeDefault
WithPayload adds the payload to the get badge default response
func (*GetBadgeDefault) WithStatusCode ¶
func (o *GetBadgeDefault) WithStatusCode(code int) *GetBadgeDefault
WithStatusCode adds the status to the get badge default response
func (*GetBadgeDefault) WriteResponse ¶
func (o *GetBadgeDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetBadgeFound ¶
type GetBadgeFound struct { }
GetBadgeFound Scorecard badge for the repository
swagger:response getBadgeFound
func NewGetBadgeFound ¶
func NewGetBadgeFound() *GetBadgeFound
NewGetBadgeFound creates GetBadgeFound with default headers values
func (*GetBadgeFound) WriteResponse ¶
func (o *GetBadgeFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetBadgeHandler ¶
type GetBadgeHandler interface {
Handle(GetBadgeParams) middleware.Responder
}
GetBadgeHandler interface for that can handle valid get badge params
type GetBadgeHandlerFunc ¶
type GetBadgeHandlerFunc func(GetBadgeParams) middleware.Responder
GetBadgeHandlerFunc turns a function with the right signature into a get badge handler
func (GetBadgeHandlerFunc) Handle ¶
func (fn GetBadgeHandlerFunc) Handle(params GetBadgeParams) middleware.Responder
Handle executing the request and returning a response
type GetBadgeParams ¶
type GetBadgeParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Name of the owner/organization of the repository Required: true In: path */ Org string /*VCS platform. eg. github.com Required: true In: path */ Platform string /*Name of the repository Required: true In: path */ Repo string /*Style to render the badge In: query Default: "flat" */ Style *string }
GetBadgeParams contains all the bound params for the get badge operation typically these are obtained from a http.Request
swagger:parameters getBadge
func NewGetBadgeParams ¶
func NewGetBadgeParams() GetBadgeParams
NewGetBadgeParams creates a new GetBadgeParams object with the default values initialized.
func (*GetBadgeParams) BindRequest ¶
func (o *GetBadgeParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewGetBadgeParams() beforehand.
type GetBadgeURL ¶
type GetBadgeURL struct { Org string Platform string Repo string Style *string // contains filtered or unexported fields }
GetBadgeURL generates an URL for the get badge operation
func (*GetBadgeURL) Build ¶
func (o *GetBadgeURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetBadgeURL) BuildFull ¶
func (o *GetBadgeURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetBadgeURL) SetBasePath ¶
func (o *GetBadgeURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*GetBadgeURL) String ¶
func (o *GetBadgeURL) String() string
String returns the string representation of the path with query string
func (*GetBadgeURL) StringFull ¶
func (o *GetBadgeURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetBadgeURL) WithBasePath ¶
func (o *GetBadgeURL) WithBasePath(bp string) *GetBadgeURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string