Documentation ¶
Index ¶
- Constants
- type GetReportLog
- type GetReportLogForbidden
- func (o *GetReportLogForbidden) SetPayload(payload *models.Errors)
- func (o *GetReportLogForbidden) SetXRequestID(xRequestID string)
- func (o *GetReportLogForbidden) WithPayload(payload *models.Errors) *GetReportLogForbidden
- func (o *GetReportLogForbidden) WithXRequestID(xRequestID string) *GetReportLogForbidden
- func (o *GetReportLogForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetReportLogHandler
- type GetReportLogHandlerFunc
- type GetReportLogInternalServerError
- func (o *GetReportLogInternalServerError) SetPayload(payload *models.Errors)
- func (o *GetReportLogInternalServerError) SetXRequestID(xRequestID string)
- func (o *GetReportLogInternalServerError) WithPayload(payload *models.Errors) *GetReportLogInternalServerError
- func (o *GetReportLogInternalServerError) WithXRequestID(xRequestID string) *GetReportLogInternalServerError
- func (o *GetReportLogInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetReportLogNotFound
- func (o *GetReportLogNotFound) SetPayload(payload *models.Errors)
- func (o *GetReportLogNotFound) SetXRequestID(xRequestID string)
- func (o *GetReportLogNotFound) WithPayload(payload *models.Errors) *GetReportLogNotFound
- func (o *GetReportLogNotFound) WithXRequestID(xRequestID string) *GetReportLogNotFound
- func (o *GetReportLogNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetReportLogOK
- type GetReportLogParams
- type GetReportLogURL
- func (o *GetReportLogURL) Build() (*url.URL, error)
- func (o *GetReportLogURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetReportLogURL) Must(u *url.URL, err error) *url.URL
- func (o *GetReportLogURL) SetBasePath(bp string)
- func (o *GetReportLogURL) String() string
- func (o *GetReportLogURL) StringFull(scheme, host string) string
- func (o *GetReportLogURL) WithBasePath(bp string) *GetReportLogURL
- type GetReportLogUnauthorized
- func (o *GetReportLogUnauthorized) SetPayload(payload *models.Errors)
- func (o *GetReportLogUnauthorized) SetXRequestID(xRequestID string)
- func (o *GetReportLogUnauthorized) WithPayload(payload *models.Errors) *GetReportLogUnauthorized
- func (o *GetReportLogUnauthorized) WithXRequestID(xRequestID string) *GetReportLogUnauthorized
- func (o *GetReportLogUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ScanArtifact
- type ScanArtifactAccepted
- type ScanArtifactBadRequest
- func (o *ScanArtifactBadRequest) SetPayload(payload *models.Errors)
- func (o *ScanArtifactBadRequest) SetXRequestID(xRequestID string)
- func (o *ScanArtifactBadRequest) WithPayload(payload *models.Errors) *ScanArtifactBadRequest
- func (o *ScanArtifactBadRequest) WithXRequestID(xRequestID string) *ScanArtifactBadRequest
- func (o *ScanArtifactBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ScanArtifactForbidden
- func (o *ScanArtifactForbidden) SetPayload(payload *models.Errors)
- func (o *ScanArtifactForbidden) SetXRequestID(xRequestID string)
- func (o *ScanArtifactForbidden) WithPayload(payload *models.Errors) *ScanArtifactForbidden
- func (o *ScanArtifactForbidden) WithXRequestID(xRequestID string) *ScanArtifactForbidden
- func (o *ScanArtifactForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ScanArtifactHandler
- type ScanArtifactHandlerFunc
- type ScanArtifactInternalServerError
- func (o *ScanArtifactInternalServerError) SetPayload(payload *models.Errors)
- func (o *ScanArtifactInternalServerError) SetXRequestID(xRequestID string)
- func (o *ScanArtifactInternalServerError) WithPayload(payload *models.Errors) *ScanArtifactInternalServerError
- func (o *ScanArtifactInternalServerError) WithXRequestID(xRequestID string) *ScanArtifactInternalServerError
- func (o *ScanArtifactInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ScanArtifactNotFound
- func (o *ScanArtifactNotFound) SetPayload(payload *models.Errors)
- func (o *ScanArtifactNotFound) SetXRequestID(xRequestID string)
- func (o *ScanArtifactNotFound) WithPayload(payload *models.Errors) *ScanArtifactNotFound
- func (o *ScanArtifactNotFound) WithXRequestID(xRequestID string) *ScanArtifactNotFound
- func (o *ScanArtifactNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ScanArtifactParams
- type ScanArtifactURL
- func (o *ScanArtifactURL) Build() (*url.URL, error)
- func (o *ScanArtifactURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ScanArtifactURL) Must(u *url.URL, err error) *url.URL
- func (o *ScanArtifactURL) SetBasePath(bp string)
- func (o *ScanArtifactURL) String() string
- func (o *ScanArtifactURL) StringFull(scheme, host string) string
- func (o *ScanArtifactURL) WithBasePath(bp string) *ScanArtifactURL
- type ScanArtifactUnauthorized
- func (o *ScanArtifactUnauthorized) SetPayload(payload *models.Errors)
- func (o *ScanArtifactUnauthorized) SetXRequestID(xRequestID string)
- func (o *ScanArtifactUnauthorized) WithPayload(payload *models.Errors) *ScanArtifactUnauthorized
- func (o *ScanArtifactUnauthorized) WithXRequestID(xRequestID string) *ScanArtifactUnauthorized
- func (o *ScanArtifactUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
Constants ¶
const GetReportLogForbiddenCode int = 403
GetReportLogForbiddenCode is the HTTP code returned for type GetReportLogForbidden
const GetReportLogInternalServerErrorCode int = 500
GetReportLogInternalServerErrorCode is the HTTP code returned for type GetReportLogInternalServerError
const GetReportLogNotFoundCode int = 404
GetReportLogNotFoundCode is the HTTP code returned for type GetReportLogNotFound
const GetReportLogOKCode int = 200
GetReportLogOKCode is the HTTP code returned for type GetReportLogOK
GetReportLogUnauthorizedCode is the HTTP code returned for type GetReportLogUnauthorized
const ScanArtifactAcceptedCode int = 202
ScanArtifactAcceptedCode is the HTTP code returned for type ScanArtifactAccepted
const ScanArtifactBadRequestCode int = 400
ScanArtifactBadRequestCode is the HTTP code returned for type ScanArtifactBadRequest
const ScanArtifactForbiddenCode int = 403
ScanArtifactForbiddenCode is the HTTP code returned for type ScanArtifactForbidden
const ScanArtifactInternalServerErrorCode int = 500
ScanArtifactInternalServerErrorCode is the HTTP code returned for type ScanArtifactInternalServerError
const ScanArtifactNotFoundCode int = 404
ScanArtifactNotFoundCode is the HTTP code returned for type ScanArtifactNotFound
ScanArtifactUnauthorizedCode is the HTTP code returned for type ScanArtifactUnauthorized
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetReportLog ¶
type GetReportLog struct { Context *middleware.Context Handler GetReportLogHandler }
GetReportLog swagger:route GET /projects/{project_name}/repositories/{repository_name}/artifacts/{reference}/scan/{report_id}/log scan getReportLog
Get the log of the scan report ¶
Get the log of the scan report
func NewGetReportLog ¶
func NewGetReportLog(ctx *middleware.Context, handler GetReportLogHandler) *GetReportLog
NewGetReportLog creates a new http.Handler for the get report log operation
func (*GetReportLog) ServeHTTP ¶
func (o *GetReportLog) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetReportLogForbidden ¶
type GetReportLogForbidden struct { /*The ID of the corresponding request for the response */ XRequestID string `json:"X-Request-Id"` /* In: Body */ Payload *models.Errors `json:"body,omitempty"` }
GetReportLogForbidden Forbidden
swagger:response getReportLogForbidden
func NewGetReportLogForbidden ¶
func NewGetReportLogForbidden() *GetReportLogForbidden
NewGetReportLogForbidden creates GetReportLogForbidden with default headers values
func (*GetReportLogForbidden) SetPayload ¶
func (o *GetReportLogForbidden) SetPayload(payload *models.Errors)
SetPayload sets the payload to the get report log forbidden response
func (*GetReportLogForbidden) SetXRequestID ¶
func (o *GetReportLogForbidden) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the get report log forbidden response
func (*GetReportLogForbidden) WithPayload ¶
func (o *GetReportLogForbidden) WithPayload(payload *models.Errors) *GetReportLogForbidden
WithPayload adds the payload to the get report log forbidden response
func (*GetReportLogForbidden) WithXRequestID ¶
func (o *GetReportLogForbidden) WithXRequestID(xRequestID string) *GetReportLogForbidden
WithXRequestID adds the xRequestId to the get report log forbidden response
func (*GetReportLogForbidden) WriteResponse ¶
func (o *GetReportLogForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetReportLogHandler ¶
type GetReportLogHandler interface {
Handle(GetReportLogParams, interface{}) middleware.Responder
}
GetReportLogHandler interface for that can handle valid get report log params
type GetReportLogHandlerFunc ¶
type GetReportLogHandlerFunc func(GetReportLogParams, interface{}) middleware.Responder
GetReportLogHandlerFunc turns a function with the right signature into a get report log handler
func (GetReportLogHandlerFunc) Handle ¶
func (fn GetReportLogHandlerFunc) Handle(params GetReportLogParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type GetReportLogInternalServerError ¶
type GetReportLogInternalServerError struct { /*The ID of the corresponding request for the response */ XRequestID string `json:"X-Request-Id"` /* In: Body */ Payload *models.Errors `json:"body,omitempty"` }
GetReportLogInternalServerError Internal server error
swagger:response getReportLogInternalServerError
func NewGetReportLogInternalServerError ¶
func NewGetReportLogInternalServerError() *GetReportLogInternalServerError
NewGetReportLogInternalServerError creates GetReportLogInternalServerError with default headers values
func (*GetReportLogInternalServerError) SetPayload ¶
func (o *GetReportLogInternalServerError) SetPayload(payload *models.Errors)
SetPayload sets the payload to the get report log internal server error response
func (*GetReportLogInternalServerError) SetXRequestID ¶
func (o *GetReportLogInternalServerError) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the get report log internal server error response
func (*GetReportLogInternalServerError) WithPayload ¶
func (o *GetReportLogInternalServerError) WithPayload(payload *models.Errors) *GetReportLogInternalServerError
WithPayload adds the payload to the get report log internal server error response
func (*GetReportLogInternalServerError) WithXRequestID ¶
func (o *GetReportLogInternalServerError) WithXRequestID(xRequestID string) *GetReportLogInternalServerError
WithXRequestID adds the xRequestId to the get report log internal server error response
func (*GetReportLogInternalServerError) WriteResponse ¶
func (o *GetReportLogInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetReportLogNotFound ¶
type GetReportLogNotFound struct { /*The ID of the corresponding request for the response */ XRequestID string `json:"X-Request-Id"` /* In: Body */ Payload *models.Errors `json:"body,omitempty"` }
GetReportLogNotFound Not found
swagger:response getReportLogNotFound
func NewGetReportLogNotFound ¶
func NewGetReportLogNotFound() *GetReportLogNotFound
NewGetReportLogNotFound creates GetReportLogNotFound with default headers values
func (*GetReportLogNotFound) SetPayload ¶
func (o *GetReportLogNotFound) SetPayload(payload *models.Errors)
SetPayload sets the payload to the get report log not found response
func (*GetReportLogNotFound) SetXRequestID ¶
func (o *GetReportLogNotFound) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the get report log not found response
func (*GetReportLogNotFound) WithPayload ¶
func (o *GetReportLogNotFound) WithPayload(payload *models.Errors) *GetReportLogNotFound
WithPayload adds the payload to the get report log not found response
func (*GetReportLogNotFound) WithXRequestID ¶
func (o *GetReportLogNotFound) WithXRequestID(xRequestID string) *GetReportLogNotFound
WithXRequestID adds the xRequestId to the get report log not found response
func (*GetReportLogNotFound) WriteResponse ¶
func (o *GetReportLogNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetReportLogOK ¶
type GetReportLogOK struct { /* In: Body */ Payload string `json:"body,omitempty"` }
GetReportLogOK Successfully get scan log file
swagger:response getReportLogOK
func NewGetReportLogOK ¶
func NewGetReportLogOK() *GetReportLogOK
NewGetReportLogOK creates GetReportLogOK with default headers values
func (*GetReportLogOK) SetPayload ¶
func (o *GetReportLogOK) SetPayload(payload string)
SetPayload sets the payload to the get report log o k response
func (*GetReportLogOK) WithPayload ¶
func (o *GetReportLogOK) WithPayload(payload string) *GetReportLogOK
WithPayload adds the payload to the get report log o k response
func (*GetReportLogOK) WriteResponse ¶
func (o *GetReportLogOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetReportLogParams ¶
type GetReportLogParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*An unique ID for the request Min Length: 1 In: header */ XRequestID *string /*The name of the project Required: true In: path */ ProjectName string /*The reference of the artifact, can be digest or tag Required: true In: path */ Reference string /*The report id to get the log Required: true In: path */ ReportID string /*The name of the repository. If it contains slash, encode it with URL encoding. e.g. a/b -> a%252Fb Required: true In: path */ RepositoryName string }
GetReportLogParams contains all the bound params for the get report log operation typically these are obtained from a http.Request
swagger:parameters getReportLog
func NewGetReportLogParams ¶
func NewGetReportLogParams() GetReportLogParams
NewGetReportLogParams creates a new GetReportLogParams object no default values defined in spec.
func (*GetReportLogParams) BindRequest ¶
func (o *GetReportLogParams) 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 NewGetReportLogParams() beforehand.
type GetReportLogURL ¶
type GetReportLogURL struct { ProjectName string Reference string ReportID string RepositoryName string // contains filtered or unexported fields }
GetReportLogURL generates an URL for the get report log operation
func (*GetReportLogURL) Build ¶
func (o *GetReportLogURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetReportLogURL) BuildFull ¶
func (o *GetReportLogURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetReportLogURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetReportLogURL) SetBasePath ¶
func (o *GetReportLogURL) 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 (*GetReportLogURL) String ¶
func (o *GetReportLogURL) String() string
String returns the string representation of the path with query string
func (*GetReportLogURL) StringFull ¶
func (o *GetReportLogURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetReportLogURL) WithBasePath ¶
func (o *GetReportLogURL) WithBasePath(bp string) *GetReportLogURL
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
type GetReportLogUnauthorized ¶
type GetReportLogUnauthorized struct { string `json:"X-Request-Id"` Payload *models.Errors `json:"body,omitempty"` }XRequestID
GetReportLogUnauthorized Unauthorized
swagger:response getReportLogUnauthorized
func NewGetReportLogUnauthorized ¶
func NewGetReportLogUnauthorized() *GetReportLogUnauthorized
NewGetReportLogUnauthorized creates GetReportLogUnauthorized with default headers values
func (*GetReportLogUnauthorized) SetPayload ¶
func (o *GetReportLogUnauthorized) SetPayload(payload *models.Errors)
SetPayload sets the payload to the get report log unauthorized response
func (*GetReportLogUnauthorized) SetXRequestID ¶
func (o *GetReportLogUnauthorized) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the get report log unauthorized response
func (*GetReportLogUnauthorized) WithPayload ¶
func (o *GetReportLogUnauthorized) WithPayload(payload *models.Errors) *GetReportLogUnauthorized
WithPayload adds the payload to the get report log unauthorized response
func (*GetReportLogUnauthorized) WithXRequestID ¶
func (o *GetReportLogUnauthorized) WithXRequestID(xRequestID string) *GetReportLogUnauthorized
WithXRequestID adds the xRequestId to the get report log unauthorized response
func (*GetReportLogUnauthorized) WriteResponse ¶
func (o *GetReportLogUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ScanArtifact ¶
type ScanArtifact struct { Context *middleware.Context Handler ScanArtifactHandler }
ScanArtifact swagger:route POST /projects/{project_name}/repositories/{repository_name}/artifacts/{reference}/scan scan scanArtifact
Scan the artifact ¶
Scan the specified artifact
func NewScanArtifact ¶
func NewScanArtifact(ctx *middleware.Context, handler ScanArtifactHandler) *ScanArtifact
NewScanArtifact creates a new http.Handler for the scan artifact operation
func (*ScanArtifact) ServeHTTP ¶
func (o *ScanArtifact) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type ScanArtifactAccepted ¶
type ScanArtifactAccepted struct { /*The ID of the corresponding request for the response */ XRequestID string `json:"X-Request-Id"` }
ScanArtifactAccepted Accepted
swagger:response scanArtifactAccepted
func NewScanArtifactAccepted ¶
func NewScanArtifactAccepted() *ScanArtifactAccepted
NewScanArtifactAccepted creates ScanArtifactAccepted with default headers values
func (*ScanArtifactAccepted) SetXRequestID ¶
func (o *ScanArtifactAccepted) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the scan artifact accepted response
func (*ScanArtifactAccepted) WithXRequestID ¶
func (o *ScanArtifactAccepted) WithXRequestID(xRequestID string) *ScanArtifactAccepted
WithXRequestID adds the xRequestId to the scan artifact accepted response
func (*ScanArtifactAccepted) WriteResponse ¶
func (o *ScanArtifactAccepted) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ScanArtifactBadRequest ¶
type ScanArtifactBadRequest struct { /*The ID of the corresponding request for the response */ XRequestID string `json:"X-Request-Id"` /* In: Body */ Payload *models.Errors `json:"body,omitempty"` }
ScanArtifactBadRequest Bad request
swagger:response scanArtifactBadRequest
func NewScanArtifactBadRequest ¶
func NewScanArtifactBadRequest() *ScanArtifactBadRequest
NewScanArtifactBadRequest creates ScanArtifactBadRequest with default headers values
func (*ScanArtifactBadRequest) SetPayload ¶
func (o *ScanArtifactBadRequest) SetPayload(payload *models.Errors)
SetPayload sets the payload to the scan artifact bad request response
func (*ScanArtifactBadRequest) SetXRequestID ¶
func (o *ScanArtifactBadRequest) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the scan artifact bad request response
func (*ScanArtifactBadRequest) WithPayload ¶
func (o *ScanArtifactBadRequest) WithPayload(payload *models.Errors) *ScanArtifactBadRequest
WithPayload adds the payload to the scan artifact bad request response
func (*ScanArtifactBadRequest) WithXRequestID ¶
func (o *ScanArtifactBadRequest) WithXRequestID(xRequestID string) *ScanArtifactBadRequest
WithXRequestID adds the xRequestId to the scan artifact bad request response
func (*ScanArtifactBadRequest) WriteResponse ¶
func (o *ScanArtifactBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ScanArtifactForbidden ¶
type ScanArtifactForbidden struct { /*The ID of the corresponding request for the response */ XRequestID string `json:"X-Request-Id"` /* In: Body */ Payload *models.Errors `json:"body,omitempty"` }
ScanArtifactForbidden Forbidden
swagger:response scanArtifactForbidden
func NewScanArtifactForbidden ¶
func NewScanArtifactForbidden() *ScanArtifactForbidden
NewScanArtifactForbidden creates ScanArtifactForbidden with default headers values
func (*ScanArtifactForbidden) SetPayload ¶
func (o *ScanArtifactForbidden) SetPayload(payload *models.Errors)
SetPayload sets the payload to the scan artifact forbidden response
func (*ScanArtifactForbidden) SetXRequestID ¶
func (o *ScanArtifactForbidden) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the scan artifact forbidden response
func (*ScanArtifactForbidden) WithPayload ¶
func (o *ScanArtifactForbidden) WithPayload(payload *models.Errors) *ScanArtifactForbidden
WithPayload adds the payload to the scan artifact forbidden response
func (*ScanArtifactForbidden) WithXRequestID ¶
func (o *ScanArtifactForbidden) WithXRequestID(xRequestID string) *ScanArtifactForbidden
WithXRequestID adds the xRequestId to the scan artifact forbidden response
func (*ScanArtifactForbidden) WriteResponse ¶
func (o *ScanArtifactForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ScanArtifactHandler ¶
type ScanArtifactHandler interface {
Handle(ScanArtifactParams, interface{}) middleware.Responder
}
ScanArtifactHandler interface for that can handle valid scan artifact params
type ScanArtifactHandlerFunc ¶
type ScanArtifactHandlerFunc func(ScanArtifactParams, interface{}) middleware.Responder
ScanArtifactHandlerFunc turns a function with the right signature into a scan artifact handler
func (ScanArtifactHandlerFunc) Handle ¶
func (fn ScanArtifactHandlerFunc) Handle(params ScanArtifactParams, principal interface{}) middleware.Responder
Handle executing the request and returning a response
type ScanArtifactInternalServerError ¶
type ScanArtifactInternalServerError struct { /*The ID of the corresponding request for the response */ XRequestID string `json:"X-Request-Id"` /* In: Body */ Payload *models.Errors `json:"body,omitempty"` }
ScanArtifactInternalServerError Internal server error
swagger:response scanArtifactInternalServerError
func NewScanArtifactInternalServerError ¶
func NewScanArtifactInternalServerError() *ScanArtifactInternalServerError
NewScanArtifactInternalServerError creates ScanArtifactInternalServerError with default headers values
func (*ScanArtifactInternalServerError) SetPayload ¶
func (o *ScanArtifactInternalServerError) SetPayload(payload *models.Errors)
SetPayload sets the payload to the scan artifact internal server error response
func (*ScanArtifactInternalServerError) SetXRequestID ¶
func (o *ScanArtifactInternalServerError) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the scan artifact internal server error response
func (*ScanArtifactInternalServerError) WithPayload ¶
func (o *ScanArtifactInternalServerError) WithPayload(payload *models.Errors) *ScanArtifactInternalServerError
WithPayload adds the payload to the scan artifact internal server error response
func (*ScanArtifactInternalServerError) WithXRequestID ¶
func (o *ScanArtifactInternalServerError) WithXRequestID(xRequestID string) *ScanArtifactInternalServerError
WithXRequestID adds the xRequestId to the scan artifact internal server error response
func (*ScanArtifactInternalServerError) WriteResponse ¶
func (o *ScanArtifactInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ScanArtifactNotFound ¶
type ScanArtifactNotFound struct { /*The ID of the corresponding request for the response */ XRequestID string `json:"X-Request-Id"` /* In: Body */ Payload *models.Errors `json:"body,omitempty"` }
ScanArtifactNotFound Not found
swagger:response scanArtifactNotFound
func NewScanArtifactNotFound ¶
func NewScanArtifactNotFound() *ScanArtifactNotFound
NewScanArtifactNotFound creates ScanArtifactNotFound with default headers values
func (*ScanArtifactNotFound) SetPayload ¶
func (o *ScanArtifactNotFound) SetPayload(payload *models.Errors)
SetPayload sets the payload to the scan artifact not found response
func (*ScanArtifactNotFound) SetXRequestID ¶
func (o *ScanArtifactNotFound) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the scan artifact not found response
func (*ScanArtifactNotFound) WithPayload ¶
func (o *ScanArtifactNotFound) WithPayload(payload *models.Errors) *ScanArtifactNotFound
WithPayload adds the payload to the scan artifact not found response
func (*ScanArtifactNotFound) WithXRequestID ¶
func (o *ScanArtifactNotFound) WithXRequestID(xRequestID string) *ScanArtifactNotFound
WithXRequestID adds the xRequestId to the scan artifact not found response
func (*ScanArtifactNotFound) WriteResponse ¶
func (o *ScanArtifactNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ScanArtifactParams ¶
type ScanArtifactParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*An unique ID for the request Min Length: 1 In: header */ XRequestID *string /*The name of the project Required: true In: path */ ProjectName string /*The reference of the artifact, can be digest or tag Required: true In: path */ Reference string /*The name of the repository. If it contains slash, encode it with URL encoding. e.g. a/b -> a%252Fb Required: true In: path */ RepositoryName string }
ScanArtifactParams contains all the bound params for the scan artifact operation typically these are obtained from a http.Request
swagger:parameters scanArtifact
func NewScanArtifactParams ¶
func NewScanArtifactParams() ScanArtifactParams
NewScanArtifactParams creates a new ScanArtifactParams object no default values defined in spec.
func (*ScanArtifactParams) BindRequest ¶
func (o *ScanArtifactParams) 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 NewScanArtifactParams() beforehand.
type ScanArtifactURL ¶
type ScanArtifactURL struct { ProjectName string Reference string RepositoryName string // contains filtered or unexported fields }
ScanArtifactURL generates an URL for the scan artifact operation
func (*ScanArtifactURL) Build ¶
func (o *ScanArtifactURL) Build() (*url.URL, error)
Build a url path and query string
func (*ScanArtifactURL) BuildFull ¶
func (o *ScanArtifactURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*ScanArtifactURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*ScanArtifactURL) SetBasePath ¶
func (o *ScanArtifactURL) 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 (*ScanArtifactURL) String ¶
func (o *ScanArtifactURL) String() string
String returns the string representation of the path with query string
func (*ScanArtifactURL) StringFull ¶
func (o *ScanArtifactURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*ScanArtifactURL) WithBasePath ¶
func (o *ScanArtifactURL) WithBasePath(bp string) *ScanArtifactURL
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
type ScanArtifactUnauthorized ¶
type ScanArtifactUnauthorized struct { string `json:"X-Request-Id"` Payload *models.Errors `json:"body,omitempty"` }XRequestID
ScanArtifactUnauthorized Unauthorized
swagger:response scanArtifactUnauthorized
func NewScanArtifactUnauthorized ¶
func NewScanArtifactUnauthorized() *ScanArtifactUnauthorized
NewScanArtifactUnauthorized creates ScanArtifactUnauthorized with default headers values
func (*ScanArtifactUnauthorized) SetPayload ¶
func (o *ScanArtifactUnauthorized) SetPayload(payload *models.Errors)
SetPayload sets the payload to the scan artifact unauthorized response
func (*ScanArtifactUnauthorized) SetXRequestID ¶
func (o *ScanArtifactUnauthorized) SetXRequestID(xRequestID string)
SetXRequestID sets the xRequestId to the scan artifact unauthorized response
func (*ScanArtifactUnauthorized) WithPayload ¶
func (o *ScanArtifactUnauthorized) WithPayload(payload *models.Errors) *ScanArtifactUnauthorized
WithPayload adds the payload to the scan artifact unauthorized response
func (*ScanArtifactUnauthorized) WithXRequestID ¶
func (o *ScanArtifactUnauthorized) WithXRequestID(xRequestID string) *ScanArtifactUnauthorized
WithXRequestID adds the xRequestId to the scan artifact unauthorized response
func (*ScanArtifactUnauthorized) WriteResponse ¶
func (o *ScanArtifactUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client