scan_all

package
v5.0.0-...-9d434bb Latest Latest
Warning

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

Go to latest
Published: May 30, 2023 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 all API

func (*Client) CreateScanAllSchedule

func (a *Client) CreateScanAllSchedule(params *CreateScanAllScheduleParams, authInfo runtime.ClientAuthInfoWriter) (*CreateScanAllScheduleCreated, error)

CreateScanAllSchedule creates a schedule or a manual trigger for the scan all job

This endpoint is for creating a schedule or a manual trigger for the scan all job, which scans all of images in Harbor.

func (*Client) GetLatestScanAllMetrics

func (a *Client) GetLatestScanAllMetrics(params *GetLatestScanAllMetricsParams, authInfo runtime.ClientAuthInfoWriter) (*GetLatestScanAllMetricsOK, error)

GetLatestScanAllMetrics gets the metrics of the latest scan all process

Get the metrics of the latest scan all process

func (*Client) GetLatestScheduledScanAllMetrics

GetLatestScheduledScanAllMetrics gets the metrics of the latest scheduled scan all process

Get the metrics of the latest scheduled scan all process

func (*Client) GetScanAllSchedule

func (a *Client) GetScanAllSchedule(params *GetScanAllScheduleParams, authInfo runtime.ClientAuthInfoWriter) (*GetScanAllScheduleOK, error)

GetScanAllSchedule gets scan all s schedule

This endpoint is for getting a schedule for the scan all job, which scans all of images in Harbor.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) StopScanAll

func (a *Client) StopScanAll(params *StopScanAllParams, authInfo runtime.ClientAuthInfoWriter) (*StopScanAllAccepted, error)

StopScanAll stops scan all job execution

Stop scanAll job execution

func (*Client) UpdateScanAllSchedule

func (a *Client) UpdateScanAllSchedule(params *UpdateScanAllScheduleParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateScanAllScheduleOK, error)

UpdateScanAllSchedule updates scan all s schedule

This endpoint is for updating the schedule of scan all job, which scans all of images in Harbor.

type ClientService

