scan

package
v0.29.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API interface {
	/*
	   GetReportLog gets the log of the scan report

	   Get the log of the scan report*/
	GetReportLog(ctx context.Context, params *GetReportLogParams) (*GetReportLogOK, error)
	/*
	   ScanArtifact scans the artifact

	   Scan the specified artifact*/
	ScanArtifact(ctx context.Context, params *ScanArtifactParams) (*ScanArtifactAccepted, error)
	/*
	   StopScanArtifact cancellings a scan job for a particular artifact

	   Cancelling a scan job for a particular artifact*/
	StopScanArtifact(ctx context.Context, params *StopScanArtifactParams) (*StopScanArtifactAccepted, error)
}

API is the interface of the scan client

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client for scan API

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry, authInfo runtime.ClientAuthInfoWriter) *Client

New creates a new scan API client.

func (*Client) GetReportLog

func (a *Client) GetReportLog(ctx context.Context, params *GetReportLogParams) (*GetReportLogOK, error)

GetReportLog gets the log of the scan report

Get the log of the scan report

func (*Client) ScanArtifact

func (a *Client) ScanArtifact(ctx context.Context, params *ScanArtifactParams) (*ScanArtifactAccepted, error)

ScanArtifact scans the artifact

Scan the specified artifact

func (*Client) StopScanArtifact

func (a *Client) StopScanArtifact(ctx context.Context, params *StopScanArtifactParams) (*StopScanArtifactAccepted, error)

StopScanArtifact cancellings a scan job for a particular artifact

Cancelling a scan job for a particular artifact

type GetReportLogForbidden

type GetReportLogForbidden struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

GetReportLogForbidden describes a response with status code 403, 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() *models.Errors

func (*GetReportLogForbidden) IsClientError

func (o *GetReportLogForbidden) IsClientError() bool

IsClientError returns true when this get report log forbidden response has a 4xx status code

func (*GetReportLogForbidden) IsCode

func (o *GetReportLogForbidden) IsCode(code int) bool

IsCode returns true when this get report log forbidden response a status code equal to that given

func (*GetReportLogForbidden) IsRedirect

func (o *GetReportLogForbidden) IsRedirect() bool

IsRedirect returns true when this get report log forbidden response has a 3xx status code

func (*GetReportLogForbidden) IsServerError

func (o *GetReportLogForbidden) IsServerError() bool

IsServerError returns true when this get report log forbidden response has a 5xx status code

func (*GetReportLogForbidden) IsSuccess

func (o *GetReportLogForbidden) IsSuccess() bool

IsSuccess returns true when this get report log forbidden response has a 2xx status code

func (*GetReportLogForbidden) String

func (o *GetReportLogForbidden) String() string

type GetReportLogInternalServerError

type GetReportLogInternalServerError struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

GetReportLogInternalServerError describes a response with status code 500, 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 (*GetReportLogInternalServerError) IsClientError

func (o *GetReportLogInternalServerError) IsClientError() bool

IsClientError returns true when this get report log internal server error response has a 4xx status code

func (*GetReportLogInternalServerError) IsCode

func (o *GetReportLogInternalServerError) IsCode(code int) bool

IsCode returns true when this get report log internal server error response a status code equal to that given

func (*GetReportLogInternalServerError) IsRedirect

func (o *GetReportLogInternalServerError) IsRedirect() bool

IsRedirect returns true when this get report log internal server error response has a 3xx status code

func (*GetReportLogInternalServerError) IsServerError

func (o *GetReportLogInternalServerError) IsServerError() bool

IsServerError returns true when this get report log internal server error response has a 5xx status code

func (*GetReportLogInternalServerError) IsSuccess

func (o *GetReportLogInternalServerError) IsSuccess() bool

IsSuccess returns true when this get report log internal server error response has a 2xx status code

func (*GetReportLogInternalServerError) String

type GetReportLogNotFound

type GetReportLogNotFound struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

