Documentation ¶
Index ¶
- type Client
- func (a *Client) GetReportLog(params *GetReportLogParams, authInfo runtime.ClientAuthInfoWriter) (*GetReportLogOK, error)
- func (a *Client) ScanArtifact(params *ScanArtifactParams, authInfo runtime.ClientAuthInfoWriter) (*ScanArtifactAccepted, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) StopScanArtifact(params *StopScanArtifactParams, authInfo runtime.ClientAuthInfoWriter) (*StopScanArtifactAccepted, error)
- type ClientService
- type GetReportLogForbidden
- type GetReportLogInternalServerError
- type GetReportLogNotFound
- type GetReportLogOK
- type GetReportLogParams
- func (o *GetReportLogParams) SetContext(ctx context.Context)
- func (o *GetReportLogParams) SetHTTPClient(client *http.Client)
- func (o *GetReportLogParams) SetProjectName(projectName string)
- func (o *GetReportLogParams) SetReference(reference string)
- func (o *GetReportLogParams) SetReportID(reportID string)
- func (o *GetReportLogParams) SetRepositoryName(repositoryName string)
- func (o *GetReportLogParams) SetTimeout(timeout time.Duration)
- func (o *GetReportLogParams) SetXRequestID(xRequestID *string)
- func (o *GetReportLogParams) WithContext(ctx context.Context) *GetReportLogParams
- func (o *GetReportLogParams) WithHTTPClient(client *http.Client) *GetReportLogParams
- func (o *GetReportLogParams) WithProjectName(projectName string) *GetReportLogParams
- func (o *GetReportLogParams) WithReference(reference string) *GetReportLogParams
- func (o *GetReportLogParams) WithReportID(reportID string) *GetReportLogParams
- func (o *GetReportLogParams) WithRepositoryName(repositoryName string) *GetReportLogParams
- func (o *GetReportLogParams) WithTimeout(timeout time.Duration) *GetReportLogParams
- func (o *GetReportLogParams) WithXRequestID(xRequestID *string) *GetReportLogParams
- func (o *GetReportLogParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetReportLogReader
- type GetReportLogUnauthorized
- type ScanArtifactAccepted
- type ScanArtifactBadRequest
- type ScanArtifactForbidden
- type ScanArtifactInternalServerError
- type ScanArtifactNotFound
- type ScanArtifactParams
- func (o *ScanArtifactParams) SetContext(ctx context.Context)
- func (o *ScanArtifactParams) SetHTTPClient(client *http.Client)
- func (o *ScanArtifactParams) SetProjectName(projectName string)
- func (o *ScanArtifactParams) SetReference(reference string)
- func (o *ScanArtifactParams) SetRepositoryName(repositoryName string)
- func (o *ScanArtifactParams) SetTimeout(timeout time.Duration)
- func (o *ScanArtifactParams) SetXRequestID(xRequestID *string)
- func (o *ScanArtifactParams) WithContext(ctx context.Context) *ScanArtifactParams
- func (o *ScanArtifactParams) WithHTTPClient(client *http.Client) *ScanArtifactParams
- func (o *ScanArtifactParams) WithProjectName(projectName string) *ScanArtifactParams
- func (o *ScanArtifactParams) WithReference(reference string) *ScanArtifactParams
- func (o *ScanArtifactParams) WithRepositoryName(repositoryName string) *ScanArtifactParams
- func (o *ScanArtifactParams) WithTimeout(timeout time.Duration) *ScanArtifactParams
- func (o *ScanArtifactParams) WithXRequestID(xRequestID *string) *ScanArtifactParams
- func (o *ScanArtifactParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ScanArtifactReader
- type ScanArtifactUnauthorized
- type StopScanArtifactAccepted
- type StopScanArtifactBadRequest
- type StopScanArtifactForbidden
- type StopScanArtifactInternalServerError
- type StopScanArtifactNotFound
- type StopScanArtifactParams
- func NewStopScanArtifactParams() *StopScanArtifactParams
- func NewStopScanArtifactParamsWithContext(ctx context.Context) *StopScanArtifactParams
- func NewStopScanArtifactParamsWithHTTPClient(client *http.Client) *StopScanArtifactParams
- func NewStopScanArtifactParamsWithTimeout(timeout time.Duration) *StopScanArtifactParams
- func (o *StopScanArtifactParams) SetContext(ctx context.Context)
- func (o *StopScanArtifactParams) SetHTTPClient(client *http.Client)
- func (o *StopScanArtifactParams) SetProjectName(projectName string)
- func (o *StopScanArtifactParams) SetReference(reference string)
- func (o *StopScanArtifactParams) SetRepositoryName(repositoryName string)
- func (o *StopScanArtifactParams) SetTimeout(timeout time.Duration)
- func (o *StopScanArtifactParams) SetXRequestID(xRequestID *string)
- func (o *StopScanArtifactParams) WithContext(ctx context.Context) *StopScanArtifactParams
- func (o *StopScanArtifactParams) WithHTTPClient(client *http.Client) *StopScanArtifactParams
- func (o *StopScanArtifactParams) WithProjectName(projectName string) *StopScanArtifactParams
- func (o *StopScanArtifactParams) WithReference(reference string) *StopScanArtifactParams
- func (o *StopScanArtifactParams) WithRepositoryName(repositoryName string) *StopScanArtifactParams
- func (o *StopScanArtifactParams) WithTimeout(timeout time.Duration) *StopScanArtifactParams
- func (o *StopScanArtifactParams) WithXRequestID(xRequestID *string) *StopScanArtifactParams
- func (o *StopScanArtifactParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type StopScanArtifactReader
- type StopScanArtifactUnauthorized
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for scan API
func (*Client) GetReportLog ¶
func (a *Client) GetReportLog(params *GetReportLogParams, authInfo runtime.ClientAuthInfoWriter) (*GetReportLogOK, error)
GetReportLog gets the log of the scan report
Get the log of the scan report
func (*Client) ScanArtifact ¶
func (a *Client) ScanArtifact(params *ScanArtifactParams, authInfo runtime.ClientAuthInfoWriter) (*ScanArtifactAccepted, error)
ScanArtifact scans the artifact
Scan the specified artifact
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) StopScanArtifact ¶
func (a *Client) StopScanArtifact(params *StopScanArtifactParams, authInfo runtime.ClientAuthInfoWriter) (*StopScanArtifactAccepted, error)
StopScanArtifact cancellings a scan job for a particular artifact
Cancelling a scan job for a particular artifact
type ClientService ¶
type ClientService interface { GetReportLog(params *GetReportLogParams, authInfo runtime.ClientAuthInfoWriter) (*GetReportLogOK, error) ScanArtifact(params *ScanArtifactParams, authInfo runtime.ClientAuthInfoWriter) (*ScanArtifactAccepted, error) StopScanArtifact(params *StopScanArtifactParams, authInfo runtime.ClientAuthInfoWriter) (*StopScanArtifactAccepted, error) SetTransport(transport runtime.ClientTransport) }
ClientService is the interface for Client methods
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService
New creates a new scan API client.
type GetReportLogForbidden ¶
type GetReportLogForbidden struct { /*The ID of the corresponding request for the response */ XRequestID string Payload *model.Errors }
GetReportLogForbidden handles this case with default header values.
Forbidden
func NewGetReportLogForbidden ¶
func NewGetReportLogForbidden() *GetReportLogForbidden
NewGetReportLogForbidden creates a GetReportLogForbidden with default headers values
func (*GetReportLogForbidden) Error ¶
func (o *GetReportLogForbidden) Error() string
func (*GetReportLogForbidden) GetPayload ¶
func (o *GetReportLogForbidden) GetPayload() *model.Errors
type GetReportLogInternalServerError ¶
type GetReportLogInternalServerError struct { /*The ID of the corresponding request for the response */ XRequestID string Payload *model.Errors }
GetReportLogInternalServerError handles this case with default header values.
Internal server error
func NewGetReportLogInternalServerError ¶
func NewGetReportLogInternalServerError() *GetReportLogInternalServerError
NewGetReportLogInternalServerError creates a GetReportLogInternalServerError with default headers values
func (*GetReportLogInternalServerError) Error ¶
func (o *GetReportLogInternalServerError) Error() string
func (*GetReportLogInternalServerError) GetPayload ¶
func (o *GetReportLogInternalServerError) GetPayload() *model.Errors
type GetReportLogNotFound ¶
type GetReportLogNotFound struct { /*The ID of the corresponding request for the response */ XRequestID string Payload *model.Errors }
GetReportLogNotFound handles this case with default header values.
Not found
func NewGetReportLogNotFound ¶
func NewGetReportLogNotFound() *GetReportLogNotFound
NewGetReportLogNotFound creates a GetReportLogNotFound with default headers values
func (*GetReportLogNotFound) Error ¶
func (o *GetReportLogNotFound) Error() string
func (*GetReportLogNotFound) GetPayload ¶
func (o *GetReportLogNotFound) GetPayload() *model.Errors
type GetReportLogOK ¶
type GetReportLogOK struct {
Payload string
}
GetReportLogOK handles this case with default header values.
Successfully get scan log file
func NewGetReportLogOK ¶
func NewGetReportLogOK() *GetReportLogOK
NewGetReportLogOK creates a GetReportLogOK with default headers values
func (*GetReportLogOK) Error ¶
func (o *GetReportLogOK) Error() string
func (*GetReportLogOK) GetPayload ¶
func (o *GetReportLogOK) GetPayload() string
type GetReportLogParams ¶
type GetReportLogParams struct { /*XRequestID An unique ID for the request */ XRequestID *string /*ProjectName The name of the project */ ProjectName string /*Reference The reference of the artifact, can be digest or tag */ Reference string /*ReportID The report id to get the log */ ReportID string /*RepositoryName The name of the repository. If it contains slash, encode it with URL encoding. e.g. a/b -> a%252Fb */ RepositoryName string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetReportLogParams contains all the parameters to send to the API endpoint for the get report log operation typically these are written to a http.Request
func NewGetReportLogParams ¶
func NewGetReportLogParams() *GetReportLogParams
NewGetReportLogParams creates a new GetReportLogParams object with the default values initialized.
func NewGetReportLogParamsWithContext ¶
func NewGetReportLogParamsWithContext(ctx context.Context) *GetReportLogParams
NewGetReportLogParamsWithContext creates a new GetReportLogParams object with the default values initialized, and the ability to set a context for a request
func NewGetReportLogParamsWithHTTPClient ¶
func NewGetReportLogParamsWithHTTPClient(client *http.Client) *GetReportLogParams
NewGetReportLogParamsWithHTTPClient creates a new GetReportLogParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetReportLogParamsWithTimeout ¶
func NewGetReportLogParamsWithTimeout(timeout time.Duration) *GetReportLogParams
NewGetReportLogParamsWithTimeout creates a new GetReportLogParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetReportLogParams) SetContext ¶
func (o *GetReportLogParams) SetContext(ctx context.Context)
SetContext adds the context to the get report log params
func (*GetReportLogParams) SetHTTPClient ¶
func (o *GetReportLogParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get report log params
func (*GetReportLogParams) SetProjectName ¶
func (o *GetReportLogParams) SetProjectName(projectName string)
SetProjectName adds the projectName to the get report log params
func (*GetReportLogParams) SetReference ¶
func (o *GetReportLogParams) SetReference(reference string)
SetReference adds the reference to the get report log params
func (*GetReportLogParams) SetReportID ¶
func (o *GetReportLogParams) SetReportID(reportID string)
SetReportID adds the reportId to the get report log params
func (*GetReportLogParams) SetRepositoryName ¶
func (o *GetReportLogParams) SetRepositoryName(repositoryName string)
SetRepositoryName adds the repositoryName to the get report log params
func (*GetReportLogParams) SetTimeout ¶
func (o *GetReportLogParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get report log params
func (*GetReportLogParams) SetXRequestID ¶
func (o *GetReportLogParams) SetXRequestID(xRequestID *string)
SetXRequestID adds the xRequestId to the get report log params
func (*GetReportLogParams) WithContext ¶
func (o *GetReportLogParams) WithContext(ctx context.Context) *GetReportLogParams
WithContext adds the context to the get report log params
func (*GetReportLogParams) WithHTTPClient ¶
func (o *GetReportLogParams) WithHTTPClient(client *http.Client) *GetReportLogParams
WithHTTPClient adds the HTTPClient to the get report log params
func (*GetReportLogParams) WithProjectName ¶
func (o *GetReportLogParams) WithProjectName(projectName string) *GetReportLogParams
WithProjectName adds the projectName to the get report log params
func (*GetReportLogParams) WithReference ¶
func (o *GetReportLogParams) WithReference(reference string) *GetReportLogParams
WithReference adds the reference to the get report log params
func (*GetReportLogParams) WithReportID ¶
func (o *GetReportLogParams) WithReportID(reportID string) *GetReportLogParams
WithReportID adds the reportID to the get report log params
func (*GetReportLogParams) WithRepositoryName ¶
func (o *GetReportLogParams) WithRepositoryName(repositoryName string) *GetReportLogParams
WithRepositoryName adds the repositoryName to the get report log params
func (*GetReportLogParams) WithTimeout ¶
func (o *GetReportLogParams) WithTimeout(timeout time.Duration) *GetReportLogParams
WithTimeout adds the timeout to the get report log params
func (*GetReportLogParams) WithXRequestID ¶
func (o *GetReportLogParams) WithXRequestID(xRequestID *string) *GetReportLogParams
WithXRequestID adds the xRequestID to the get report log params
func (*GetReportLogParams) WriteToRequest ¶
func (o *GetReportLogParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetReportLogReader ¶
type GetReportLogReader struct {
// contains filtered or unexported fields
}
GetReportLogReader is a Reader for the GetReportLog structure.
func (*GetReportLogReader) ReadResponse ¶
func (o *GetReportLogReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetReportLogUnauthorized ¶
type GetReportLogUnauthorized struct { string }XRequestID
GetReportLogUnauthorized handles this case with default header values.
Unauthorized
func NewGetReportLogUnauthorized ¶
func NewGetReportLogUnauthorized() *GetReportLogUnauthorized
NewGetReportLogUnauthorized creates a GetReportLogUnauthorized with default headers values
func (*GetReportLogUnauthorized) Error ¶
func (o *GetReportLogUnauthorized) Error() string
func (*GetReportLogUnauthorized) GetPayload ¶
func (o *GetReportLogUnauthorized) GetPayload() *model.Errors
type ScanArtifactAccepted ¶
type ScanArtifactAccepted struct { /*The ID of the corresponding request for the response */ XRequestID string }
ScanArtifactAccepted handles this case with default header values.
Accepted
func NewScanArtifactAccepted ¶
func NewScanArtifactAccepted() *ScanArtifactAccepted
NewScanArtifactAccepted creates a ScanArtifactAccepted with default headers values
func (*ScanArtifactAccepted) Error ¶
func (o *ScanArtifactAccepted) Error() string
type ScanArtifactBadRequest ¶
type ScanArtifactBadRequest struct { /*The ID of the corresponding request for the response */ XRequestID string Payload *model.Errors }
ScanArtifactBadRequest handles this case with default header values.
Bad request
func NewScanArtifactBadRequest ¶
func NewScanArtifactBadRequest() *ScanArtifactBadRequest
NewScanArtifactBadRequest creates a ScanArtifactBadRequest with default headers values
func (*ScanArtifactBadRequest) Error ¶
func (o *ScanArtifactBadRequest) Error() string
func (*ScanArtifactBadRequest) GetPayload ¶
func (o *ScanArtifactBadRequest) GetPayload() *model.Errors
type ScanArtifactForbidden ¶
type ScanArtifactForbidden struct { /*The ID of the corresponding request for the response */ XRequestID string Payload *model.Errors }
ScanArtifactForbidden handles this case with default header values.
Forbidden
func NewScanArtifactForbidden ¶
func NewScanArtifactForbidden() *ScanArtifactForbidden
NewScanArtifactForbidden creates a ScanArtifactForbidden with default headers values
func (*ScanArtifactForbidden) Error ¶
func (o *ScanArtifactForbidden) Error() string
func (*ScanArtifactForbidden) GetPayload ¶
func (o *ScanArtifactForbidden) GetPayload() *model.Errors
type ScanArtifactInternalServerError ¶
type ScanArtifactInternalServerError struct { /*The ID of the corresponding request for the response */ XRequestID string Payload *model.Errors }
ScanArtifactInternalServerError handles this case with default header values.
Internal server error
func NewScanArtifactInternalServerError ¶
func NewScanArtifactInternalServerError() *ScanArtifactInternalServerError
NewScanArtifactInternalServerError creates a ScanArtifactInternalServerError with default headers values
func (*ScanArtifactInternalServerError) Error ¶
func (o *ScanArtifactInternalServerError) Error() string
func (*ScanArtifactInternalServerError) GetPayload ¶
func (o *ScanArtifactInternalServerError) GetPayload() *model.Errors
type ScanArtifactNotFound ¶
type ScanArtifactNotFound struct { /*The ID of the corresponding request for the response */ XRequestID string Payload *model.Errors }
ScanArtifactNotFound handles this case with default header values.
Not found
func NewScanArtifactNotFound ¶
func NewScanArtifactNotFound() *ScanArtifactNotFound
NewScanArtifactNotFound creates a ScanArtifactNotFound with default headers values
func (*ScanArtifactNotFound) Error ¶
func (o *ScanArtifactNotFound) Error() string
func (*ScanArtifactNotFound) GetPayload ¶
func (o *ScanArtifactNotFound) GetPayload() *model.Errors
type ScanArtifactParams ¶
type ScanArtifactParams struct { /*XRequestID An unique ID for the request */ XRequestID *string /*ProjectName The name of the project */ ProjectName string /*Reference The reference of the artifact, can be digest or tag */ Reference string /*RepositoryName The name of the repository. If it contains slash, encode it with URL encoding. e.g. a/b -> a%252Fb */ RepositoryName string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ScanArtifactParams contains all the parameters to send to the API endpoint for the scan artifact operation typically these are written to a http.Request
func NewScanArtifactParams ¶
func NewScanArtifactParams() *ScanArtifactParams
NewScanArtifactParams creates a new ScanArtifactParams object with the default values initialized.
func NewScanArtifactParamsWithContext ¶
func NewScanArtifactParamsWithContext(ctx context.Context) *ScanArtifactParams
NewScanArtifactParamsWithContext creates a new ScanArtifactParams object with the default values initialized, and the ability to set a context for a request
func NewScanArtifactParamsWithHTTPClient ¶
func NewScanArtifactParamsWithHTTPClient(client *http.Client) *ScanArtifactParams
NewScanArtifactParamsWithHTTPClient creates a new ScanArtifactParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewScanArtifactParamsWithTimeout ¶
func NewScanArtifactParamsWithTimeout(timeout time.Duration) *ScanArtifactParams
NewScanArtifactParamsWithTimeout creates a new ScanArtifactParams object with the default values initialized, and the ability to set a timeout on a request
func (*ScanArtifactParams) SetContext ¶
func (o *ScanArtifactParams) SetContext(ctx context.Context)
SetContext adds the context to the scan artifact params
func (*ScanArtifactParams) SetHTTPClient ¶
func (o *ScanArtifactParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the scan artifact params
func (*ScanArtifactParams) SetProjectName ¶
func (o *ScanArtifactParams) SetProjectName(projectName string)
SetProjectName adds the projectName to the scan artifact params
func (*ScanArtifactParams) SetReference ¶
func (o *ScanArtifactParams) SetReference(reference string)
SetReference adds the reference to the scan artifact params
func (*ScanArtifactParams) SetRepositoryName ¶
func (o *ScanArtifactParams) SetRepositoryName(repositoryName string)
SetRepositoryName adds the repositoryName to the scan artifact params
func (*ScanArtifactParams) SetTimeout ¶
func (o *ScanArtifactParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the scan artifact params
func (*ScanArtifactParams) SetXRequestID ¶
func (o *ScanArtifactParams) SetXRequestID(xRequestID *string)
SetXRequestID adds the xRequestId to the scan artifact params
func (*ScanArtifactParams) WithContext ¶
func (o *ScanArtifactParams) WithContext(ctx context.Context) *ScanArtifactParams
WithContext adds the context to the scan artifact params
func (*ScanArtifactParams) WithHTTPClient ¶
func (o *ScanArtifactParams) WithHTTPClient(client *http.Client) *ScanArtifactParams
WithHTTPClient adds the HTTPClient to the scan artifact params
func (*ScanArtifactParams) WithProjectName ¶
func (o *ScanArtifactParams) WithProjectName(projectName string) *ScanArtifactParams
WithProjectName adds the projectName to the scan artifact params
func (*ScanArtifactParams) WithReference ¶
func (o *ScanArtifactParams) WithReference(reference string) *ScanArtifactParams
WithReference adds the reference to the scan artifact params
func (*ScanArtifactParams) WithRepositoryName ¶
func (o *ScanArtifactParams) WithRepositoryName(repositoryName string) *ScanArtifactParams
WithRepositoryName adds the repositoryName to the scan artifact params
func (*ScanArtifactParams) WithTimeout ¶
func (o *ScanArtifactParams) WithTimeout(timeout time.Duration) *ScanArtifactParams
WithTimeout adds the timeout to the scan artifact params
func (*ScanArtifactParams) WithXRequestID ¶
func (o *ScanArtifactParams) WithXRequestID(xRequestID *string) *ScanArtifactParams
WithXRequestID adds the xRequestID to the scan artifact params
func (*ScanArtifactParams) WriteToRequest ¶
func (o *ScanArtifactParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ScanArtifactReader ¶
type ScanArtifactReader struct {
// contains filtered or unexported fields
}
ScanArtifactReader is a Reader for the ScanArtifact structure.
func (*ScanArtifactReader) ReadResponse ¶
func (o *ScanArtifactReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ScanArtifactUnauthorized ¶
type ScanArtifactUnauthorized struct { string }XRequestID
ScanArtifactUnauthorized handles this case with default header values.
Unauthorized
func NewScanArtifactUnauthorized ¶
func NewScanArtifactUnauthorized() *ScanArtifactUnauthorized
NewScanArtifactUnauthorized creates a ScanArtifactUnauthorized with default headers values
func (*ScanArtifactUnauthorized) Error ¶
func (o *ScanArtifactUnauthorized) Error() string
func (*ScanArtifactUnauthorized) GetPayload ¶
func (o *ScanArtifactUnauthorized) GetPayload() *model.Errors
type StopScanArtifactAccepted ¶
type StopScanArtifactAccepted struct { /*The ID of the corresponding request for the response */ XRequestID string }
StopScanArtifactAccepted handles this case with default header values.
Accepted
func NewStopScanArtifactAccepted ¶
func NewStopScanArtifactAccepted() *StopScanArtifactAccepted
NewStopScanArtifactAccepted creates a StopScanArtifactAccepted with default headers values
func (*StopScanArtifactAccepted) Error ¶
func (o *StopScanArtifactAccepted) Error() string
type StopScanArtifactBadRequest ¶
type StopScanArtifactBadRequest struct { /*The ID of the corresponding request for the response */ XRequestID string Payload *model.Errors }
StopScanArtifactBadRequest handles this case with default header values.
Bad request
func NewStopScanArtifactBadRequest ¶
func NewStopScanArtifactBadRequest() *StopScanArtifactBadRequest
NewStopScanArtifactBadRequest creates a StopScanArtifactBadRequest with default headers values
func (*StopScanArtifactBadRequest) Error ¶
func (o *StopScanArtifactBadRequest) Error() string
func (*StopScanArtifactBadRequest) GetPayload ¶
func (o *StopScanArtifactBadRequest) GetPayload() *model.Errors
type StopScanArtifactForbidden ¶
type StopScanArtifactForbidden struct { /*The ID of the corresponding request for the response */ XRequestID string Payload *model.Errors }
StopScanArtifactForbidden handles this case with default header values.
Forbidden
func NewStopScanArtifactForbidden ¶
func NewStopScanArtifactForbidden() *StopScanArtifactForbidden
NewStopScanArtifactForbidden creates a StopScanArtifactForbidden with default headers values
func (*StopScanArtifactForbidden) Error ¶
func (o *StopScanArtifactForbidden) Error() string
func (*StopScanArtifactForbidden) GetPayload ¶
func (o *StopScanArtifactForbidden) GetPayload() *model.Errors
type StopScanArtifactInternalServerError ¶
type StopScanArtifactInternalServerError struct { /*The ID of the corresponding request for the response */ XRequestID string Payload *model.Errors }
StopScanArtifactInternalServerError handles this case with default header values.
Internal server error
func NewStopScanArtifactInternalServerError ¶
func NewStopScanArtifactInternalServerError() *StopScanArtifactInternalServerError
NewStopScanArtifactInternalServerError creates a StopScanArtifactInternalServerError with default headers values
func (*StopScanArtifactInternalServerError) Error ¶
func (o *StopScanArtifactInternalServerError) Error() string
func (*StopScanArtifactInternalServerError) GetPayload ¶
func (o *StopScanArtifactInternalServerError) GetPayload() *model.Errors
type StopScanArtifactNotFound ¶
type StopScanArtifactNotFound struct { /*The ID of the corresponding request for the response */ XRequestID string Payload *model.Errors }
StopScanArtifactNotFound handles this case with default header values.
Not found
func NewStopScanArtifactNotFound ¶
func NewStopScanArtifactNotFound() *StopScanArtifactNotFound
NewStopScanArtifactNotFound creates a StopScanArtifactNotFound with default headers values
func (*StopScanArtifactNotFound) Error ¶
func (o *StopScanArtifactNotFound) Error() string
func (*StopScanArtifactNotFound) GetPayload ¶
func (o *StopScanArtifactNotFound) GetPayload() *model.Errors
type StopScanArtifactParams ¶
type StopScanArtifactParams struct { /*XRequestID An unique ID for the request */ XRequestID *string /*ProjectName The name of the project */ ProjectName string /*Reference The reference of the artifact, can be digest or tag */ Reference string /*RepositoryName The name of the repository. If it contains slash, encode it with URL encoding. e.g. a/b -> a%252Fb */ RepositoryName string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
StopScanArtifactParams contains all the parameters to send to the API endpoint for the stop scan artifact operation typically these are written to a http.Request
func NewStopScanArtifactParams ¶
func NewStopScanArtifactParams() *StopScanArtifactParams
NewStopScanArtifactParams creates a new StopScanArtifactParams object with the default values initialized.
func NewStopScanArtifactParamsWithContext ¶
func NewStopScanArtifactParamsWithContext(ctx context.Context) *StopScanArtifactParams
NewStopScanArtifactParamsWithContext creates a new StopScanArtifactParams object with the default values initialized, and the ability to set a context for a request
func NewStopScanArtifactParamsWithHTTPClient ¶
func NewStopScanArtifactParamsWithHTTPClient(client *http.Client) *StopScanArtifactParams
NewStopScanArtifactParamsWithHTTPClient creates a new StopScanArtifactParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewStopScanArtifactParamsWithTimeout ¶
func NewStopScanArtifactParamsWithTimeout(timeout time.Duration) *StopScanArtifactParams
NewStopScanArtifactParamsWithTimeout creates a new StopScanArtifactParams object with the default values initialized, and the ability to set a timeout on a request
func (*StopScanArtifactParams) SetContext ¶
func (o *StopScanArtifactParams) SetContext(ctx context.Context)
SetContext adds the context to the stop scan artifact params
func (*StopScanArtifactParams) SetHTTPClient ¶
func (o *StopScanArtifactParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the stop scan artifact params
func (*StopScanArtifactParams) SetProjectName ¶
func (o *StopScanArtifactParams) SetProjectName(projectName string)
SetProjectName adds the projectName to the stop scan artifact params
func (*StopScanArtifactParams) SetReference ¶
func (o *StopScanArtifactParams) SetReference(reference string)
SetReference adds the reference to the stop scan artifact params
func (*StopScanArtifactParams) SetRepositoryName ¶
func (o *StopScanArtifactParams) SetRepositoryName(repositoryName string)
SetRepositoryName adds the repositoryName to the stop scan artifact params
func (*StopScanArtifactParams) SetTimeout ¶
func (o *StopScanArtifactParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the stop scan artifact params
func (*StopScanArtifactParams) SetXRequestID ¶
func (o *StopScanArtifactParams) SetXRequestID(xRequestID *string)
SetXRequestID adds the xRequestId to the stop scan artifact params
func (*StopScanArtifactParams) WithContext ¶
func (o *StopScanArtifactParams) WithContext(ctx context.Context) *StopScanArtifactParams
WithContext adds the context to the stop scan artifact params
func (*StopScanArtifactParams) WithHTTPClient ¶
func (o *StopScanArtifactParams) WithHTTPClient(client *http.Client) *StopScanArtifactParams
WithHTTPClient adds the HTTPClient to the stop scan artifact params
func (*StopScanArtifactParams) WithProjectName ¶
func (o *StopScanArtifactParams) WithProjectName(projectName string) *StopScanArtifactParams
WithProjectName adds the projectName to the stop scan artifact params
func (*StopScanArtifactParams) WithReference ¶
func (o *StopScanArtifactParams) WithReference(reference string) *StopScanArtifactParams
WithReference adds the reference to the stop scan artifact params
func (*StopScanArtifactParams) WithRepositoryName ¶
func (o *StopScanArtifactParams) WithRepositoryName(repositoryName string) *StopScanArtifactParams
WithRepositoryName adds the repositoryName to the stop scan artifact params
func (*StopScanArtifactParams) WithTimeout ¶
func (o *StopScanArtifactParams) WithTimeout(timeout time.Duration) *StopScanArtifactParams
WithTimeout adds the timeout to the stop scan artifact params
func (*StopScanArtifactParams) WithXRequestID ¶
func (o *StopScanArtifactParams) WithXRequestID(xRequestID *string) *StopScanArtifactParams
WithXRequestID adds the xRequestID to the stop scan artifact params
func (*StopScanArtifactParams) WriteToRequest ¶
func (o *StopScanArtifactParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type StopScanArtifactReader ¶
type StopScanArtifactReader struct {
// contains filtered or unexported fields
}
StopScanArtifactReader is a Reader for the StopScanArtifact structure.
func (*StopScanArtifactReader) ReadResponse ¶
func (o *StopScanArtifactReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type StopScanArtifactUnauthorized ¶
type StopScanArtifactUnauthorized struct { string }XRequestID
StopScanArtifactUnauthorized handles this case with default header values.
Unauthorized
func NewStopScanArtifactUnauthorized ¶
func NewStopScanArtifactUnauthorized() *StopScanArtifactUnauthorized
NewStopScanArtifactUnauthorized creates a StopScanArtifactUnauthorized with default headers values
func (*StopScanArtifactUnauthorized) Error ¶
func (o *StopScanArtifactUnauthorized) Error() string
func (*StopScanArtifactUnauthorized) GetPayload ¶
func (o *StopScanArtifactUnauthorized) GetPayload() *model.Errors