secscan

package
v0.0.0-...-eff1da9 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2020 License: Apache-2.0 Imports: 11 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 secscan API

func (*Client) GetRepoImageSecurity

func (a *Client) GetRepoImageSecurity(params *GetRepoImageSecurityParams, authInfo runtime.ClientAuthInfoWriter) (*GetRepoImageSecurityOK, error)

GetRepoImageSecurity Fetches the features and vulnerabilities (if any) for a repository image.

func (*Client) GetRepoManifestSecurity

func (a *Client) GetRepoManifestSecurity(params *GetRepoManifestSecurityParams, authInfo runtime.ClientAuthInfoWriter) (*GetRepoManifestSecurityOK, error)

GetRepoManifestSecurity get repo manifest security API

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	GetRepoImageSecurity(params *GetRepoImageSecurityParams, authInfo runtime.ClientAuthInfoWriter) (*GetRepoImageSecurityOK, error)

	GetRepoManifestSecurity(params *GetRepoManifestSecurityParams, authInfo runtime.ClientAuthInfoWriter) (*GetRepoManifestSecurityOK, 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 secscan API client.

type GetRepoImageSecurityBadRequest

type GetRepoImageSecurityBadRequest struct {
	Payload *models.APIError
}

GetRepoImageSecurityBadRequest handles this case with default header values.

Bad Request

func NewGetRepoImageSecurityBadRequest

func NewGetRepoImageSecurityBadRequest() *GetRepoImageSecurityBadRequest

NewGetRepoImageSecurityBadRequest creates a GetRepoImageSecurityBadRequest with default headers values

func (*GetRepoImageSecurityBadRequest) Error

func (*GetRepoImageSecurityBadRequest) GetPayload

type GetRepoImageSecurityForbidden

type GetRepoImageSecurityForbidden struct {
	Payload *models.APIError
}

GetRepoImageSecurityForbidden handles this case with default header values.

Unauthorized access

func NewGetRepoImageSecurityForbidden

func NewGetRepoImageSecurityForbidden() *GetRepoImageSecurityForbidden

NewGetRepoImageSecurityForbidden creates a GetRepoImageSecurityForbidden with default headers values

func (*GetRepoImageSecurityForbidden) Error

func (*GetRepoImageSecurityForbidden) GetPayload

type GetRepoImageSecurityNotFound

type GetRepoImageSecurityNotFound struct {
	Payload *models.APIError
}

GetRepoImageSecurityNotFound handles this case with default header values.

Not found

func NewGetRepoImageSecurityNotFound

func NewGetRepoImageSecurityNotFound() *GetRepoImageSecurityNotFound

NewGetRepoImageSecurityNotFound creates a GetRepoImageSecurityNotFound with default headers values

func (*GetRepoImageSecurityNotFound) Error

func (*GetRepoImageSecurityNotFound) GetPayload

func (o *GetRepoImageSecurityNotFound) GetPayload() *models.APIError

type GetRepoImageSecurityOK

type GetRepoImageSecurityOK struct {
}

GetRepoImageSecurityOK handles this case with default header values.

Successful invocation

func NewGetRepoImageSecurityOK

func NewGetRepoImageSecurityOK() *GetRepoImageSecurityOK

NewGetRepoImageSecurityOK creates a GetRepoImageSecurityOK with default headers values

func (*GetRepoImageSecurityOK) Error

func (o *GetRepoImageSecurityOK) Error() string

type GetRepoImageSecurityParams

type GetRepoImageSecurityParams struct {

	/*Imageid
	  The image ID

	*/
	Imageid string
	/*Repository
	  The full path of the repository. e.g. namespace/name

	*/
	Repository string
	/*Vulnerabilities
	  Include vulnerabilities information

	*/
	Vulnerabilities *bool

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

GetRepoImageSecurityParams contains all the parameters to send to the API endpoint for the get repo image security operation typically these are written to a http.Request

func NewGetRepoImageSecurityParams

func NewGetRepoImageSecurityParams() *GetRepoImageSecurityParams

NewGetRepoImageSecurityParams creates a new GetRepoImageSecurityParams object with the default values initialized.

func NewGetRepoImageSecurityParamsWithContext

func NewGetRepoImageSecurityParamsWithContext(ctx context.Context) *GetRepoImageSecurityParams

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

func NewGetRepoImageSecurityParamsWithHTTPClient

func NewGetRepoImageSecurityParamsWithHTTPClient(client *http.Client) *GetRepoImageSecurityParams

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

func NewGetRepoImageSecurityParamsWithTimeout

func NewGetRepoImageSecurityParamsWithTimeout(timeout time.Duration) *GetRepoImageSecurityParams

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

func (*GetRepoImageSecurityParams) SetContext

func (o *GetRepoImageSecurityParams) SetContext(ctx context.Context)

SetContext adds the context to the get repo image security params

func (*GetRepoImageSecurityParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get repo image security params

func (*GetRepoImageSecurityParams) SetImageid

func (o *GetRepoImageSecurityParams) SetImageid(imageid string)

SetImageid adds the imageid to the get repo image security params

func (*GetRepoImageSecurityParams) SetRepository

func (o *GetRepoImageSecurityParams) SetRepository(repository string)

SetRepository adds the repository to the get repo image security params

func (*GetRepoImageSecurityParams) SetTimeout

func (o *GetRepoImageSecurityParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get repo image security params

func (*GetRepoImageSecurityParams) SetVulnerabilities

func (o *GetRepoImageSecurityParams) SetVulnerabilities(vulnerabilities *bool)

SetVulnerabilities adds the vulnerabilities to the get repo image security params

func (*GetRepoImageSecurityParams) WithContext

WithContext adds the context to the get repo image security params

func (*GetRepoImageSecurityParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get repo image security params

func (*GetRepoImageSecurityParams) WithImageid

WithImageid adds the imageid to the get repo image security params

func (*GetRepoImageSecurityParams) WithRepository

func (o *GetRepoImageSecurityParams) WithRepository(repository string) *GetRepoImageSecurityParams

WithRepository adds the repository to the get repo image security params

func (*GetRepoImageSecurityParams) WithTimeout

WithTimeout adds the timeout to the get repo image security params

func (*GetRepoImageSecurityParams) WithVulnerabilities

func (o *GetRepoImageSecurityParams) WithVulnerabilities(vulnerabilities *bool) *GetRepoImageSecurityParams

WithVulnerabilities adds the vulnerabilities to the get repo image security params

func (*GetRepoImageSecurityParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetRepoImageSecurityReader

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

GetRepoImageSecurityReader is a Reader for the GetRepoImageSecurity structure.

func (*GetRepoImageSecurityReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetRepoImageSecurityUnauthorized

type GetRepoImageSecurityUnauthorized struct {
	Payload *models.APIError
}

GetRepoImageSecurityUnauthorized handles this case with default header values.

Session required

func NewGetRepoImageSecurityUnauthorized

func NewGetRepoImageSecurityUnauthorized() *GetRepoImageSecurityUnauthorized

NewGetRepoImageSecurityUnauthorized creates a GetRepoImageSecurityUnauthorized with default headers values

func (*GetRepoImageSecurityUnauthorized) Error

func (*GetRepoImageSecurityUnauthorized) GetPayload

type GetRepoManifestSecurityBadRequest

type GetRepoManifestSecurityBadRequest struct {
	Payload *models.APIError
}

GetRepoManifestSecurityBadRequest handles this case with default header values.

Bad Request

func NewGetRepoManifestSecurityBadRequest

func NewGetRepoManifestSecurityBadRequest() *GetRepoManifestSecurityBadRequest

NewGetRepoManifestSecurityBadRequest creates a GetRepoManifestSecurityBadRequest with default headers values

func (*GetRepoManifestSecurityBadRequest) Error

func (*GetRepoManifestSecurityBadRequest) GetPayload

type GetRepoManifestSecurityForbidden

type GetRepoManifestSecurityForbidden struct {
	Payload *models.APIError
}

GetRepoManifestSecurityForbidden handles this case with default header values.

Unauthorized access

func NewGetRepoManifestSecurityForbidden

func NewGetRepoManifestSecurityForbidden() *GetRepoManifestSecurityForbidden

NewGetRepoManifestSecurityForbidden creates a GetRepoManifestSecurityForbidden with default headers values

func (*GetRepoManifestSecurityForbidden) Error

func (*GetRepoManifestSecurityForbidden) GetPayload

type GetRepoManifestSecurityNotFound

type GetRepoManifestSecurityNotFound struct {
	Payload *models.APIError
}

GetRepoManifestSecurityNotFound handles this case with default header values.

Not found

func NewGetRepoManifestSecurityNotFound

func NewGetRepoManifestSecurityNotFound() *GetRepoManifestSecurityNotFound

NewGetRepoManifestSecurityNotFound creates a GetRepoManifestSecurityNotFound with default headers values

func (*GetRepoManifestSecurityNotFound) Error

func (*GetRepoManifestSecurityNotFound) GetPayload

type GetRepoManifestSecurityOK

type GetRepoManifestSecurityOK struct {
}

GetRepoManifestSecurityOK handles this case with default header values.

Successful invocation

func NewGetRepoManifestSecurityOK

func NewGetRepoManifestSecurityOK() *GetRepoManifestSecurityOK

NewGetRepoManifestSecurityOK creates a GetRepoManifestSecurityOK with default headers values

func (*GetRepoManifestSecurityOK) Error

func (o *GetRepoManifestSecurityOK) Error() string

type GetRepoManifestSecurityParams

type GetRepoManifestSecurityParams struct {

	/*Manifestref
	  The digest of the manifest

	*/
	Manifestref string
	/*Repository
	  The full path of the repository. e.g. namespace/name

	*/
	Repository string
	/*Vulnerabilities
	  Include vulnerabilities informations

	*/
	Vulnerabilities *bool

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

GetRepoManifestSecurityParams contains all the parameters to send to the API endpoint for the get repo manifest security operation typically these are written to a http.Request

func NewGetRepoManifestSecurityParams

func NewGetRepoManifestSecurityParams() *GetRepoManifestSecurityParams

NewGetRepoManifestSecurityParams creates a new GetRepoManifestSecurityParams object with the default values initialized.

func NewGetRepoManifestSecurityParamsWithContext

func NewGetRepoManifestSecurityParamsWithContext(ctx context.Context) *GetRepoManifestSecurityParams

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

func NewGetRepoManifestSecurityParamsWithHTTPClient

func NewGetRepoManifestSecurityParamsWithHTTPClient(client *http.Client) *GetRepoManifestSecurityParams

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

func NewGetRepoManifestSecurityParamsWithTimeout

func NewGetRepoManifestSecurityParamsWithTimeout(timeout time.Duration) *GetRepoManifestSecurityParams

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

func (*GetRepoManifestSecurityParams) SetContext

func (o *GetRepoManifestSecurityParams) SetContext(ctx context.Context)

SetContext adds the context to the get repo manifest security params

func (*GetRepoManifestSecurityParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get repo manifest security params

func (*GetRepoManifestSecurityParams) SetManifestref

func (o *GetRepoManifestSecurityParams) SetManifestref(manifestref string)

SetManifestref adds the manifestref to the get repo manifest security params

func (*GetRepoManifestSecurityParams) SetRepository

func (o *GetRepoManifestSecurityParams) SetRepository(repository string)

SetRepository adds the repository to the get repo manifest security params

func (*GetRepoManifestSecurityParams) SetTimeout

func (o *GetRepoManifestSecurityParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get repo manifest security params

func (*GetRepoManifestSecurityParams) SetVulnerabilities

func (o *GetRepoManifestSecurityParams) SetVulnerabilities(vulnerabilities *bool)

SetVulnerabilities adds the vulnerabilities to the get repo manifest security params

func (*GetRepoManifestSecurityParams) WithContext

WithContext adds the context to the get repo manifest security params

func (*GetRepoManifestSecurityParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get repo manifest security params

func (*GetRepoManifestSecurityParams) WithManifestref

func (o *GetRepoManifestSecurityParams) WithManifestref(manifestref string) *GetRepoManifestSecurityParams

WithManifestref adds the manifestref to the get repo manifest security params

func (*GetRepoManifestSecurityParams) WithRepository

WithRepository adds the repository to the get repo manifest security params

func (*GetRepoManifestSecurityParams) WithTimeout

WithTimeout adds the timeout to the get repo manifest security params

func (*GetRepoManifestSecurityParams) WithVulnerabilities

func (o *GetRepoManifestSecurityParams) WithVulnerabilities(vulnerabilities *bool) *GetRepoManifestSecurityParams

WithVulnerabilities adds the vulnerabilities to the get repo manifest security params

func (*GetRepoManifestSecurityParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetRepoManifestSecurityReader

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

GetRepoManifestSecurityReader is a Reader for the GetRepoManifestSecurity structure.

func (*GetRepoManifestSecurityReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetRepoManifestSecurityUnauthorized

type GetRepoManifestSecurityUnauthorized struct {
	Payload *models.APIError
}

GetRepoManifestSecurityUnauthorized handles this case with default header values.

Session required

func NewGetRepoManifestSecurityUnauthorized

func NewGetRepoManifestSecurityUnauthorized() *GetRepoManifestSecurityUnauthorized

NewGetRepoManifestSecurityUnauthorized creates a GetRepoManifestSecurityUnauthorized with default headers values

func (*GetRepoManifestSecurityUnauthorized) Error

func (*GetRepoManifestSecurityUnauthorized) GetPayload

Jump to

Keyboard shortcuts

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