GetReportLogNotFound describes a response with status code 404, 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() *models.Errors

func (*GetReportLogNotFound) IsClientError

func (o *GetReportLogNotFound) IsClientError() bool

IsClientError returns true when this get report log not found response has a 4xx status code

func (*GetReportLogNotFound) IsCode

func (o *GetReportLogNotFound) IsCode(code int) bool

IsCode returns true when this get report log not found response a status code equal to that given

func (*GetReportLogNotFound) IsRedirect

func (o *GetReportLogNotFound) IsRedirect() bool

IsRedirect returns true when this get report log not found response has a 3xx status code

func (*GetReportLogNotFound) IsServerError

func (o *GetReportLogNotFound) IsServerError() bool

IsServerError returns true when this get report log not found response has a 5xx status code

func (*GetReportLogNotFound) IsSuccess

func (o *GetReportLogNotFound) IsSuccess() bool

IsSuccess returns true when this get report log not found response has a 2xx status code

func (*GetReportLogNotFound) String

func (o *GetReportLogNotFound) String() string

type GetReportLogOK

type GetReportLogOK struct {
	Payload string
}

GetReportLogOK describes a response with status code 200, 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

func (*GetReportLogOK) IsClientError

func (o *GetReportLogOK) IsClientError() bool

IsClientError returns true when this get report log o k response has a 4xx status code

func (*GetReportLogOK) IsCode

func (o *GetReportLogOK) IsCode(code int) bool

IsCode returns true when this get report log o k response a status code equal to that given

func (*GetReportLogOK) IsRedirect

func (o *GetReportLogOK) IsRedirect() bool

IsRedirect returns true when this get report log o k response has a 3xx status code

func (*GetReportLogOK) IsServerError

func (o *GetReportLogOK) IsServerError() bool

IsServerError returns true when this get report log o k response has a 5xx status code

func (*GetReportLogOK) IsSuccess

func (o *GetReportLogOK) IsSuccess() bool

IsSuccess returns true when this get report log o k response has a 2xx status code

func (*GetReportLogOK) String

func (o *GetReportLogOK) String() 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 timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetReportLogParamsWithContext

func NewGetReportLogParamsWithContext(ctx context.Context) *GetReportLogParams

NewGetReportLogParamsWithContext creates a new GetReportLogParams object with 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 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 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) SetDefaults

func (o *GetReportLogParams) SetDefaults()

SetDefaults hydrates default values in the get report log params (not the query body).

All values with no default are reset to their zero value.

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) WithDefaults

func (o *GetReportLogParams) WithDefaults() *GetReportLogParams

WithDefaults hydrates default values in the get report log params (not the query body).

All values with no default are reset to their zero value.

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 *models.Errors
}

GetReportLogUnauthorized describes a response with status code 401, 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() *models.Errors

func (*GetReportLogUnauthorized) IsClientError

func (o *GetReportLogUnauthorized) IsClientError() bool

IsClientError returns true when this get report log unauthorized response has a 4xx status code

func (*GetReportLogUnauthorized) IsCode

func (o *GetReportLogUnauthorized) IsCode(code int) bool

IsCode returns true when this get report log unauthorized response a status code equal to that given

func (*GetReportLogUnauthorized) IsRedirect

func (o *GetReportLogUnauthorized) IsRedirect() bool

IsRedirect returns true when this get report log unauthorized response has a 3xx status code

func (*GetReportLogUnauthorized) IsServerError

func (o *GetReportLogUnauthorized) IsServerError() bool

IsServerError returns true when this get report log unauthorized response has a 5xx status code

func (*GetReportLogUnauthorized) IsSuccess

func (o *GetReportLogUnauthorized) IsSuccess() bool

IsSuccess returns true when this get report log unauthorized response has a 2xx status code

func (*GetReportLogUnauthorized) String

func (o *GetReportLogUnauthorized) String() string

type ScanArtifactAccepted

type ScanArtifactAccepted struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string
}

