Documentation
¶
Index ¶
- type Client
- func (a *Client) GetRepoImageSecurity(params *GetRepoImageSecurityParams, authInfo runtime.ClientAuthInfoWriter) (*GetRepoImageSecurityOK, error)
- func (a *Client) GetRepoManifestSecurity(params *GetRepoManifestSecurityParams, authInfo runtime.ClientAuthInfoWriter) (*GetRepoManifestSecurityOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientService
- type GetRepoImageSecurityBadRequest
- type GetRepoImageSecurityForbidden
- type GetRepoImageSecurityNotFound
- type GetRepoImageSecurityOK
- type GetRepoImageSecurityParams
- func NewGetRepoImageSecurityParams() *GetRepoImageSecurityParams
- func NewGetRepoImageSecurityParamsWithContext(ctx context.Context) *GetRepoImageSecurityParams
- func NewGetRepoImageSecurityParamsWithHTTPClient(client *http.Client) *GetRepoImageSecurityParams
- func NewGetRepoImageSecurityParamsWithTimeout(timeout time.Duration) *GetRepoImageSecurityParams
- func (o *GetRepoImageSecurityParams) SetContext(ctx context.Context)
- func (o *GetRepoImageSecurityParams) SetHTTPClient(client *http.Client)
- func (o *GetRepoImageSecurityParams) SetImageid(imageid string)
- func (o *GetRepoImageSecurityParams) SetRepository(repository string)
- func (o *GetRepoImageSecurityParams) SetTimeout(timeout time.Duration)
- func (o *GetRepoImageSecurityParams) SetVulnerabilities(vulnerabilities *bool)
- func (o *GetRepoImageSecurityParams) WithContext(ctx context.Context) *GetRepoImageSecurityParams
- func (o *GetRepoImageSecurityParams) WithHTTPClient(client *http.Client) *GetRepoImageSecurityParams
- func (o *GetRepoImageSecurityParams) WithImageid(imageid string) *GetRepoImageSecurityParams
- func (o *GetRepoImageSecurityParams) WithRepository(repository string) *GetRepoImageSecurityParams
- func (o *GetRepoImageSecurityParams) WithTimeout(timeout time.Duration) *GetRepoImageSecurityParams
- func (o *GetRepoImageSecurityParams) WithVulnerabilities(vulnerabilities *bool) *GetRepoImageSecurityParams
- func (o *GetRepoImageSecurityParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetRepoImageSecurityReader
- type GetRepoImageSecurityUnauthorized
- type GetRepoManifestSecurityBadRequest
- type GetRepoManifestSecurityForbidden
- type GetRepoManifestSecurityNotFound
- type GetRepoManifestSecurityOK
- type GetRepoManifestSecurityParams
- func NewGetRepoManifestSecurityParams() *GetRepoManifestSecurityParams
- func NewGetRepoManifestSecurityParamsWithContext(ctx context.Context) *GetRepoManifestSecurityParams
- func NewGetRepoManifestSecurityParamsWithHTTPClient(client *http.Client) *GetRepoManifestSecurityParams
- func NewGetRepoManifestSecurityParamsWithTimeout(timeout time.Duration) *GetRepoManifestSecurityParams
- func (o *GetRepoManifestSecurityParams) SetContext(ctx context.Context)
- func (o *GetRepoManifestSecurityParams) SetHTTPClient(client *http.Client)
- func (o *GetRepoManifestSecurityParams) SetManifestref(manifestref string)
- func (o *GetRepoManifestSecurityParams) SetRepository(repository string)
- func (o *GetRepoManifestSecurityParams) SetTimeout(timeout time.Duration)
- func (o *GetRepoManifestSecurityParams) SetVulnerabilities(vulnerabilities *bool)
- func (o *GetRepoManifestSecurityParams) WithContext(ctx context.Context) *GetRepoManifestSecurityParams
- func (o *GetRepoManifestSecurityParams) WithHTTPClient(client *http.Client) *GetRepoManifestSecurityParams
- func (o *GetRepoManifestSecurityParams) WithManifestref(manifestref string) *GetRepoManifestSecurityParams
- func (o *GetRepoManifestSecurityParams) WithRepository(repository string) *GetRepoManifestSecurityParams
- func (o *GetRepoManifestSecurityParams) WithTimeout(timeout time.Duration) *GetRepoManifestSecurityParams
- func (o *GetRepoManifestSecurityParams) WithVulnerabilities(vulnerabilities *bool) *GetRepoManifestSecurityParams
- func (o *GetRepoManifestSecurityParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetRepoManifestSecurityReader
- type GetRepoManifestSecurityUnauthorized
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 ¶
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 (o *GetRepoImageSecurityBadRequest) Error() string
func (*GetRepoImageSecurityBadRequest) GetPayload ¶
func (o *GetRepoImageSecurityBadRequest) GetPayload() *models.APIError
type GetRepoImageSecurityForbidden ¶
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 (o *GetRepoImageSecurityForbidden) Error() string
func (*GetRepoImageSecurityForbidden) GetPayload ¶
func (o *GetRepoImageSecurityForbidden) GetPayload() *models.APIError
type GetRepoImageSecurityNotFound ¶
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 (o *GetRepoImageSecurityNotFound) Error() string
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 ¶
func (o *GetRepoImageSecurityParams) WithContext(ctx context.Context) *GetRepoImageSecurityParams
WithContext adds the context to the get repo image security params
func (*GetRepoImageSecurityParams) WithHTTPClient ¶
func (o *GetRepoImageSecurityParams) WithHTTPClient(client *http.Client) *GetRepoImageSecurityParams
WithHTTPClient adds the HTTPClient to the get repo image security params
func (*GetRepoImageSecurityParams) WithImageid ¶
func (o *GetRepoImageSecurityParams) WithImageid(imageid string) *GetRepoImageSecurityParams
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 ¶
func (o *GetRepoImageSecurityParams) WithTimeout(timeout time.Duration) *GetRepoImageSecurityParams
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 ¶
func (o *GetRepoImageSecurityParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 {
}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 (o *GetRepoImageSecurityUnauthorized) Error() string
func (*GetRepoImageSecurityUnauthorized) GetPayload ¶
func (o *GetRepoImageSecurityUnauthorized) GetPayload() *models.APIError
type GetRepoManifestSecurityBadRequest ¶
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 (o *GetRepoManifestSecurityBadRequest) Error() string
func (*GetRepoManifestSecurityBadRequest) GetPayload ¶
func (o *GetRepoManifestSecurityBadRequest) GetPayload() *models.APIError
type GetRepoManifestSecurityForbidden ¶
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 (o *GetRepoManifestSecurityForbidden) Error() string
func (*GetRepoManifestSecurityForbidden) GetPayload ¶
func (o *GetRepoManifestSecurityForbidden) GetPayload() *models.APIError
type GetRepoManifestSecurityNotFound ¶
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 (o *GetRepoManifestSecurityNotFound) Error() string
func (*GetRepoManifestSecurityNotFound) GetPayload ¶
func (o *GetRepoManifestSecurityNotFound) GetPayload() *models.APIError
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 ¶
func (o *GetRepoManifestSecurityParams) WithContext(ctx context.Context) *GetRepoManifestSecurityParams
WithContext adds the context to the get repo manifest security params
func (*GetRepoManifestSecurityParams) WithHTTPClient ¶
func (o *GetRepoManifestSecurityParams) WithHTTPClient(client *http.Client) *GetRepoManifestSecurityParams
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 ¶
func (o *GetRepoManifestSecurityParams) WithRepository(repository string) *GetRepoManifestSecurityParams
WithRepository adds the repository to the get repo manifest security params
func (*GetRepoManifestSecurityParams) WithTimeout ¶
func (o *GetRepoManifestSecurityParams) WithTimeout(timeout time.Duration) *GetRepoManifestSecurityParams
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 ¶
func (o *GetRepoManifestSecurityParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 {
}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 (o *GetRepoManifestSecurityUnauthorized) Error() string
func (*GetRepoManifestSecurityUnauthorized) GetPayload ¶
func (o *GetRepoManifestSecurityUnauthorized) GetPayload() *models.APIError