operations

package
v2.7.2 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2022 License: Apache-2.0 Imports: 10 Imported by: 1

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 operations API

func (*Client) PostScanScanUUIDCisDockerBenchmarkResults

func (a *Client) PostScanScanUUIDCisDockerBenchmarkResults(params *PostScanScanUUIDCisDockerBenchmarkResultsParams, opts ...ClientOption) (*PostScanScanUUIDCisDockerBenchmarkResultsCreated, error)

PostScanScanUUIDCisDockerBenchmarkResults reports an image c i s docker benchmark scan for a specific scan UUID

func (*Client) PostScanScanUUIDContentAnalysis

func (a *Client) PostScanScanUUIDContentAnalysis(params *PostScanScanUUIDContentAnalysisParams, opts ...ClientOption) (*PostScanScanUUIDContentAnalysisCreated, error)

PostScanScanUUIDContentAnalysis reports a content analysis for a specific resource

func (*Client) PostScanScanUUIDResults

func (a *Client) PostScanScanUUIDResults(params *PostScanScanUUIDResultsParams, opts ...ClientOption) (*PostScanScanUUIDResultsCreated, error)

PostScanScanUUIDResults reports an image vulnerability scan for a specific scan UUID

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	PostScanScanUUIDCisDockerBenchmarkResults(params *PostScanScanUUIDCisDockerBenchmarkResultsParams, opts ...ClientOption) (*PostScanScanUUIDCisDockerBenchmarkResultsCreated, error)

	PostScanScanUUIDContentAnalysis(params *PostScanScanUUIDContentAnalysisParams, opts ...ClientOption) (*PostScanScanUUIDContentAnalysisCreated, error)

	PostScanScanUUIDResults(params *PostScanScanUUIDResultsParams, opts ...ClientOption) (*PostScanScanUUIDResultsCreated, 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 operations API client.

type PostScanScanUUIDCisDockerBenchmarkResultsCreated

type PostScanScanUUIDCisDockerBenchmarkResultsCreated struct {
}
PostScanScanUUIDCisDockerBenchmarkResultsCreated describes a response with status code 201, with default header values.

CIS docker benchmark scan successfully reported.

func NewPostScanScanUUIDCisDockerBenchmarkResultsCreated

func NewPostScanScanUUIDCisDockerBenchmarkResultsCreated() *PostScanScanUUIDCisDockerBenchmarkResultsCreated

NewPostScanScanUUIDCisDockerBenchmarkResultsCreated creates a PostScanScanUUIDCisDockerBenchmarkResultsCreated with default headers values

func (*PostScanScanUUIDCisDockerBenchmarkResultsCreated) Error

type PostScanScanUUIDCisDockerBenchmarkResultsDefault

type PostScanScanUUIDCisDockerBenchmarkResultsDefault struct {
	Payload *models.APIResponse
	// contains filtered or unexported fields
}
PostScanScanUUIDCisDockerBenchmarkResultsDefault describes a response with status code -1, with default header values.

unknown error

func NewPostScanScanUUIDCisDockerBenchmarkResultsDefault

func NewPostScanScanUUIDCisDockerBenchmarkResultsDefault(code int) *PostScanScanUUIDCisDockerBenchmarkResultsDefault

NewPostScanScanUUIDCisDockerBenchmarkResultsDefault creates a PostScanScanUUIDCisDockerBenchmarkResultsDefault with default headers values

func (*PostScanScanUUIDCisDockerBenchmarkResultsDefault) Code

Code gets the status code for the post scan scan UUID cis docker benchmark results default response

func (*PostScanScanUUIDCisDockerBenchmarkResultsDefault) Error

func (*PostScanScanUUIDCisDockerBenchmarkResultsDefault) GetPayload

type PostScanScanUUIDCisDockerBenchmarkResultsParams

type PostScanScanUUIDCisDockerBenchmarkResultsParams struct {

	// Body.
	Body *models.CISDockerBenchmarkScan

	// ScanUUID.
	//
	// Format: uuid
	ScanUUID strfmt.UUID

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

PostScanScanUUIDCisDockerBenchmarkResultsParams contains all the parameters to send to the API endpoint

for the post scan scan UUID cis docker benchmark results operation.

Typically these are written to a http.Request.

func NewPostScanScanUUIDCisDockerBenchmarkResultsParams

func NewPostScanScanUUIDCisDockerBenchmarkResultsParams() *PostScanScanUUIDCisDockerBenchmarkResultsParams

NewPostScanScanUUIDCisDockerBenchmarkResultsParams creates a new PostScanScanUUIDCisDockerBenchmarkResultsParams 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 NewPostScanScanUUIDCisDockerBenchmarkResultsParamsWithContext

func NewPostScanScanUUIDCisDockerBenchmarkResultsParamsWithContext(ctx context.Context) *PostScanScanUUIDCisDockerBenchmarkResultsParams

NewPostScanScanUUIDCisDockerBenchmarkResultsParamsWithContext creates a new PostScanScanUUIDCisDockerBenchmarkResultsParams object with the ability to set a context for a request.

func NewPostScanScanUUIDCisDockerBenchmarkResultsParamsWithHTTPClient

func NewPostScanScanUUIDCisDockerBenchmarkResultsParamsWithHTTPClient(client *http.Client) *PostScanScanUUIDCisDockerBenchmarkResultsParams

NewPostScanScanUUIDCisDockerBenchmarkResultsParamsWithHTTPClient creates a new PostScanScanUUIDCisDockerBenchmarkResultsParams object with the ability to set a custom HTTPClient for a request.

func NewPostScanScanUUIDCisDockerBenchmarkResultsParamsWithTimeout

func NewPostScanScanUUIDCisDockerBenchmarkResultsParamsWithTimeout(timeout time.Duration) *PostScanScanUUIDCisDockerBenchmarkResultsParams

NewPostScanScanUUIDCisDockerBenchmarkResultsParamsWithTimeout creates a new PostScanScanUUIDCisDockerBenchmarkResultsParams object with the ability to set a timeout on a request.

func (*PostScanScanUUIDCisDockerBenchmarkResultsParams) SetBody

SetBody adds the body to the post scan scan UUID cis docker benchmark results params

func (*PostScanScanUUIDCisDockerBenchmarkResultsParams) SetContext

SetContext adds the context to the post scan scan UUID cis docker benchmark results params

func (*PostScanScanUUIDCisDockerBenchmarkResultsParams) SetDefaults

SetDefaults hydrates default values in the post scan scan UUID cis docker benchmark results params (not the query body).

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

func (*PostScanScanUUIDCisDockerBenchmarkResultsParams) SetHTTPClient

SetHTTPClient adds the HTTPClient to the post scan scan UUID cis docker benchmark results params

func (*PostScanScanUUIDCisDockerBenchmarkResultsParams) SetScanUUID

SetScanUUID adds the scanUuid to the post scan scan UUID cis docker benchmark results params

func (*PostScanScanUUIDCisDockerBenchmarkResultsParams) SetTimeout

SetTimeout adds the timeout to the post scan scan UUID cis docker benchmark results params

func (*PostScanScanUUIDCisDockerBenchmarkResultsParams) WithBody

WithBody adds the body to the post scan scan UUID cis docker benchmark results params

func (*PostScanScanUUIDCisDockerBenchmarkResultsParams) WithContext

WithContext adds the context to the post scan scan UUID cis docker benchmark results params

func (*PostScanScanUUIDCisDockerBenchmarkResultsParams) WithDefaults

WithDefaults hydrates default values in the post scan scan UUID cis docker benchmark results params (not the query body).

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

func (*PostScanScanUUIDCisDockerBenchmarkResultsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the post scan scan UUID cis docker benchmark results params

func (*PostScanScanUUIDCisDockerBenchmarkResultsParams) WithScanUUID

WithScanUUID adds the scanUUID to the post scan scan UUID cis docker benchmark results params

func (*PostScanScanUUIDCisDockerBenchmarkResultsParams) WithTimeout

WithTimeout adds the timeout to the post scan scan UUID cis docker benchmark results params

func (*PostScanScanUUIDCisDockerBenchmarkResultsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PostScanScanUUIDCisDockerBenchmarkResultsReader

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

PostScanScanUUIDCisDockerBenchmarkResultsReader is a Reader for the PostScanScanUUIDCisDockerBenchmarkResults structure.

func (*PostScanScanUUIDCisDockerBenchmarkResultsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PostScanScanUUIDContentAnalysisCreated

type PostScanScanUUIDContentAnalysisCreated struct {
}
PostScanScanUUIDContentAnalysisCreated describes a response with status code 201, with default header values.

Image content analysis successfully reported.

func NewPostScanScanUUIDContentAnalysisCreated

func NewPostScanScanUUIDContentAnalysisCreated() *PostScanScanUUIDContentAnalysisCreated

NewPostScanScanUUIDContentAnalysisCreated creates a PostScanScanUUIDContentAnalysisCreated with default headers values

func (*PostScanScanUUIDContentAnalysisCreated) Error

type PostScanScanUUIDContentAnalysisDefault

type PostScanScanUUIDContentAnalysisDefault struct {
	Payload *models.APIResponse
	// contains filtered or unexported fields
}
PostScanScanUUIDContentAnalysisDefault describes a response with status code -1, with default header values.

unknown error

func NewPostScanScanUUIDContentAnalysisDefault

func NewPostScanScanUUIDContentAnalysisDefault(code int) *PostScanScanUUIDContentAnalysisDefault

NewPostScanScanUUIDContentAnalysisDefault creates a PostScanScanUUIDContentAnalysisDefault with default headers values

func (*PostScanScanUUIDContentAnalysisDefault) Code

Code gets the status code for the post scan scan UUID content analysis default response

func (*PostScanScanUUIDContentAnalysisDefault) Error

func (*PostScanScanUUIDContentAnalysisDefault) GetPayload

type PostScanScanUUIDContentAnalysisParams

type PostScanScanUUIDContentAnalysisParams struct {

	// Body.
	Body *models.ImageContentAnalysis

	// ScanUUID.
	//
	// Format: uuid
	ScanUUID strfmt.UUID

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

PostScanScanUUIDContentAnalysisParams contains all the parameters to send to the API endpoint

for the post scan scan UUID content analysis operation.

Typically these are written to a http.Request.

func NewPostScanScanUUIDContentAnalysisParams

func NewPostScanScanUUIDContentAnalysisParams() *PostScanScanUUIDContentAnalysisParams

NewPostScanScanUUIDContentAnalysisParams creates a new PostScanScanUUIDContentAnalysisParams 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 NewPostScanScanUUIDContentAnalysisParamsWithContext

func NewPostScanScanUUIDContentAnalysisParamsWithContext(ctx context.Context) *PostScanScanUUIDContentAnalysisParams

NewPostScanScanUUIDContentAnalysisParamsWithContext creates a new PostScanScanUUIDContentAnalysisParams object with the ability to set a context for a request.

func NewPostScanScanUUIDContentAnalysisParamsWithHTTPClient

func NewPostScanScanUUIDContentAnalysisParamsWithHTTPClient(client *http.Client) *PostScanScanUUIDContentAnalysisParams

NewPostScanScanUUIDContentAnalysisParamsWithHTTPClient creates a new PostScanScanUUIDContentAnalysisParams object with the ability to set a custom HTTPClient for a request.

func NewPostScanScanUUIDContentAnalysisParamsWithTimeout

func NewPostScanScanUUIDContentAnalysisParamsWithTimeout(timeout time.Duration) *PostScanScanUUIDContentAnalysisParams

NewPostScanScanUUIDContentAnalysisParamsWithTimeout creates a new PostScanScanUUIDContentAnalysisParams object with the ability to set a timeout on a request.

func (*PostScanScanUUIDContentAnalysisParams) SetBody

SetBody adds the body to the post scan scan UUID content analysis params

func (*PostScanScanUUIDContentAnalysisParams) SetContext

SetContext adds the context to the post scan scan UUID content analysis params

func (*PostScanScanUUIDContentAnalysisParams) SetDefaults

func (o *PostScanScanUUIDContentAnalysisParams) SetDefaults()

SetDefaults hydrates default values in the post scan scan UUID content analysis params (not the query body).

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

func (*PostScanScanUUIDContentAnalysisParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the post scan scan UUID content analysis params

func (*PostScanScanUUIDContentAnalysisParams) SetScanUUID

func (o *PostScanScanUUIDContentAnalysisParams) SetScanUUID(scanUUID strfmt.UUID)

SetScanUUID adds the scanUuid to the post scan scan UUID content analysis params

func (*PostScanScanUUIDContentAnalysisParams) SetTimeout

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

SetTimeout adds the timeout to the post scan scan UUID content analysis params

func (*PostScanScanUUIDContentAnalysisParams) WithBody

WithBody adds the body to the post scan scan UUID content analysis params

func (*PostScanScanUUIDContentAnalysisParams) WithContext

WithContext adds the context to the post scan scan UUID content analysis params

func (*PostScanScanUUIDContentAnalysisParams) WithDefaults

WithDefaults hydrates default values in the post scan scan UUID content analysis params (not the query body).

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

func (*PostScanScanUUIDContentAnalysisParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the post scan scan UUID content analysis params

func (*PostScanScanUUIDContentAnalysisParams) WithScanUUID

WithScanUUID adds the scanUUID to the post scan scan UUID content analysis params

func (*PostScanScanUUIDContentAnalysisParams) WithTimeout

WithTimeout adds the timeout to the post scan scan UUID content analysis params

func (*PostScanScanUUIDContentAnalysisParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PostScanScanUUIDContentAnalysisReader

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

PostScanScanUUIDContentAnalysisReader is a Reader for the PostScanScanUUIDContentAnalysis structure.

func (*PostScanScanUUIDContentAnalysisReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PostScanScanUUIDResultsCreated

type PostScanScanUUIDResultsCreated struct {
}
PostScanScanUUIDResultsCreated describes a response with status code 201, with default header values.

Image vulnerability scan successfully reported.

func NewPostScanScanUUIDResultsCreated

func NewPostScanScanUUIDResultsCreated() *PostScanScanUUIDResultsCreated

NewPostScanScanUUIDResultsCreated creates a PostScanScanUUIDResultsCreated with default headers values

func (*PostScanScanUUIDResultsCreated) Error

type PostScanScanUUIDResultsDefault

type PostScanScanUUIDResultsDefault struct {
	Payload *models.APIResponse
	// contains filtered or unexported fields
}
PostScanScanUUIDResultsDefault describes a response with status code -1, with default header values.

unknown error

func NewPostScanScanUUIDResultsDefault

func NewPostScanScanUUIDResultsDefault(code int) *PostScanScanUUIDResultsDefault

NewPostScanScanUUIDResultsDefault creates a PostScanScanUUIDResultsDefault with default headers values

func (*PostScanScanUUIDResultsDefault) Code

Code gets the status code for the post scan scan UUID results default response

func (*PostScanScanUUIDResultsDefault) Error

func (*PostScanScanUUIDResultsDefault) GetPayload

type PostScanScanUUIDResultsParams

type PostScanScanUUIDResultsParams struct {

	// Body.
	Body *models.ImageVulnerabilityScan

	// ScanUUID.
	//
	// Format: uuid
	ScanUUID strfmt.UUID

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

PostScanScanUUIDResultsParams contains all the parameters to send to the API endpoint

for the post scan scan UUID results operation.

Typically these are written to a http.Request.

func NewPostScanScanUUIDResultsParams

func NewPostScanScanUUIDResultsParams() *PostScanScanUUIDResultsParams

NewPostScanScanUUIDResultsParams creates a new PostScanScanUUIDResultsParams 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 NewPostScanScanUUIDResultsParamsWithContext

func NewPostScanScanUUIDResultsParamsWithContext(ctx context.Context) *PostScanScanUUIDResultsParams

NewPostScanScanUUIDResultsParamsWithContext creates a new PostScanScanUUIDResultsParams object with the ability to set a context for a request.

func NewPostScanScanUUIDResultsParamsWithHTTPClient

func NewPostScanScanUUIDResultsParamsWithHTTPClient(client *http.Client) *PostScanScanUUIDResultsParams

NewPostScanScanUUIDResultsParamsWithHTTPClient creates a new PostScanScanUUIDResultsParams object with the ability to set a custom HTTPClient for a request.

func NewPostScanScanUUIDResultsParamsWithTimeout

func NewPostScanScanUUIDResultsParamsWithTimeout(timeout time.Duration) *PostScanScanUUIDResultsParams

NewPostScanScanUUIDResultsParamsWithTimeout creates a new PostScanScanUUIDResultsParams object with the ability to set a timeout on a request.

func (*PostScanScanUUIDResultsParams) SetBody

SetBody adds the body to the post scan scan UUID results params

func (*PostScanScanUUIDResultsParams) SetContext

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

SetContext adds the context to the post scan scan UUID results params

func (*PostScanScanUUIDResultsParams) SetDefaults

func (o *PostScanScanUUIDResultsParams) SetDefaults()

SetDefaults hydrates default values in the post scan scan UUID results params (not the query body).

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

func (*PostScanScanUUIDResultsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the post scan scan UUID results params

func (*PostScanScanUUIDResultsParams) SetScanUUID

func (o *PostScanScanUUIDResultsParams) SetScanUUID(scanUUID strfmt.UUID)

SetScanUUID adds the scanUuid to the post scan scan UUID results params

func (*PostScanScanUUIDResultsParams) SetTimeout

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

SetTimeout adds the timeout to the post scan scan UUID results params

func (*PostScanScanUUIDResultsParams) WithBody

WithBody adds the body to the post scan scan UUID results params

func (*PostScanScanUUIDResultsParams) WithContext

WithContext adds the context to the post scan scan UUID results params

func (*PostScanScanUUIDResultsParams) WithDefaults

WithDefaults hydrates default values in the post scan scan UUID results params (not the query body).

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

func (*PostScanScanUUIDResultsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the post scan scan UUID results params

func (*PostScanScanUUIDResultsParams) WithScanUUID

WithScanUUID adds the scanUUID to the post scan scan UUID results params

func (*PostScanScanUUIDResultsParams) WithTimeout

WithTimeout adds the timeout to the post scan scan UUID results params

func (*PostScanScanUUIDResultsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PostScanScanUUIDResultsReader

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

PostScanScanUUIDResultsReader is a Reader for the PostScanScanUUIDResults structure.

func (*PostScanScanUUIDResultsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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