ScanArtifactAccepted describes a response with status code 202, 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

func (*ScanArtifactAccepted) IsClientError

func (o *ScanArtifactAccepted) IsClientError() bool

IsClientError returns true when this scan artifact accepted response has a 4xx status code

func (*ScanArtifactAccepted) IsCode

func (o *ScanArtifactAccepted) IsCode(code int) bool

IsCode returns true when this scan artifact accepted response a status code equal to that given

func (*ScanArtifactAccepted) IsRedirect

func (o *ScanArtifactAccepted) IsRedirect() bool

IsRedirect returns true when this scan artifact accepted response has a 3xx status code

func (*ScanArtifactAccepted) IsServerError

func (o *ScanArtifactAccepted) IsServerError() bool

IsServerError returns true when this scan artifact accepted response has a 5xx status code

func (*ScanArtifactAccepted) IsSuccess

func (o *ScanArtifactAccepted) IsSuccess() bool

IsSuccess returns true when this scan artifact accepted response has a 2xx status code

func (*ScanArtifactAccepted) String

func (o *ScanArtifactAccepted) String() string

type ScanArtifactBadRequest

type ScanArtifactBadRequest struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

ScanArtifactBadRequest describes a response with status code 400, 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() *models.Errors

func (*ScanArtifactBadRequest) IsClientError

func (o *ScanArtifactBadRequest) IsClientError() bool

IsClientError returns true when this scan artifact bad request response has a 4xx status code

func (*ScanArtifactBadRequest) IsCode

func (o *ScanArtifactBadRequest) IsCode(code int) bool

IsCode returns true when this scan artifact bad request response a status code equal to that given

func (*ScanArtifactBadRequest) IsRedirect

func (o *ScanArtifactBadRequest) IsRedirect() bool

IsRedirect returns true when this scan artifact bad request response has a 3xx status code

func (*ScanArtifactBadRequest) IsServerError

func (o *ScanArtifactBadRequest) IsServerError() bool

IsServerError returns true when this scan artifact bad request response has a 5xx status code

func (*ScanArtifactBadRequest) IsSuccess

func (o *ScanArtifactBadRequest) IsSuccess() bool

IsSuccess returns true when this scan artifact bad request response has a 2xx status code

func (*ScanArtifactBadRequest) String

func (o *ScanArtifactBadRequest) String() string

type ScanArtifactForbidden

type ScanArtifactForbidden struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

ScanArtifactForbidden describes a response with status code 403, 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() *models.Errors

func (*ScanArtifactForbidden) IsClientError

func (o *ScanArtifactForbidden) IsClientError() bool

IsClientError returns true when this scan artifact forbidden response has a 4xx status code

func (*ScanArtifactForbidden) IsCode

func (o *ScanArtifactForbidden) IsCode(code int) bool

IsCode returns true when this scan artifact forbidden response a status code equal to that given

func (*ScanArtifactForbidden) IsRedirect

func (o *ScanArtifactForbidden) IsRedirect() bool

IsRedirect returns true when this scan artifact forbidden response has a 3xx status code

func (*ScanArtifactForbidden) IsServerError

func (o *ScanArtifactForbidden) IsServerError() bool

IsServerError returns true when this scan artifact forbidden response has a 5xx status code

func (*ScanArtifactForbidden) IsSuccess

func (o *ScanArtifactForbidden) IsSuccess() bool

IsSuccess returns true when this scan artifact forbidden response has a 2xx status code

func (*ScanArtifactForbidden) String

func (o *ScanArtifactForbidden) String() string

type ScanArtifactInternalServerError

type ScanArtifactInternalServerError struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

ScanArtifactInternalServerError describes a response with status code 500, 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 (*ScanArtifactInternalServerError) IsClientError

func (o *ScanArtifactInternalServerError) IsClientError() bool

IsClientError returns true when this scan artifact internal server error response has a 4xx status code

func (*ScanArtifactInternalServerError) IsCode

