Documentation ¶
Index ¶
- Constants
- type GetRekorVersion
- type GetRekorVersionDefault
- func (o *GetRekorVersionDefault) SetPayload(payload *models.Error)
- func (o *GetRekorVersionDefault) SetStatusCode(code int)
- func (o *GetRekorVersionDefault) WithPayload(payload *models.Error) *GetRekorVersionDefault
- func (o *GetRekorVersionDefault) WithStatusCode(code int) *GetRekorVersionDefault
- func (o *GetRekorVersionDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetRekorVersionHandler
- type GetRekorVersionHandlerFunc
- type GetRekorVersionOK
- type GetRekorVersionParams
- type GetRekorVersionURL
- func (o *GetRekorVersionURL) Build() (*url.URL, error)
- func (o *GetRekorVersionURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetRekorVersionURL) Must(u *url.URL, err error) *url.URL
- func (o *GetRekorVersionURL) SetBasePath(bp string)
- func (o *GetRekorVersionURL) String() string
- func (o *GetRekorVersionURL) StringFull(scheme, host string) string
- func (o *GetRekorVersionURL) WithBasePath(bp string) *GetRekorVersionURL
Constants ¶
const GetRekorVersionOKCode int = 200
GetRekorVersionOKCode is the HTTP code returned for type GetRekorVersionOK
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetRekorVersion ¶
type GetRekorVersion struct { Context *middleware.Context Handler GetRekorVersionHandler }
GetRekorVersion swagger:route GET /api/v1/version server getRekorVersion
Get the current version of the rekor server
func NewGetRekorVersion ¶
func NewGetRekorVersion(ctx *middleware.Context, handler GetRekorVersionHandler) *GetRekorVersion
NewGetRekorVersion creates a new http.Handler for the get rekor version operation
func (*GetRekorVersion) ServeHTTP ¶
func (o *GetRekorVersion) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetRekorVersionDefault ¶
type GetRekorVersionDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
GetRekorVersionDefault There was an internal error in the server while processing the request
swagger:response getRekorVersionDefault
func NewGetRekorVersionDefault ¶
func NewGetRekorVersionDefault(code int) *GetRekorVersionDefault
NewGetRekorVersionDefault creates GetRekorVersionDefault with default headers values
func (*GetRekorVersionDefault) SetPayload ¶
func (o *GetRekorVersionDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the get rekor version default response
func (*GetRekorVersionDefault) SetStatusCode ¶
func (o *GetRekorVersionDefault) SetStatusCode(code int)
SetStatusCode sets the status to the get rekor version default response
func (*GetRekorVersionDefault) WithPayload ¶
func (o *GetRekorVersionDefault) WithPayload(payload *models.Error) *GetRekorVersionDefault
WithPayload adds the payload to the get rekor version default response
func (*GetRekorVersionDefault) WithStatusCode ¶
func (o *GetRekorVersionDefault) WithStatusCode(code int) *GetRekorVersionDefault
WithStatusCode adds the status to the get rekor version default response
func (*GetRekorVersionDefault) WriteResponse ¶
func (o *GetRekorVersionDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetRekorVersionHandler ¶
type GetRekorVersionHandler interface {
Handle(GetRekorVersionParams) middleware.Responder
}
GetRekorVersionHandler interface for that can handle valid get rekor version params
type GetRekorVersionHandlerFunc ¶
type GetRekorVersionHandlerFunc func(GetRekorVersionParams) middleware.Responder
GetRekorVersionHandlerFunc turns a function with the right signature into a get rekor version handler
func (GetRekorVersionHandlerFunc) Handle ¶
func (fn GetRekorVersionHandlerFunc) Handle(params GetRekorVersionParams) middleware.Responder
Handle executing the request and returning a response
type GetRekorVersionOK ¶
type GetRekorVersionOK struct { /* In: Body */ Payload *models.RekorVersion `json:"body,omitempty"` }
GetRekorVersionOK A JSON object with the running rekor version
swagger:response getRekorVersionOK
func NewGetRekorVersionOK ¶
func NewGetRekorVersionOK() *GetRekorVersionOK
NewGetRekorVersionOK creates GetRekorVersionOK with default headers values
func (*GetRekorVersionOK) SetPayload ¶
func (o *GetRekorVersionOK) SetPayload(payload *models.RekorVersion)
SetPayload sets the payload to the get rekor version o k response
func (*GetRekorVersionOK) WithPayload ¶
func (o *GetRekorVersionOK) WithPayload(payload *models.RekorVersion) *GetRekorVersionOK
WithPayload adds the payload to the get rekor version o k response
func (*GetRekorVersionOK) WriteResponse ¶
func (o *GetRekorVersionOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetRekorVersionParams ¶
GetRekorVersionParams contains all the bound params for the get rekor version operation typically these are obtained from a http.Request
swagger:parameters getRekorVersion
func NewGetRekorVersionParams ¶
func NewGetRekorVersionParams() GetRekorVersionParams
NewGetRekorVersionParams creates a new GetRekorVersionParams object
There are no default values defined in the spec.
func (*GetRekorVersionParams) BindRequest ¶
func (o *GetRekorVersionParams) 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 NewGetRekorVersionParams() beforehand.
type GetRekorVersionURL ¶
type GetRekorVersionURL struct {
// contains filtered or unexported fields
}
GetRekorVersionURL generates an URL for the get rekor version operation
func (*GetRekorVersionURL) Build ¶
func (o *GetRekorVersionURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetRekorVersionURL) BuildFull ¶
func (o *GetRekorVersionURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetRekorVersionURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetRekorVersionURL) SetBasePath ¶
func (o *GetRekorVersionURL) 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 (*GetRekorVersionURL) String ¶
func (o *GetRekorVersionURL) String() string
String returns the string representation of the path with query string
func (*GetRekorVersionURL) StringFull ¶
func (o *GetRekorVersionURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetRekorVersionURL) WithBasePath ¶
func (o *GetRekorVersionURL) WithBasePath(bp string) *GetRekorVersionURL
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