type ClientService interface {
	CreateScanAllSchedule(params *CreateScanAllScheduleParams, authInfo runtime.ClientAuthInfoWriter) (*CreateScanAllScheduleCreated, error)

	GetLatestScanAllMetrics(params *GetLatestScanAllMetricsParams, authInfo runtime.ClientAuthInfoWriter) (*GetLatestScanAllMetricsOK, error)

	GetLatestScheduledScanAllMetrics(params *GetLatestScheduledScanAllMetricsParams, authInfo runtime.ClientAuthInfoWriter) (*GetLatestScheduledScanAllMetricsOK, error)

	GetScanAllSchedule(params *GetScanAllScheduleParams, authInfo runtime.ClientAuthInfoWriter) (*GetScanAllScheduleOK, error)

	StopScanAll(params *StopScanAllParams, authInfo runtime.ClientAuthInfoWriter) (*StopScanAllAccepted, error)

	UpdateScanAllSchedule(params *UpdateScanAllScheduleParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateScanAllScheduleOK, 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 all API client.

type CreateScanAllScheduleBadRequest

type CreateScanAllScheduleBadRequest struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

CreateScanAllScheduleBadRequest handles this case with default header values.

Bad request

func NewCreateScanAllScheduleBadRequest

func NewCreateScanAllScheduleBadRequest() *CreateScanAllScheduleBadRequest

NewCreateScanAllScheduleBadRequest creates a CreateScanAllScheduleBadRequest with default headers values

func (*CreateScanAllScheduleBadRequest) Error

func (*CreateScanAllScheduleBadRequest) GetPayload

func (o *CreateScanAllScheduleBadRequest) GetPayload() *model.Errors

type CreateScanAllScheduleConflict

type CreateScanAllScheduleConflict struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

CreateScanAllScheduleConflict handles this case with default header values.

Conflict

func NewCreateScanAllScheduleConflict

func NewCreateScanAllScheduleConflict() *CreateScanAllScheduleConflict

NewCreateScanAllScheduleConflict creates a CreateScanAllScheduleConflict with default headers values

func (*CreateScanAllScheduleConflict) Error

func (*CreateScanAllScheduleConflict) GetPayload

func (o *CreateScanAllScheduleConflict) GetPayload() *model.Errors

type CreateScanAllScheduleCreated

type CreateScanAllScheduleCreated struct {
	/*The location of the resource
	 */
	Location string
	/*The ID of the corresponding request for the response
	 */
	XRequestID string
}

CreateScanAllScheduleCreated handles this case with default header values.

Created

func NewCreateScanAllScheduleCreated

func NewCreateScanAllScheduleCreated() *CreateScanAllScheduleCreated

NewCreateScanAllScheduleCreated creates a CreateScanAllScheduleCreated with default headers values

func (*CreateScanAllScheduleCreated) Error

type CreateScanAllScheduleForbidden

type CreateScanAllScheduleForbidden struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

CreateScanAllScheduleForbidden handles this case with default header values.

Forbidden

func NewCreateScanAllScheduleForbidden

func NewCreateScanAllScheduleForbidden() *CreateScanAllScheduleForbidden

NewCreateScanAllScheduleForbidden creates a CreateScanAllScheduleForbidden with default headers values

func (*CreateScanAllScheduleForbidden) Error

func (*CreateScanAllScheduleForbidden) GetPayload

func (o *CreateScanAllScheduleForbidden) GetPayload() *model.Errors

type CreateScanAllScheduleInternalServerError

type CreateScanAllScheduleInternalServerError struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

CreateScanAllScheduleInternalServerError handles this case with default header values.

Internal server error

func NewCreateScanAllScheduleInternalServerError

func NewCreateScanAllScheduleInternalServerError() *CreateScanAllScheduleInternalServerError

NewCreateScanAllScheduleInternalServerError creates a CreateScanAllScheduleInternalServerError with default headers values

func (*CreateScanAllScheduleInternalServerError) Error

func (*CreateScanAllScheduleInternalServerError) GetPayload

type CreateScanAllScheduleParams

type CreateScanAllScheduleParams struct {

	/*XRequestID
	  An unique ID for the request

	*/
	XRequestID *string
	/*Schedule
	  Create a schedule or a manual trigger for the scan all job.

	*/
	Schedule *model.Schedule

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

CreateScanAllScheduleParams contains all the parameters to send to the API endpoint for the create scan all schedule operation typically these are written to a http.Request

func NewCreateScanAllScheduleParams

func NewCreateScanAllScheduleParams() *CreateScanAllScheduleParams

NewCreateScanAllScheduleParams creates a new CreateScanAllScheduleParams object with the default values initialized.

func NewCreateScanAllScheduleParamsWithContext

func NewCreateScanAllScheduleParamsWithContext(ctx context.Context) *CreateScanAllScheduleParams

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

func NewCreateScanAllScheduleParamsWithHTTPClient

func NewCreateScanAllScheduleParamsWithHTTPClient(client *http.Client) *CreateScanAllScheduleParams

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

func NewCreateScanAllScheduleParamsWithTimeout

func NewCreateScanAllScheduleParamsWithTimeout(timeout time.Duration) *CreateScanAllScheduleParams

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

func (*CreateScanAllScheduleParams) SetContext

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

SetContext adds the context to the create scan all schedule params

func (*CreateScanAllScheduleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create scan all schedule params

func (*CreateScanAllScheduleParams) SetSchedule

func (o *CreateScanAllScheduleParams) SetSchedule(schedule *model.Schedule)

SetSchedule adds the schedule to the create scan all schedule params

func (*CreateScanAllScheduleParams) SetTimeout

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

SetTimeout adds the timeout to the create scan all schedule params

func (*CreateScanAllScheduleParams) SetXRequestID

func (o *CreateScanAllScheduleParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId to the create scan all schedule params

func (*CreateScanAllScheduleParams) WithContext

WithContext adds the context to the create scan all schedule params

func (*CreateScanAllScheduleParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the create scan all schedule params

func (*CreateScanAllScheduleParams) WithSchedule

WithSchedule adds the schedule to the create scan all schedule params

func (*CreateScanAllScheduleParams) WithTimeout

WithTimeout adds the timeout to the create scan all schedule params

func (*CreateScanAllScheduleParams) WithXRequestID

func (o *CreateScanAllScheduleParams) WithXRequestID(xRequestID *string) *CreateScanAllScheduleParams

WithXRequestID adds the xRequestID to the create scan all schedule params

func (*CreateScanAllScheduleParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateScanAllSchedulePreconditionFailed

type CreateScanAllSchedulePreconditionFailed struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

CreateScanAllSchedulePreconditionFailed handles this case with default header values.

Precondition failed

func NewCreateScanAllSchedulePreconditionFailed

func NewCreateScanAllSchedulePreconditionFailed() *CreateScanAllSchedulePreconditionFailed

NewCreateScanAllSchedulePreconditionFailed creates a CreateScanAllSchedulePreconditionFailed with default headers values

func (*CreateScanAllSchedulePreconditionFailed) Error

func (*CreateScanAllSchedulePreconditionFailed) GetPayload

type CreateScanAllScheduleReader

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

CreateScanAllScheduleReader is a Reader for the CreateScanAllSchedule structure.

func (*CreateScanAllScheduleReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CreateScanAllScheduleUnauthorized

type CreateScanAllScheduleUnauthorized struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

CreateScanAllScheduleUnauthorized handles this case with default header values.

Unauthorized

func NewCreateScanAllScheduleUnauthorized

func NewCreateScanAllScheduleUnauthorized() *CreateScanAllScheduleUnauthorized

NewCreateScanAllScheduleUnauthorized creates a CreateScanAllScheduleUnauthorized with default headers values

func (*CreateScanAllScheduleUnauthorized) Error

func (*CreateScanAllScheduleUnauthorized) GetPayload

type GetLatestScanAllMetricsForbidden

type GetLatestScanAllMetricsForbidden struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

GetLatestScanAllMetricsForbidden handles this case with default header values.

Forbidden

func NewGetLatestScanAllMetricsForbidden

func NewGetLatestScanAllMetricsForbidden() *GetLatestScanAllMetricsForbidden

NewGetLatestScanAllMetricsForbidden creates a GetLatestScanAllMetricsForbidden with default headers values

func (*GetLatestScanAllMetricsForbidden) Error

func (*GetLatestScanAllMetricsForbidden) GetPayload

type GetLatestScanAllMetricsInternalServerError

type GetLatestScanAllMetricsInternalServerError struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

GetLatestScanAllMetricsInternalServerError handles this case with default header values.

Internal server error

func NewGetLatestScanAllMetricsInternalServerError

func NewGetLatestScanAllMetricsInternalServerError() *GetLatestScanAllMetricsInternalServerError

NewGetLatestScanAllMetricsInternalServerError creates a GetLatestScanAllMetricsInternalServerError with default headers values

func (*GetLatestScanAllMetricsInternalServerError) Error

func (*GetLatestScanAllMetricsInternalServerError) GetPayload

type GetLatestScanAllMetricsOK

type GetLatestScanAllMetricsOK struct {
	Payload *model.Stats
}

GetLatestScanAllMetricsOK handles this case with default header values.

OK

func NewGetLatestScanAllMetricsOK

func NewGetLatestScanAllMetricsOK() *GetLatestScanAllMetricsOK

NewGetLatestScanAllMetricsOK creates a GetLatestScanAllMetricsOK with default headers values

func (*GetLatestScanAllMetricsOK) Error

func (o *GetLatestScanAllMetricsOK) Error() string

func (*GetLatestScanAllMetricsOK) GetPayload

func (o *GetLatestScanAllMetricsOK) GetPayload() *model.Stats

type GetLatestScanAllMetricsParams

type GetLatestScanAllMetricsParams struct {

	/*XRequestID
	  An unique ID for the request

	*/
	XRequestID *string

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

GetLatestScanAllMetricsParams contains all the parameters to send to the API endpoint for the get latest scan all metrics operation typically these are written to a http.Request

func NewGetLatestScanAllMetricsParams

func NewGetLatestScanAllMetricsParams() *GetLatestScanAllMetricsParams

NewGetLatestScanAllMetricsParams creates a new GetLatestScanAllMetricsParams object with the default values initialized.

func NewGetLatestScanAllMetricsParamsWithContext

func NewGetLatestScanAllMetricsParamsWithContext(ctx context.Context) *GetLatestScanAllMetricsParams

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

func NewGetLatestScanAllMetricsParamsWithHTTPClient

func NewGetLatestScanAllMetricsParamsWithHTTPClient(client *http.Client) *GetLatestScanAllMetricsParams

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

func NewGetLatestScanAllMetricsParamsWithTimeout

func NewGetLatestScanAllMetricsParamsWithTimeout(timeout time.Duration) *GetLatestScanAllMetricsParams

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

func (*GetLatestScanAllMetricsParams) SetContext

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

SetContext adds the context to the get latest scan all metrics params

func (*GetLatestScanAllMetricsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get latest scan all metrics params

func (*GetLatestScanAllMetricsParams) SetTimeout

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

SetTimeout adds the timeout to the get latest scan all metrics params

func (*GetLatestScanAllMetricsParams) SetXRequestID

func (o *GetLatestScanAllMetricsParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId to the get latest scan all metrics params

func (*GetLatestScanAllMetricsParams) WithContext

WithContext adds the context to the get latest scan all metrics params

func (*GetLatestScanAllMetricsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get latest scan all metrics params

func (*GetLatestScanAllMetricsParams) WithTimeout

WithTimeout adds the timeout to the get latest scan all metrics params

func (*GetLatestScanAllMetricsParams) WithXRequestID

func (o *GetLatestScanAllMetricsParams) WithXRequestID(xRequestID *string) *GetLatestScanAllMetricsParams

WithXRequestID adds the xRequestID to the get latest scan all metrics params

func (*GetLatestScanAllMetricsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetLatestScanAllMetricsPreconditionFailed

type GetLatestScanAllMetricsPreconditionFailed struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

GetLatestScanAllMetricsPreconditionFailed handles this case with default header values.

Precondition failed

func NewGetLatestScanAllMetricsPreconditionFailed

func NewGetLatestScanAllMetricsPreconditionFailed() *GetLatestScanAllMetricsPreconditionFailed

NewGetLatestScanAllMetricsPreconditionFailed creates a GetLatestScanAllMetricsPreconditionFailed with default headers values

func (*GetLatestScanAllMetricsPreconditionFailed) Error

func (*GetLatestScanAllMetricsPreconditionFailed) GetPayload

type GetLatestScanAllMetricsReader

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

GetLatestScanAllMetricsReader is a Reader for the GetLatestScanAllMetrics structure.

func (*GetLatestScanAllMetricsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetLatestScanAllMetricsUnauthorized

type GetLatestScanAllMetricsUnauthorized struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

GetLatestScanAllMetricsUnauthorized handles this case with default header values.

Unauthorized

func NewGetLatestScanAllMetricsUnauthorized

func NewGetLatestScanAllMetricsUnauthorized() *GetLatestScanAllMetricsUnauthorized

NewGetLatestScanAllMetricsUnauthorized creates a GetLatestScanAllMetricsUnauthorized with default headers values

func (*GetLatestScanAllMetricsUnauthorized) Error

func (*GetLatestScanAllMetricsUnauthorized) GetPayload

type GetLatestScheduledScanAllMetricsForbidden

type GetLatestScheduledScanAllMetricsForbidden struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

GetLatestScheduledScanAllMetricsForbidden handles this case with default header values.

Forbidden

func NewGetLatestScheduledScanAllMetricsForbidden

func NewGetLatestScheduledScanAllMetricsForbidden() *GetLatestScheduledScanAllMetricsForbidden

NewGetLatestScheduledScanAllMetricsForbidden creates a GetLatestScheduledScanAllMetricsForbidden with default headers values

func (*GetLatestScheduledScanAllMetricsForbidden) Error

func (*GetLatestScheduledScanAllMetricsForbidden) GetPayload

type GetLatestScheduledScanAllMetricsInternalServerError

type GetLatestScheduledScanAllMetricsInternalServerError struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

GetLatestScheduledScanAllMetricsInternalServerError handles this case with default header values.

Internal server error

func NewGetLatestScheduledScanAllMetricsInternalServerError

func NewGetLatestScheduledScanAllMetricsInternalServerError() *GetLatestScheduledScanAllMetricsInternalServerError

NewGetLatestScheduledScanAllMetricsInternalServerError creates a GetLatestScheduledScanAllMetricsInternalServerError with default headers values

func (*GetLatestScheduledScanAllMetricsInternalServerError) Error

func (*GetLatestScheduledScanAllMetricsInternalServerError) GetPayload

type GetLatestScheduledScanAllMetricsOK

type GetLatestScheduledScanAllMetricsOK struct {
	Payload *model.Stats
}

GetLatestScheduledScanAllMetricsOK handles this case with default header values.

OK

func NewGetLatestScheduledScanAllMetricsOK

func NewGetLatestScheduledScanAllMetricsOK() *GetLatestScheduledScanAllMetricsOK

NewGetLatestScheduledScanAllMetricsOK creates a GetLatestScheduledScanAllMetricsOK with default headers values

func (*GetLatestScheduledScanAllMetricsOK) Error

func (*GetLatestScheduledScanAllMetricsOK) GetPayload

type GetLatestScheduledScanAllMetricsParams

type GetLatestScheduledScanAllMetricsParams struct {

	/*XRequestID
	  An unique ID for the request

	*/
	XRequestID *string

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

GetLatestScheduledScanAllMetricsParams contains all the parameters to send to the API endpoint for the get latest scheduled scan all metrics operation typically these are written to a http.Request

func NewGetLatestScheduledScanAllMetricsParams

func NewGetLatestScheduledScanAllMetricsParams() *GetLatestScheduledScanAllMetricsParams

NewGetLatestScheduledScanAllMetricsParams creates a new GetLatestScheduledScanAllMetricsParams object with the default values initialized.

func NewGetLatestScheduledScanAllMetricsParamsWithContext

func NewGetLatestScheduledScanAllMetricsParamsWithContext(ctx context.Context) *GetLatestScheduledScanAllMetricsParams

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

func NewGetLatestScheduledScanAllMetricsParamsWithHTTPClient

func NewGetLatestScheduledScanAllMetricsParamsWithHTTPClient(client *http.Client) *GetLatestScheduledScanAllMetricsParams

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

func NewGetLatestScheduledScanAllMetricsParamsWithTimeout

func NewGetLatestScheduledScanAllMetricsParamsWithTimeout(timeout time.Duration) *GetLatestScheduledScanAllMetricsParams

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

func (*GetLatestScheduledScanAllMetricsParams) SetContext

SetContext adds the context to the get latest scheduled scan all metrics params

func (*GetLatestScheduledScanAllMetricsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get latest scheduled scan all metrics params

func (*GetLatestScheduledScanAllMetricsParams) SetTimeout

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

SetTimeout adds the timeout to the get latest scheduled scan all metrics params

func (*GetLatestScheduledScanAllMetricsParams) SetXRequestID

func (o *GetLatestScheduledScanAllMetricsParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId to the get latest scheduled scan all metrics params

func (*GetLatestScheduledScanAllMetricsParams) WithContext

WithContext adds the context to the get latest scheduled scan all metrics params

func (*GetLatestScheduledScanAllMetricsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get latest scheduled scan all metrics params

func (*GetLatestScheduledScanAllMetricsParams) WithTimeout

WithTimeout adds the timeout to the get latest scheduled scan all metrics params

func (*GetLatestScheduledScanAllMetricsParams) WithXRequestID

WithXRequestID adds the xRequestID to the get latest scheduled scan all metrics params

func (*GetLatestScheduledScanAllMetricsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetLatestScheduledScanAllMetricsPreconditionFailed

type GetLatestScheduledScanAllMetricsPreconditionFailed struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

GetLatestScheduledScanAllMetricsPreconditionFailed handles this case with default header values.

Precondition failed

func NewGetLatestScheduledScanAllMetricsPreconditionFailed

func NewGetLatestScheduledScanAllMetricsPreconditionFailed() *GetLatestScheduledScanAllMetricsPreconditionFailed

NewGetLatestScheduledScanAllMetricsPreconditionFailed creates a GetLatestScheduledScanAllMetricsPreconditionFailed with default headers values

func (*GetLatestScheduledScanAllMetricsPreconditionFailed) Error

func (*GetLatestScheduledScanAllMetricsPreconditionFailed) GetPayload

type GetLatestScheduledScanAllMetricsReader

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

GetLatestScheduledScanAllMetricsReader is a Reader for the GetLatestScheduledScanAllMetrics structure.

func (*GetLatestScheduledScanAllMetricsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetLatestScheduledScanAllMetricsUnauthorized

type GetLatestScheduledScanAllMetricsUnauthorized struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

GetLatestScheduledScanAllMetricsUnauthorized handles this case with default header values.

Unauthorized

func NewGetLatestScheduledScanAllMetricsUnauthorized

func NewGetLatestScheduledScanAllMetricsUnauthorized() *GetLatestScheduledScanAllMetricsUnauthorized

NewGetLatestScheduledScanAllMetricsUnauthorized creates a GetLatestScheduledScanAllMetricsUnauthorized with default headers values

func (*GetLatestScheduledScanAllMetricsUnauthorized) Error

func (*GetLatestScheduledScanAllMetricsUnauthorized) GetPayload

type GetScanAllScheduleForbidden

type GetScanAllScheduleForbidden struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

GetScanAllScheduleForbidden handles this case with default header values.

Forbidden

func NewGetScanAllScheduleForbidden

func NewGetScanAllScheduleForbidden() *GetScanAllScheduleForbidden

NewGetScanAllScheduleForbidden creates a GetScanAllScheduleForbidden with default headers values

func (*GetScanAllScheduleForbidden) Error

func (*GetScanAllScheduleForbidden) GetPayload

func (o *GetScanAllScheduleForbidden) GetPayload() *model.Errors

type GetScanAllScheduleInternalServerError

type GetScanAllScheduleInternalServerError struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

GetScanAllScheduleInternalServerError handles this case with default header values.

Internal server error

func NewGetScanAllScheduleInternalServerError

func NewGetScanAllScheduleInternalServerError() *GetScanAllScheduleInternalServerError

NewGetScanAllScheduleInternalServerError creates a GetScanAllScheduleInternalServerError with default headers values

func (*GetScanAllScheduleInternalServerError) Error

func (*GetScanAllScheduleInternalServerError) GetPayload

type GetScanAllScheduleOK

type GetScanAllScheduleOK struct {
	Payload *model.Schedule
}

GetScanAllScheduleOK handles this case with default header values.

Get a schedule for the scan all job, which scans all of images in Harbor.

func NewGetScanAllScheduleOK

func NewGetScanAllScheduleOK() *GetScanAllScheduleOK

NewGetScanAllScheduleOK creates a GetScanAllScheduleOK with default headers values

func (*GetScanAllScheduleOK) Error

func (o *GetScanAllScheduleOK) Error() string

func (*GetScanAllScheduleOK) GetPayload

func (o *GetScanAllScheduleOK) GetPayload() *model.Schedule

type GetScanAllScheduleParams

type GetScanAllScheduleParams struct {

	/*XRequestID
	  An unique ID for the request

	*/
	XRequestID *string

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

GetScanAllScheduleParams contains all the parameters to send to the API endpoint for the get scan all schedule operation typically these are written to a http.Request

func NewGetScanAllScheduleParams

func NewGetScanAllScheduleParams() *GetScanAllScheduleParams

NewGetScanAllScheduleParams creates a new GetScanAllScheduleParams object with the default values initialized.

func NewGetScanAllScheduleParamsWithContext

func NewGetScanAllScheduleParamsWithContext(ctx context.Context) *GetScanAllScheduleParams

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

func NewGetScanAllScheduleParamsWithHTTPClient

func NewGetScanAllScheduleParamsWithHTTPClient(client *http.Client) *GetScanAllScheduleParams

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

func NewGetScanAllScheduleParamsWithTimeout

func NewGetScanAllScheduleParamsWithTimeout(timeout time.Duration) *GetScanAllScheduleParams

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

func (*GetScanAllScheduleParams) SetContext

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

SetContext adds the context to the get scan all schedule params

func (*GetScanAllScheduleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get scan all schedule params

func (*GetScanAllScheduleParams) SetTimeout

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

SetTimeout adds the timeout to the get scan all schedule params

func (*GetScanAllScheduleParams) SetXRequestID

func (o *GetScanAllScheduleParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId to the get scan all schedule params

func (*GetScanAllScheduleParams) WithContext

WithContext adds the context to the get scan all schedule params

func (*GetScanAllScheduleParams) WithHTTPClient

func (o *GetScanAllScheduleParams) WithHTTPClient(client *http.Client) *GetScanAllScheduleParams

WithHTTPClient adds the HTTPClient to the get scan all schedule params

func (*GetScanAllScheduleParams) WithTimeout

WithTimeout adds the timeout to the get scan all schedule params

func (*GetScanAllScheduleParams) WithXRequestID

func (o *GetScanAllScheduleParams) WithXRequestID(xRequestID *string) *GetScanAllScheduleParams

WithXRequestID adds the xRequestID to the get scan all schedule params

func (*GetScanAllScheduleParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetScanAllSchedulePreconditionFailed

type GetScanAllSchedulePreconditionFailed struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

GetScanAllSchedulePreconditionFailed handles this case with default header values.

Precondition failed

func NewGetScanAllSchedulePreconditionFailed

func NewGetScanAllSchedulePreconditionFailed() *GetScanAllSchedulePreconditionFailed

NewGetScanAllSchedulePreconditionFailed creates a GetScanAllSchedulePreconditionFailed with default headers values

func (*GetScanAllSchedulePreconditionFailed) Error

func (*GetScanAllSchedulePreconditionFailed) GetPayload

type GetScanAllScheduleReader

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

GetScanAllScheduleReader is a Reader for the GetScanAllSchedule structure.

func (*GetScanAllScheduleReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetScanAllScheduleUnauthorized

type GetScanAllScheduleUnauthorized struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

GetScanAllScheduleUnauthorized handles this case with default header values.

Unauthorized

func NewGetScanAllScheduleUnauthorized

func NewGetScanAllScheduleUnauthorized() *GetScanAllScheduleUnauthorized

NewGetScanAllScheduleUnauthorized creates a GetScanAllScheduleUnauthorized with default headers values

func (*GetScanAllScheduleUnauthorized) Error

func (*GetScanAllScheduleUnauthorized) GetPayload

func (o *GetScanAllScheduleUnauthorized) GetPayload() *model.Errors

type StopScanAllAccepted

type StopScanAllAccepted struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string
}

StopScanAllAccepted handles this case with default header values.

Accepted

func NewStopScanAllAccepted

func NewStopScanAllAccepted() *StopScanAllAccepted

NewStopScanAllAccepted creates a StopScanAllAccepted with default headers values

func (*StopScanAllAccepted) Error

func (o *StopScanAllAccepted) Error() string

type StopScanAllBadRequest

type StopScanAllBadRequest struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

StopScanAllBadRequest handles this case with default header values.

Bad request

func NewStopScanAllBadRequest

func NewStopScanAllBadRequest() *StopScanAllBadRequest

NewStopScanAllBadRequest creates a StopScanAllBadRequest with default headers values

func (*StopScanAllBadRequest) Error

func (o *StopScanAllBadRequest) Error() string

func (*StopScanAllBadRequest) GetPayload

func (o *StopScanAllBadRequest) GetPayload() *model.Errors

type StopScanAllForbidden

type StopScanAllForbidden struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

StopScanAllForbidden handles this case with default header values.

Forbidden

func NewStopScanAllForbidden

func NewStopScanAllForbidden() *StopScanAllForbidden

NewStopScanAllForbidden creates a StopScanAllForbidden with default headers values

func (*StopScanAllForbidden) Error

func (o *StopScanAllForbidden) Error() string

func (*StopScanAllForbidden) GetPayload

func (o *StopScanAllForbidden) GetPayload() *model.Errors

type StopScanAllInternalServerError

type StopScanAllInternalServerError struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

StopScanAllInternalServerError handles this case with default header values.

Internal server error

func NewStopScanAllInternalServerError

func NewStopScanAllInternalServerError() *StopScanAllInternalServerError

NewStopScanAllInternalServerError creates a StopScanAllInternalServerError with default headers values

func (*StopScanAllInternalServerError) Error

func (*StopScanAllInternalServerError) GetPayload

func (o *StopScanAllInternalServerError) GetPayload() *model.Errors

type StopScanAllParams

type StopScanAllParams struct {

	/*XRequestID
	  An unique ID for the request

	*/
	XRequestID *string

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

StopScanAllParams contains all the parameters to send to the API endpoint for the stop scan all operation typically these are written to a http.Request

func NewStopScanAllParams

func NewStopScanAllParams() *StopScanAllParams

NewStopScanAllParams creates a new StopScanAllParams object with the default values initialized.

func NewStopScanAllParamsWithContext

func NewStopScanAllParamsWithContext(ctx context.Context) *StopScanAllParams

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

func NewStopScanAllParamsWithHTTPClient

func NewStopScanAllParamsWithHTTPClient(client *http.Client) *StopScanAllParams

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

func NewStopScanAllParamsWithTimeout

func NewStopScanAllParamsWithTimeout(timeout time.Duration) *StopScanAllParams

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

func (*StopScanAllParams) SetContext

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

SetContext adds the context to the stop scan all params

func (*StopScanAllParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the stop scan all params

func (*StopScanAllParams) SetTimeout

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

SetTimeout adds the timeout to the stop scan all params

func (*StopScanAllParams) SetXRequestID

func (o *StopScanAllParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId to the stop scan all params

func (*StopScanAllParams) WithContext

func (o *StopScanAllParams) WithContext(ctx context.Context) *StopScanAllParams

WithContext adds the context to the stop scan all params

func (*StopScanAllParams) WithHTTPClient

func (o *StopScanAllParams) WithHTTPClient(client *http.Client) *StopScanAllParams

WithHTTPClient adds the HTTPClient to the stop scan all params

func (*StopScanAllParams) WithTimeout

func (o *StopScanAllParams) WithTimeout(timeout time.Duration) *StopScanAllParams

WithTimeout adds the timeout to the stop scan all params

func (*StopScanAllParams) WithXRequestID

func (o *StopScanAllParams) WithXRequestID(xRequestID *string) *StopScanAllParams

WithXRequestID adds the xRequestID to the stop scan all params

func (*StopScanAllParams) WriteToRequest

func (o *StopScanAllParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type StopScanAllReader

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

StopScanAllReader is a Reader for the StopScanAll structure.

func (*StopScanAllReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type StopScanAllUnauthorized

type StopScanAllUnauthorized struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

StopScanAllUnauthorized handles this case with default header values.

Unauthorized

func NewStopScanAllUnauthorized

func NewStopScanAllUnauthorized() *StopScanAllUnauthorized

NewStopScanAllUnauthorized creates a StopScanAllUnauthorized with default headers values

func (*StopScanAllUnauthorized) Error

func (o *StopScanAllUnauthorized) Error() string

func (*StopScanAllUnauthorized) GetPayload

func (o *StopScanAllUnauthorized) GetPayload() *model.Errors

type UpdateScanAllScheduleBadRequest

type UpdateScanAllScheduleBadRequest struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

UpdateScanAllScheduleBadRequest handles this case with default header values.

Bad request

func NewUpdateScanAllScheduleBadRequest

func NewUpdateScanAllScheduleBadRequest() *UpdateScanAllScheduleBadRequest

NewUpdateScanAllScheduleBadRequest creates a UpdateScanAllScheduleBadRequest with default headers values

func (*UpdateScanAllScheduleBadRequest) Error

func (*UpdateScanAllScheduleBadRequest) GetPayload

func (o *UpdateScanAllScheduleBadRequest) GetPayload() *model.Errors

type UpdateScanAllScheduleForbidden

type UpdateScanAllScheduleForbidden struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

UpdateScanAllScheduleForbidden handles this case with default header values.

Forbidden

func NewUpdateScanAllScheduleForbidden

func NewUpdateScanAllScheduleForbidden() *UpdateScanAllScheduleForbidden

NewUpdateScanAllScheduleForbidden creates a UpdateScanAllScheduleForbidden with default headers values

func (*UpdateScanAllScheduleForbidden) Error

func (*UpdateScanAllScheduleForbidden) GetPayload

func (o *UpdateScanAllScheduleForbidden) GetPayload() *model.Errors

type UpdateScanAllScheduleInternalServerError

type UpdateScanAllScheduleInternalServerError struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

UpdateScanAllScheduleInternalServerError handles this case with default header values.

Internal server error

func NewUpdateScanAllScheduleInternalServerError

func NewUpdateScanAllScheduleInternalServerError() *UpdateScanAllScheduleInternalServerError

NewUpdateScanAllScheduleInternalServerError creates a UpdateScanAllScheduleInternalServerError with default headers values

func (*UpdateScanAllScheduleInternalServerError) Error

func (*UpdateScanAllScheduleInternalServerError) GetPayload

type UpdateScanAllScheduleOK

type UpdateScanAllScheduleOK struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string
}

UpdateScanAllScheduleOK handles this case with default header values.

Success

func NewUpdateScanAllScheduleOK

func NewUpdateScanAllScheduleOK() *UpdateScanAllScheduleOK

NewUpdateScanAllScheduleOK creates a UpdateScanAllScheduleOK with default headers values

func (*UpdateScanAllScheduleOK) Error

func (o *UpdateScanAllScheduleOK) Error() string

type UpdateScanAllScheduleParams

type UpdateScanAllScheduleParams struct {

	/*XRequestID
	  An unique ID for the request

	*/
	XRequestID *string
	/*Schedule
	  Updates the schedule of scan all job, which scans all of images in Harbor.

	*/
	Schedule *model.Schedule

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

UpdateScanAllScheduleParams contains all the parameters to send to the API endpoint for the update scan all schedule operation typically these are written to a http.Request

func NewUpdateScanAllScheduleParams

func NewUpdateScanAllScheduleParams() *UpdateScanAllScheduleParams

NewUpdateScanAllScheduleParams creates a new UpdateScanAllScheduleParams object with the default values initialized.

func NewUpdateScanAllScheduleParamsWithContext

func NewUpdateScanAllScheduleParamsWithContext(ctx context.Context) *UpdateScanAllScheduleParams

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

func NewUpdateScanAllScheduleParamsWithHTTPClient

func NewUpdateScanAllScheduleParamsWithHTTPClient(client *http.Client) *UpdateScanAllScheduleParams

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

func NewUpdateScanAllScheduleParamsWithTimeout

func NewUpdateScanAllScheduleParamsWithTimeout(timeout time.Duration) *UpdateScanAllScheduleParams

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

func (*UpdateScanAllScheduleParams) SetContext

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

SetContext adds the context to the update scan all schedule params

func (*UpdateScanAllScheduleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update scan all schedule params

func (*UpdateScanAllScheduleParams) SetSchedule

func (o *UpdateScanAllScheduleParams) SetSchedule(schedule *model.Schedule)

SetSchedule adds the schedule to the update scan all schedule params

func (*UpdateScanAllScheduleParams) SetTimeout

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

SetTimeout adds the timeout to the update scan all schedule params

func (*UpdateScanAllScheduleParams) SetXRequestID

func (o *UpdateScanAllScheduleParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId to the update scan all schedule params

func (*UpdateScanAllScheduleParams) WithContext

WithContext adds the context to the update scan all schedule params

func (*UpdateScanAllScheduleParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the update scan all schedule params

func (*UpdateScanAllScheduleParams) WithSchedule

WithSchedule adds the schedule to the update scan all schedule params

func (*UpdateScanAllScheduleParams) WithTimeout

WithTimeout adds the timeout to the update scan all schedule params

func (*UpdateScanAllScheduleParams) WithXRequestID

func (o *UpdateScanAllScheduleParams) WithXRequestID(xRequestID *string) *UpdateScanAllScheduleParams

WithXRequestID adds the xRequestID to the update scan all schedule params

func (*UpdateScanAllScheduleParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateScanAllSchedulePreconditionFailed

type UpdateScanAllSchedulePreconditionFailed struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

UpdateScanAllSchedulePreconditionFailed handles this case with default header values.

Precondition failed

func NewUpdateScanAllSchedulePreconditionFailed

func NewUpdateScanAllSchedulePreconditionFailed() *UpdateScanAllSchedulePreconditionFailed

NewUpdateScanAllSchedulePreconditionFailed creates a UpdateScanAllSchedulePreconditionFailed with default headers values

func (*UpdateScanAllSchedulePreconditionFailed) Error

func (*UpdateScanAllSchedulePreconditionFailed) GetPayload

type UpdateScanAllScheduleReader

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

UpdateScanAllScheduleReader is a Reader for the UpdateScanAllSchedule structure.

func (*UpdateScanAllScheduleReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateScanAllScheduleUnauthorized

type UpdateScanAllScheduleUnauthorized struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

UpdateScanAllScheduleUnauthorized handles this case with default header values.

Unauthorized

func NewUpdateScanAllScheduleUnauthorized

func NewUpdateScanAllScheduleUnauthorized() *UpdateScanAllScheduleUnauthorized

NewUpdateScanAllScheduleUnauthorized creates a UpdateScanAllScheduleUnauthorized with default headers values

func (*UpdateScanAllScheduleUnauthorized) Error

func (*UpdateScanAllScheduleUnauthorized) GetPayload

Jump to

Keyboard shortcuts

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