func (o *ScanArtifactInternalServerError) IsCode(code int) bool

IsCode returns true when this scan artifact internal server error response a status code equal to that given

func (*ScanArtifactInternalServerError) IsRedirect

func (o *ScanArtifactInternalServerError) IsRedirect() bool

IsRedirect returns true when this scan artifact internal server error response has a 3xx status code

func (*ScanArtifactInternalServerError) IsServerError

func (o *ScanArtifactInternalServerError) IsServerError() bool

IsServerError returns true when this scan artifact internal server error response has a 5xx status code

func (*ScanArtifactInternalServerError) IsSuccess

func (o *ScanArtifactInternalServerError) IsSuccess() bool

IsSuccess returns true when this scan artifact internal server error response has a 2xx status code

func (*ScanArtifactInternalServerError) String

type ScanArtifactNotFound

type ScanArtifactNotFound struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

ScanArtifactNotFound describes a response with status code 404, 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() *models.Errors

func (*ScanArtifactNotFound) IsClientError

func (o *ScanArtifactNotFound) IsClientError() bool

IsClientError returns true when this scan artifact not found response has a 4xx status code

func (*ScanArtifactNotFound) IsCode

func (o *ScanArtifactNotFound) IsCode(code int) bool

IsCode returns true when this scan artifact not found response a status code equal to that given

func (*ScanArtifactNotFound) IsRedirect

func (o *ScanArtifactNotFound) IsRedirect() bool

IsRedirect returns true when this scan artifact not found response has a 3xx status code

func (*ScanArtifactNotFound) IsServerError

func (o *ScanArtifactNotFound) IsServerError() bool

IsServerError returns true when this scan artifact not found response has a 5xx status code

func (*ScanArtifactNotFound) IsSuccess

func (o *ScanArtifactNotFound) IsSuccess() bool

IsSuccess returns true when this scan artifact not found response has a 2xx status code

func (*ScanArtifactNotFound) String

func (o *ScanArtifactNotFound) String() string

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 timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewScanArtifactParamsWithContext

func NewScanArtifactParamsWithContext(ctx context.Context) *ScanArtifactParams

NewScanArtifactParamsWithContext creates a new ScanArtifactParams object with 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 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 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) SetDefaults

func (o *ScanArtifactParams) SetDefaults()

SetDefaults hydrates default values in the scan artifact params (not the query body).

All values with no default are reset to their zero value.

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) WithDefaults

func (o *ScanArtifactParams) WithDefaults() *ScanArtifactParams

WithDefaults hydrates default values in the scan artifact params (not the query body).

All values with no default are reset to their zero value.

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 *models.Errors
}

ScanArtifactUnauthorized describes a response with status code 401, 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() *models.Errors

func (*ScanArtifactUnauthorized) IsClientError

func (o *ScanArtifactUnauthorized) IsClientError() bool

IsClientError returns true when this scan artifact unauthorized response has a 4xx status code

func (*ScanArtifactUnauthorized) IsCode

func (o *ScanArtifactUnauthorized) IsCode(code int) bool

IsCode returns true when this scan artifact unauthorized response a status code equal to that given

func (*ScanArtifactUnauthorized) IsRedirect

func (o *ScanArtifactUnauthorized) IsRedirect() bool

IsRedirect returns true when this scan artifact unauthorized response has a 3xx status code

func (*ScanArtifactUnauthorized) IsServerError

func (o *ScanArtifactUnauthorized) IsServerError() bool

IsServerError returns true when this scan artifact unauthorized response has a 5xx status code

func (*ScanArtifactUnauthorized) IsSuccess

func (o *ScanArtifactUnauthorized) IsSuccess() bool

IsSuccess returns true when this scan artifact unauthorized response has a 2xx status code

func (*ScanArtifactUnauthorized) String

func (o *ScanArtifactUnauthorized) String() string

type StopScanArtifactAccepted

type StopScanArtifactAccepted struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string
}

StopScanArtifactAccepted describes a response with status code 202, 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

