scan

package
v5.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 16, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

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 (*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

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 {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

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 (*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

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 {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

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 (*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 (*StopScanArtifactInternalServerError) GetPayload

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

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

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

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 {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

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 (*StopScanArtifactUnauthorized) GetPayload

func (o *StopScanArtifactUnauthorized) GetPayload() *model.Errors

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL