scan

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2020 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) GetRepositoriesRepoNameTagsTagScan

GetRepositoriesRepoNameTagsTagScan gets the scan report

Retrieve the scan report for the artifact identified by the repo_name and tag.

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	GetRepositoriesRepoNameTagsTagScan(params *GetRepositoriesRepoNameTagsTagScanParams, authInfo runtime.ClientAuthInfoWriter) (*GetRepositoriesRepoNameTagsTagScanOK, 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 GetRepositoriesRepoNameTagsTagScanForbidden

type GetRepositoriesRepoNameTagsTagScanForbidden struct {
}

GetRepositoriesRepoNameTagsTagScanForbidden handles this case with default header values.

Request is not allowed

func NewGetRepositoriesRepoNameTagsTagScanForbidden

func NewGetRepositoriesRepoNameTagsTagScanForbidden() *GetRepositoriesRepoNameTagsTagScanForbidden

NewGetRepositoriesRepoNameTagsTagScanForbidden creates a GetRepositoriesRepoNameTagsTagScanForbidden with default headers values

func (*GetRepositoriesRepoNameTagsTagScanForbidden) Error

type GetRepositoriesRepoNameTagsTagScanInternalServerError

type GetRepositoriesRepoNameTagsTagScanInternalServerError struct {
}

GetRepositoriesRepoNameTagsTagScanInternalServerError handles this case with default header values.

Internal server error happened

func NewGetRepositoriesRepoNameTagsTagScanInternalServerError

func NewGetRepositoriesRepoNameTagsTagScanInternalServerError() *GetRepositoriesRepoNameTagsTagScanInternalServerError

NewGetRepositoriesRepoNameTagsTagScanInternalServerError creates a GetRepositoriesRepoNameTagsTagScanInternalServerError with default headers values

func (*GetRepositoriesRepoNameTagsTagScanInternalServerError) Error

type GetRepositoriesRepoNameTagsTagScanNotFound

type GetRepositoriesRepoNameTagsTagScanNotFound struct {
}

GetRepositoriesRepoNameTagsTagScanNotFound handles this case with default header values.

The target artifact is not found

func NewGetRepositoriesRepoNameTagsTagScanNotFound

func NewGetRepositoriesRepoNameTagsTagScanNotFound() *GetRepositoriesRepoNameTagsTagScanNotFound

NewGetRepositoriesRepoNameTagsTagScanNotFound creates a GetRepositoriesRepoNameTagsTagScanNotFound with default headers values

func (*GetRepositoriesRepoNameTagsTagScanNotFound) Error

type GetRepositoriesRepoNameTagsTagScanOK

type GetRepositoriesRepoNameTagsTagScanOK struct {
	Payload *models.Report
}

GetRepositoriesRepoNameTagsTagScanOK handles this case with default header values.

The report details of the specified artifact identified by the repo_name and tag.

func NewGetRepositoriesRepoNameTagsTagScanOK

func NewGetRepositoriesRepoNameTagsTagScanOK() *GetRepositoriesRepoNameTagsTagScanOK

NewGetRepositoriesRepoNameTagsTagScanOK creates a GetRepositoriesRepoNameTagsTagScanOK with default headers values

func (*GetRepositoriesRepoNameTagsTagScanOK) Error

func (*GetRepositoriesRepoNameTagsTagScanOK) GetPayload

type GetRepositoriesRepoNameTagsTagScanParams

type GetRepositoriesRepoNameTagsTagScanParams struct {

	/*Accept
	  Mimetype in header. e.g: "application/vnd.scanner.adapter.vuln.report.harbor+json; version=1.0"


	*/
	Accept *string
	/*RepoName
	  Repository name

	*/
	RepoName string
	/*Tag
	  Tag name

	*/
	Tag string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetRepositoriesRepoNameTagsTagScanParams contains all the parameters to send to the API endpoint for the get repositories repo name tags tag scan operation typically these are written to a http.Request

func NewGetRepositoriesRepoNameTagsTagScanParams

func NewGetRepositoriesRepoNameTagsTagScanParams() *GetRepositoriesRepoNameTagsTagScanParams

NewGetRepositoriesRepoNameTagsTagScanParams creates a new GetRepositoriesRepoNameTagsTagScanParams object with the default values initialized.

func NewGetRepositoriesRepoNameTagsTagScanParamsWithContext

func NewGetRepositoriesRepoNameTagsTagScanParamsWithContext(ctx context.Context) *GetRepositoriesRepoNameTagsTagScanParams

NewGetRepositoriesRepoNameTagsTagScanParamsWithContext creates a new GetRepositoriesRepoNameTagsTagScanParams object with the default values initialized, and the ability to set a context for a request

func NewGetRepositoriesRepoNameTagsTagScanParamsWithHTTPClient

func NewGetRepositoriesRepoNameTagsTagScanParamsWithHTTPClient(client *http.Client) *GetRepositoriesRepoNameTagsTagScanParams

NewGetRepositoriesRepoNameTagsTagScanParamsWithHTTPClient creates a new GetRepositoriesRepoNameTagsTagScanParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetRepositoriesRepoNameTagsTagScanParamsWithTimeout

func NewGetRepositoriesRepoNameTagsTagScanParamsWithTimeout(timeout time.Duration) *GetRepositoriesRepoNameTagsTagScanParams

NewGetRepositoriesRepoNameTagsTagScanParamsWithTimeout creates a new GetRepositoriesRepoNameTagsTagScanParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetRepositoriesRepoNameTagsTagScanParams) SetAccept

func (o *GetRepositoriesRepoNameTagsTagScanParams) SetAccept(accept *string)

SetAccept adds the accept to the get repositories repo name tags tag scan params

func (*GetRepositoriesRepoNameTagsTagScanParams) SetContext

SetContext adds the context to the get repositories repo name tags tag scan params

func (*GetRepositoriesRepoNameTagsTagScanParams) SetHTTPClient

func (o *GetRepositoriesRepoNameTagsTagScanParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get repositories repo name tags tag scan params

func (*GetRepositoriesRepoNameTagsTagScanParams) SetRepoName

func (o *GetRepositoriesRepoNameTagsTagScanParams) SetRepoName(repoName string)

SetRepoName adds the repoName to the get repositories repo name tags tag scan params

func (*GetRepositoriesRepoNameTagsTagScanParams) SetTag

SetTag adds the tag to the get repositories repo name tags tag scan params

func (*GetRepositoriesRepoNameTagsTagScanParams) SetTimeout

SetTimeout adds the timeout to the get repositories repo name tags tag scan params

func (*GetRepositoriesRepoNameTagsTagScanParams) WithAccept

WithAccept adds the accept to the get repositories repo name tags tag scan params

func (*GetRepositoriesRepoNameTagsTagScanParams) WithContext

WithContext adds the context to the get repositories repo name tags tag scan params

func (*GetRepositoriesRepoNameTagsTagScanParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get repositories repo name tags tag scan params

func (*GetRepositoriesRepoNameTagsTagScanParams) WithRepoName

WithRepoName adds the repoName to the get repositories repo name tags tag scan params

func (*GetRepositoriesRepoNameTagsTagScanParams) WithTag

WithTag adds the tag to the get repositories repo name tags tag scan params

func (*GetRepositoriesRepoNameTagsTagScanParams) WithTimeout

WithTimeout adds the timeout to the get repositories repo name tags tag scan params

func (*GetRepositoriesRepoNameTagsTagScanParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetRepositoriesRepoNameTagsTagScanReader

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

GetRepositoriesRepoNameTagsTagScanReader is a Reader for the GetRepositoriesRepoNameTagsTagScan structure.

func (*GetRepositoriesRepoNameTagsTagScanReader) ReadResponse

func (o *GetRepositoriesRepoNameTagsTagScanReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetRepositoriesRepoNameTagsTagScanUnauthorized

type GetRepositoriesRepoNameTagsTagScanUnauthorized struct {
}

GetRepositoriesRepoNameTagsTagScanUnauthorized handles this case with default header values.

Unauthorized request

func NewGetRepositoriesRepoNameTagsTagScanUnauthorized

func NewGetRepositoriesRepoNameTagsTagScanUnauthorized() *GetRepositoriesRepoNameTagsTagScanUnauthorized

NewGetRepositoriesRepoNameTagsTagScanUnauthorized creates a GetRepositoriesRepoNameTagsTagScanUnauthorized with default headers values

func (*GetRepositoriesRepoNameTagsTagScanUnauthorized) Error

Jump to

Keyboard shortcuts

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