func (*StopScanArtifactAccepted) IsClientError

func (o *StopScanArtifactAccepted) IsClientError() bool

IsClientError returns true when this stop scan artifact accepted response has a 4xx status code

func (*StopScanArtifactAccepted) IsCode

func (o *StopScanArtifactAccepted) IsCode(code int) bool

IsCode returns true when this stop scan artifact accepted response a status code equal to that given

func (*StopScanArtifactAccepted) IsRedirect

func (o *StopScanArtifactAccepted) IsRedirect() bool

IsRedirect returns true when this stop scan artifact accepted response has a 3xx status code

func (*StopScanArtifactAccepted) IsServerError

func (o *StopScanArtifactAccepted) IsServerError() bool

IsServerError returns true when this stop scan artifact accepted response has a 5xx status code

func (*StopScanArtifactAccepted) IsSuccess

func (o *StopScanArtifactAccepted) IsSuccess() bool

IsSuccess returns true when this stop scan artifact accepted response has a 2xx status code

func (*StopScanArtifactAccepted) String

func (o *StopScanArtifactAccepted) String() string

type StopScanArtifactBadRequest

type StopScanArtifactBadRequest struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

StopScanArtifactBadRequest describes a response with status code 400, 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() *models.Errors

func (*StopScanArtifactBadRequest) IsClientError

func (o *StopScanArtifactBadRequest) IsClientError() bool

IsClientError returns true when this stop scan artifact bad request response has a 4xx status code

func (*StopScanArtifactBadRequest) IsCode

func (o *StopScanArtifactBadRequest) IsCode(code int) bool

IsCode returns true when this stop scan artifact bad request response a status code equal to that given

func (*StopScanArtifactBadRequest) IsRedirect

func (o *StopScanArtifactBadRequest) IsRedirect() bool

IsRedirect returns true when this stop scan artifact bad request response has a 3xx status code

func (*StopScanArtifactBadRequest) IsServerError

func (o *StopScanArtifactBadRequest) IsServerError() bool

IsServerError returns true when this stop scan artifact bad request response has a 5xx status code

func (*StopScanArtifactBadRequest) IsSuccess

func (o *StopScanArtifactBadRequest) IsSuccess() bool

IsSuccess returns true when this stop scan artifact bad request response has a 2xx status code

func (*StopScanArtifactBadRequest) String

func (o *StopScanArtifactBadRequest) String() string

type StopScanArtifactForbidden

type StopScanArtifactForbidden struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

StopScanArtifactForbidden describes a response with status code 403, 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() *models.Errors

func (*StopScanArtifactForbidden) IsClientError

func (o *StopScanArtifactForbidden) IsClientError() bool

IsClientError returns true when this stop scan artifact forbidden response has a 4xx status code

func (*StopScanArtifactForbidden) IsCode

func (o *StopScanArtifactForbidden) IsCode(code int) bool

IsCode returns true when this stop scan artifact forbidden response a status code equal to that given

func (*StopScanArtifactForbidden) IsRedirect

func (o *StopScanArtifactForbidden) IsRedirect() bool

IsRedirect returns true when this stop scan artifact forbidden response has a 3xx status code

func (*StopScanArtifactForbidden) IsServerError

func (o *StopScanArtifactForbidden) IsServerError() bool

IsServerError returns true when this stop scan artifact forbidden response has a 5xx status code

func (*StopScanArtifactForbidden) IsSuccess

func (o *StopScanArtifactForbidden) IsSuccess() bool

IsSuccess returns true when this stop scan artifact forbidden response has a 2xx status code

func (*StopScanArtifactForbidden) String

func (o *StopScanArtifactForbidden) String() string

type StopScanArtifactInternalServerError

type StopScanArtifactInternalServerError struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

StopScanArtifactInternalServerError describes a response with status code 500, 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

func (*StopScanArtifactInternalServerError) IsClientError

func (o *StopScanArtifactInternalServerError) IsClientError() bool

IsClientError returns true when this stop scan artifact internal server error response has a 4xx status code

func (*StopScanArtifactInternalServerError) IsCode

IsCode returns true when this stop scan artifact internal server error response a status code equal to that given

func (*StopScanArtifactInternalServerError) IsRedirect

func (o *StopScanArtifactInternalServerError) IsRedirect() bool

IsRedirect returns true when this stop scan artifact internal server error response has a 3xx status code

func (*StopScanArtifactInternalServerError) IsServerError

func (o *StopScanArtifactInternalServerError) IsServerError() bool

IsServerError returns true when this stop scan artifact internal server error response has a 5xx status code

func (*StopScanArtifactInternalServerError) IsSuccess

IsSuccess returns true when this stop scan artifact internal server error response has a 2xx status code

func (*StopScanArtifactInternalServerError) String

type StopScanArtifactNotFound

type StopScanArtifactNotFound struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

StopScanArtifactNotFound describes a response with status code 404, 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() *models.Errors

func (*StopScanArtifactNotFound) IsClientError

func (o *StopScanArtifactNotFound) IsClientError() bool

IsClientError returns true when this stop scan artifact not found response has a 4xx status code

func (*StopScanArtifactNotFound) IsCode

func (o *StopScanArtifactNotFound) IsCode(code int) bool

IsCode returns true when this stop scan artifact not found response a status code equal to that given

func (*StopScanArtifactNotFound) IsRedirect

func (o *StopScanArtifactNotFound) IsRedirect() bool

IsRedirect returns true when this stop scan artifact not found response has a 3xx status code

func (*StopScanArtifactNotFound) IsServerError

func (o *StopScanArtifactNotFound) IsServerError() bool

IsServerError returns true when this stop scan artifact not found response has a 5xx status code

func (*StopScanArtifactNotFound) IsSuccess

func (o *StopScanArtifactNotFound) IsSuccess() bool

IsSuccess returns true when this stop scan artifact not found response has a 2xx status code

func (*StopScanArtifactNotFound) String

func (o *StopScanArtifactNotFound) String() string

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 timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewStopScanArtifactParamsWithContext

func NewStopScanArtifactParamsWithContext(ctx context.Context) *StopScanArtifactParams

NewStopScanArtifactParamsWithContext creates a new StopScanArtifactParams object with 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 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 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) SetDefaults

func (o *StopScanArtifactParams) SetDefaults()

SetDefaults hydrates default values in the stop scan artifact params (not the query body).

All values with no default are reset to their zero value.

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) WithDefaults

WithDefaults hydrates default values in the stop scan artifact params (not the query body).

All values with no default are reset to their zero value.

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 *models.Errors
}

StopScanArtifactUnauthorized describes a response with status code 401, 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() *models.Errors

func (*StopScanArtifactUnauthorized) IsClientError

func (o *StopScanArtifactUnauthorized) IsClientError() bool

IsClientError returns true when this stop scan artifact unauthorized response has a 4xx status code

func (*StopScanArtifactUnauthorized) IsCode

func (o *StopScanArtifactUnauthorized) IsCode(code int) bool

IsCode returns true when this stop scan artifact unauthorized response a status code equal to that given

func (*StopScanArtifactUnauthorized) IsRedirect

func (o *StopScanArtifactUnauthorized) IsRedirect() bool

IsRedirect returns true when this stop scan artifact unauthorized response has a 3xx status code

func (*StopScanArtifactUnauthorized) IsServerError

func (o *StopScanArtifactUnauthorized) IsServerError() bool

IsServerError returns true when this stop scan artifact unauthorized response has a 5xx status code

func (*StopScanArtifactUnauthorized) IsSuccess

func (o *StopScanArtifactUnauthorized) IsSuccess() bool

IsSuccess returns true when this stop scan artifact unauthorized response has a 2xx status code

func (*StopScanArtifactUnauthorized) String

Jump to

Keyboard shortcuts

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