Help us shape the future of Go! Take the 2026 Go Developer Survey

scans

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2025 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 scans API

func (*Client) CreateScan

func (a *Client) CreateScan(params *CreateScanParams, authInfo runtime.ClientAuthInfoWriter) (*CreateScanCreated, error)

CreateScan creates and triggers a new environment scan

Creates and triggers a new environment scan.

func (*Client) GetComplianceByResourceTypes

func (a *Client) GetComplianceByResourceTypes(params *GetComplianceByResourceTypesParams, authInfo runtime.ClientAuthInfoWriter) (*GetComplianceByResourceTypesOK, error)

GetComplianceByResourceTypes lists compliance results by resource type for a scan

Lists compliance results by resource type for a scan.

func (*Client) GetComplianceByRules

func (a *Client) GetComplianceByRules(params *GetComplianceByRulesParams, authInfo runtime.ClientAuthInfoWriter) (*GetComplianceByRulesOK, error)

GetComplianceByRules lists compliance results by rule for a scan

Lists compliance results by rule for a scan.

func (*Client) GetScan

func (a *Client) GetScan(params *GetScanParams, authInfo runtime.ClientAuthInfoWriter) (*GetScanOK, error)

GetScan retrieves details for a scan

Retrieves details for a scan.

func (*Client) ListScans

func (a *Client) ListScans(params *ListScansParams, authInfo runtime.ClientAuthInfoWriter) (*ListScansOK, error)

ListScans lists scans for an environment

Lists scans for an environment.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UploadRegulaScanView

func (a *Client) UploadRegulaScanView(params *UploadRegulaScanViewParams, authInfo runtime.ClientAuthInfoWriter) (*UploadRegulaScanViewOK, error)

UploadRegulaScanView uploads a regula produced scan view for an environment and scan

Uploads a regula-produced scan view for an environment and scan.

type ClientService

type ClientService interface {
	CreateScan(params *CreateScanParams, authInfo runtime.ClientAuthInfoWriter) (*CreateScanCreated, error)

	GetComplianceByResourceTypes(params *GetComplianceByResourceTypesParams, authInfo runtime.ClientAuthInfoWriter) (*GetComplianceByResourceTypesOK, error)

	GetComplianceByRules(params *GetComplianceByRulesParams, authInfo runtime.ClientAuthInfoWriter) (*GetComplianceByRulesOK, error)

	GetScan(params *GetScanParams, authInfo runtime.ClientAuthInfoWriter) (*GetScanOK, error)

	ListScans(params *ListScansParams, authInfo runtime.ClientAuthInfoWriter) (*ListScansOK, error)

	UploadRegulaScanView(params *UploadRegulaScanViewParams, authInfo runtime.ClientAuthInfoWriter) (*UploadRegulaScanViewOK, 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 scans API client.

type CreateScanBadRequest

type CreateScanBadRequest struct {
	Payload *models.BadRequestError
}

CreateScanBadRequest handles this case with default header values.

BadRequestError

func NewCreateScanBadRequest

func NewCreateScanBadRequest() *CreateScanBadRequest

NewCreateScanBadRequest creates a CreateScanBadRequest with default headers values

func (*CreateScanBadRequest) Error

func (o *CreateScanBadRequest) Error() string

func (*CreateScanBadRequest) GetPayload

func (o *CreateScanBadRequest) GetPayload() *models.BadRequestError

type CreateScanCreated

type CreateScanCreated struct {
	Payload *models.Scan
}

CreateScanCreated handles this case with default header values.

Scan details.

func NewCreateScanCreated

func NewCreateScanCreated() *CreateScanCreated

NewCreateScanCreated creates a CreateScanCreated with default headers values

func (*CreateScanCreated) Error

func (o *CreateScanCreated) Error() string

func (*CreateScanCreated) GetPayload

func (o *CreateScanCreated) GetPayload() *models.Scan

type CreateScanForbidden

type CreateScanForbidden struct {
	Payload *models.AuthorizationError
}

CreateScanForbidden handles this case with default header values.

AuthorizationError

func NewCreateScanForbidden

func NewCreateScanForbidden() *CreateScanForbidden

NewCreateScanForbidden creates a CreateScanForbidden with default headers values

func (*CreateScanForbidden) Error

func (o *CreateScanForbidden) Error() string

func (*CreateScanForbidden) GetPayload

type CreateScanInternalServerError

type CreateScanInternalServerError struct {
	Payload *models.InternalServerError
}

CreateScanInternalServerError handles this case with default header values.

InternalServerError

func NewCreateScanInternalServerError

func NewCreateScanInternalServerError() *CreateScanInternalServerError

NewCreateScanInternalServerError creates a CreateScanInternalServerError with default headers values

func (*CreateScanInternalServerError) Error

func (*CreateScanInternalServerError) GetPayload

type CreateScanParams

type CreateScanParams struct {

	/*EnvironmentID
	  ID of the environment to scan.

	*/
	EnvironmentID string

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

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

func NewCreateScanParams

func NewCreateScanParams() *CreateScanParams

NewCreateScanParams creates a new CreateScanParams object with the default values initialized.

func NewCreateScanParamsWithContext

func NewCreateScanParamsWithContext(ctx context.Context) *CreateScanParams

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

func NewCreateScanParamsWithHTTPClient

func NewCreateScanParamsWithHTTPClient(client *http.Client) *CreateScanParams

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

func NewCreateScanParamsWithTimeout

func NewCreateScanParamsWithTimeout(timeout time.Duration) *CreateScanParams

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

func (*CreateScanParams) SetContext

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

SetContext adds the context to the create scan params

func (*CreateScanParams) SetEnvironmentID

func (o *CreateScanParams) SetEnvironmentID(environmentID string)

SetEnvironmentID adds the environmentId to the create scan params

func (*CreateScanParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create scan params

func (*CreateScanParams) SetTimeout

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

SetTimeout adds the timeout to the create scan params

func (*CreateScanParams) WithContext

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

WithContext adds the context to the create scan params

func (*CreateScanParams) WithEnvironmentID

func (o *CreateScanParams) WithEnvironmentID(environmentID string) *CreateScanParams

WithEnvironmentID adds the environmentID to the create scan params

func (*CreateScanParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create scan params

func (*CreateScanParams) WithTimeout

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

WithTimeout adds the timeout to the create scan params

func (*CreateScanParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CreateScanReader

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

CreateScanReader is a Reader for the CreateScan structure.

func (*CreateScanReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CreateScanUnauthorized

type CreateScanUnauthorized struct {
	Payload *models.AuthenticationError
}

CreateScanUnauthorized handles this case with default header values.

AuthenticationError

func NewCreateScanUnauthorized

func NewCreateScanUnauthorized() *CreateScanUnauthorized

NewCreateScanUnauthorized creates a CreateScanUnauthorized with default headers values

func (*CreateScanUnauthorized) Error

func (o *CreateScanUnauthorized) Error() string

func (*CreateScanUnauthorized) GetPayload

type GetComplianceByResourceTypesBadRequest

type GetComplianceByResourceTypesBadRequest struct {
	Payload *models.BadRequestError
}

GetComplianceByResourceTypesBadRequest handles this case with default header values.

BadRequestError

func NewGetComplianceByResourceTypesBadRequest

func NewGetComplianceByResourceTypesBadRequest() *GetComplianceByResourceTypesBadRequest

NewGetComplianceByResourceTypesBadRequest creates a GetComplianceByResourceTypesBadRequest with default headers values

func (*GetComplianceByResourceTypesBadRequest) Error

func (*GetComplianceByResourceTypesBadRequest) GetPayload

type GetComplianceByResourceTypesForbidden

type GetComplianceByResourceTypesForbidden struct {
	Payload *models.AuthorizationError
}

GetComplianceByResourceTypesForbidden handles this case with default header values.

AuthorizationError

func NewGetComplianceByResourceTypesForbidden

func NewGetComplianceByResourceTypesForbidden() *GetComplianceByResourceTypesForbidden

NewGetComplianceByResourceTypesForbidden creates a GetComplianceByResourceTypesForbidden with default headers values

func (*GetComplianceByResourceTypesForbidden) Error

func (*GetComplianceByResourceTypesForbidden) GetPayload

type GetComplianceByResourceTypesInternalServerError

type GetComplianceByResourceTypesInternalServerError struct {
	Payload *models.InternalServerError
}

GetComplianceByResourceTypesInternalServerError handles this case with default header values.

InternalServerError

func NewGetComplianceByResourceTypesInternalServerError

func NewGetComplianceByResourceTypesInternalServerError() *GetComplianceByResourceTypesInternalServerError

NewGetComplianceByResourceTypesInternalServerError creates a GetComplianceByResourceTypesInternalServerError with default headers values

func (*GetComplianceByResourceTypesInternalServerError) Error

func (*GetComplianceByResourceTypesInternalServerError) GetPayload

type GetComplianceByResourceTypesNotFound

type GetComplianceByResourceTypesNotFound struct {
	Payload *models.NotFoundError
}

GetComplianceByResourceTypesNotFound handles this case with default header values.

NotFoundError

func NewGetComplianceByResourceTypesNotFound

func NewGetComplianceByResourceTypesNotFound() *GetComplianceByResourceTypesNotFound

NewGetComplianceByResourceTypesNotFound creates a GetComplianceByResourceTypesNotFound with default headers values

func (*GetComplianceByResourceTypesNotFound) Error

func (*GetComplianceByResourceTypesNotFound) GetPayload

type GetComplianceByResourceTypesOK

type GetComplianceByResourceTypesOK struct {
	Payload *models.ComplianceByResourceTypeOutput
}

GetComplianceByResourceTypesOK handles this case with default header values.

List of compliance results from a scan grouped by resource type.

func NewGetComplianceByResourceTypesOK

func NewGetComplianceByResourceTypesOK() *GetComplianceByResourceTypesOK

NewGetComplianceByResourceTypesOK creates a GetComplianceByResourceTypesOK with default headers values

func (*GetComplianceByResourceTypesOK) Error

func (*GetComplianceByResourceTypesOK) GetPayload

type GetComplianceByResourceTypesParams

type GetComplianceByResourceTypesParams struct {

	/*Family
	  Compliance family to filter by. When not specified, all compliance families will be returned.

	*/
	Family []string
	/*MaxItems
	  Maximum number of items to return.

	*/
	MaxItems *int64
	/*Offset
	  Number of items to skip before returning. This parameter is used when the number of items spans multiple pages.

	*/
	Offset *int64
	/*ResourceType
	  Resource types to filter by. When not specified, all resource types will be returned.

	*/
	ResourceType []string
	/*ScanID
	  Scan ID.

	*/
	ScanID string

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

GetComplianceByResourceTypesParams contains all the parameters to send to the API endpoint for the get compliance by resource types operation typically these are written to a http.Request

func NewGetComplianceByResourceTypesParams

func NewGetComplianceByResourceTypesParams() *GetComplianceByResourceTypesParams

NewGetComplianceByResourceTypesParams creates a new GetComplianceByResourceTypesParams object with the default values initialized.

func NewGetComplianceByResourceTypesParamsWithContext

func NewGetComplianceByResourceTypesParamsWithContext(ctx context.Context) *GetComplianceByResourceTypesParams

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

func NewGetComplianceByResourceTypesParamsWithHTTPClient

func NewGetComplianceByResourceTypesParamsWithHTTPClient(client *http.Client) *GetComplianceByResourceTypesParams

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

func NewGetComplianceByResourceTypesParamsWithTimeout

func NewGetComplianceByResourceTypesParamsWithTimeout(timeout time.Duration) *GetComplianceByResourceTypesParams

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

func (*GetComplianceByResourceTypesParams) SetContext

SetContext adds the context to the get compliance by resource types params

func (*GetComplianceByResourceTypesParams) SetFamily

func (o *GetComplianceByResourceTypesParams) SetFamily(family []string)

SetFamily adds the family to the get compliance by resource types params

func (*GetComplianceByResourceTypesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get compliance by resource types params

func (*GetComplianceByResourceTypesParams) SetMaxItems

func (o *GetComplianceByResourceTypesParams) SetMaxItems(maxItems *int64)

SetMaxItems adds the maxItems to the get compliance by resource types params

func (*GetComplianceByResourceTypesParams) SetOffset

func (o *GetComplianceByResourceTypesParams) SetOffset(offset *int64)

SetOffset adds the offset to the get compliance by resource types params

func (*GetComplianceByResourceTypesParams) SetResourceType

func (o *GetComplianceByResourceTypesParams) SetResourceType(resourceType []string)

SetResourceType adds the resourceType to the get compliance by resource types params

func (*GetComplianceByResourceTypesParams) SetScanID

func (o *GetComplianceByResourceTypesParams) SetScanID(scanID string)

SetScanID adds the scanId to the get compliance by resource types params

func (*GetComplianceByResourceTypesParams) SetTimeout

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

SetTimeout adds the timeout to the get compliance by resource types params

func (*GetComplianceByResourceTypesParams) WithContext

WithContext adds the context to the get compliance by resource types params

func (*GetComplianceByResourceTypesParams) WithFamily

WithFamily adds the family to the get compliance by resource types params

func (*GetComplianceByResourceTypesParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get compliance by resource types params

func (*GetComplianceByResourceTypesParams) WithMaxItems

WithMaxItems adds the maxItems to the get compliance by resource types params

func (*GetComplianceByResourceTypesParams) WithOffset

WithOffset adds the offset to the get compliance by resource types params

func (*GetComplianceByResourceTypesParams) WithResourceType

WithResourceType adds the resourceType to the get compliance by resource types params

func (*GetComplianceByResourceTypesParams) WithScanID

WithScanID adds the scanID to the get compliance by resource types params

func (*GetComplianceByResourceTypesParams) WithTimeout

WithTimeout adds the timeout to the get compliance by resource types params

func (*GetComplianceByResourceTypesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetComplianceByResourceTypesReader

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

GetComplianceByResourceTypesReader is a Reader for the GetComplianceByResourceTypes structure.

func (*GetComplianceByResourceTypesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetComplianceByResourceTypesUnauthorized

type GetComplianceByResourceTypesUnauthorized struct {
	Payload *models.AuthenticationError
}

GetComplianceByResourceTypesUnauthorized handles this case with default header values.

AuthenticationError

func NewGetComplianceByResourceTypesUnauthorized

func NewGetComplianceByResourceTypesUnauthorized() *GetComplianceByResourceTypesUnauthorized

NewGetComplianceByResourceTypesUnauthorized creates a GetComplianceByResourceTypesUnauthorized with default headers values

func (*GetComplianceByResourceTypesUnauthorized) Error

func (*GetComplianceByResourceTypesUnauthorized) GetPayload

type GetComplianceByRulesBadRequest

type GetComplianceByRulesBadRequest struct {
	Payload *models.BadRequestError
}

GetComplianceByRulesBadRequest handles this case with default header values.

BadRequestError

func NewGetComplianceByRulesBadRequest

func NewGetComplianceByRulesBadRequest() *GetComplianceByRulesBadRequest

NewGetComplianceByRulesBadRequest creates a GetComplianceByRulesBadRequest with default headers values

func (*GetComplianceByRulesBadRequest) Error

func (*GetComplianceByRulesBadRequest) GetPayload

type GetComplianceByRulesForbidden

type GetComplianceByRulesForbidden struct {
	Payload *models.AuthorizationError
}

GetComplianceByRulesForbidden handles this case with default header values.

AuthorizationError

func NewGetComplianceByRulesForbidden

func NewGetComplianceByRulesForbidden() *GetComplianceByRulesForbidden

NewGetComplianceByRulesForbidden creates a GetComplianceByRulesForbidden with default headers values

func (*GetComplianceByRulesForbidden) Error

func (*GetComplianceByRulesForbidden) GetPayload

type GetComplianceByRulesInternalServerError

type GetComplianceByRulesInternalServerError struct {
	Payload *models.InternalServerError
}

GetComplianceByRulesInternalServerError handles this case with default header values.

InternalServerError

func NewGetComplianceByRulesInternalServerError

func NewGetComplianceByRulesInternalServerError() *GetComplianceByRulesInternalServerError

NewGetComplianceByRulesInternalServerError creates a GetComplianceByRulesInternalServerError with default headers values

func (*GetComplianceByRulesInternalServerError) Error

func (*GetComplianceByRulesInternalServerError) GetPayload

type GetComplianceByRulesNotFound

type GetComplianceByRulesNotFound struct {
	Payload *models.NotFoundError
}

GetComplianceByRulesNotFound handles this case with default header values.

NotFoundError

func NewGetComplianceByRulesNotFound

func NewGetComplianceByRulesNotFound() *GetComplianceByRulesNotFound

NewGetComplianceByRulesNotFound creates a GetComplianceByRulesNotFound with default headers values

func (*GetComplianceByRulesNotFound) Error

func (*GetComplianceByRulesNotFound) GetPayload

type GetComplianceByRulesOK

type GetComplianceByRulesOK struct {
	Payload *models.ComplianceByRules
}

GetComplianceByRulesOK handles this case with default header values.

List of compliance results from a scan grouped by rule.

func NewGetComplianceByRulesOK

func NewGetComplianceByRulesOK() *GetComplianceByRulesOK

NewGetComplianceByRulesOK creates a GetComplianceByRulesOK with default headers values

func (*GetComplianceByRulesOK) Error

func (o *GetComplianceByRulesOK) Error() string

func (*GetComplianceByRulesOK) GetPayload

type GetComplianceByRulesParams

type GetComplianceByRulesParams struct {

	/*Family
	  Compliance family to filter by. When not specified, all compliance families will be returned.

	*/
	Family []string
	/*MaxItems
	  Maximum number of items to return.

	*/
	MaxItems *int64
	/*Offset
	  Number of items to skip before returning. This parameter is used when the number of items spans multiple pages.

	*/
	Offset *int64
	/*Result
	  Rule result to filter by. When not specified, all results will be returned.

	*/
	Result []string
	/*ScanID
	  Scan ID.

	*/
	ScanID string

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

GetComplianceByRulesParams contains all the parameters to send to the API endpoint for the get compliance by rules operation typically these are written to a http.Request

func NewGetComplianceByRulesParams

func NewGetComplianceByRulesParams() *GetComplianceByRulesParams

NewGetComplianceByRulesParams creates a new GetComplianceByRulesParams object with the default values initialized.

func NewGetComplianceByRulesParamsWithContext

func NewGetComplianceByRulesParamsWithContext(ctx context.Context) *GetComplianceByRulesParams

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

func NewGetComplianceByRulesParamsWithHTTPClient

func NewGetComplianceByRulesParamsWithHTTPClient(client *http.Client) *GetComplianceByRulesParams

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

func NewGetComplianceByRulesParamsWithTimeout

func NewGetComplianceByRulesParamsWithTimeout(timeout time.Duration) *GetComplianceByRulesParams

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

func (*GetComplianceByRulesParams) SetContext

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

SetContext adds the context to the get compliance by rules params

func (*GetComplianceByRulesParams) SetFamily

func (o *GetComplianceByRulesParams) SetFamily(family []string)

SetFamily adds the family to the get compliance by rules params

func (*GetComplianceByRulesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get compliance by rules params

func (*GetComplianceByRulesParams) SetMaxItems

func (o *GetComplianceByRulesParams) SetMaxItems(maxItems *int64)

SetMaxItems adds the maxItems to the get compliance by rules params

func (*GetComplianceByRulesParams) SetOffset

func (o *GetComplianceByRulesParams) SetOffset(offset *int64)

SetOffset adds the offset to the get compliance by rules params

func (*GetComplianceByRulesParams) SetResult

func (o *GetComplianceByRulesParams) SetResult(result []string)

SetResult adds the result to the get compliance by rules params

func (*GetComplianceByRulesParams) SetScanID

func (o *GetComplianceByRulesParams) SetScanID(scanID string)

SetScanID adds the scanId to the get compliance by rules params

func (*GetComplianceByRulesParams) SetTimeout

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

SetTimeout adds the timeout to the get compliance by rules params

func (*GetComplianceByRulesParams) WithContext

WithContext adds the context to the get compliance by rules params

func (*GetComplianceByRulesParams) WithFamily

WithFamily adds the family to the get compliance by rules params

func (*GetComplianceByRulesParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get compliance by rules params

func (*GetComplianceByRulesParams) WithMaxItems

func (o *GetComplianceByRulesParams) WithMaxItems(maxItems *int64) *GetComplianceByRulesParams

WithMaxItems adds the maxItems to the get compliance by rules params

func (*GetComplianceByRulesParams) WithOffset

WithOffset adds the offset to the get compliance by rules params

func (*GetComplianceByRulesParams) WithResult

WithResult adds the result to the get compliance by rules params

func (*GetComplianceByRulesParams) WithScanID

WithScanID adds the scanID to the get compliance by rules params

func (*GetComplianceByRulesParams) WithTimeout

WithTimeout adds the timeout to the get compliance by rules params

func (*GetComplianceByRulesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetComplianceByRulesReader

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

GetComplianceByRulesReader is a Reader for the GetComplianceByRules structure.

func (*GetComplianceByRulesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetComplianceByRulesUnauthorized

type GetComplianceByRulesUnauthorized struct {
	Payload *models.AuthenticationError
}

GetComplianceByRulesUnauthorized handles this case with default header values.

AuthenticationError

func NewGetComplianceByRulesUnauthorized

func NewGetComplianceByRulesUnauthorized() *GetComplianceByRulesUnauthorized

NewGetComplianceByRulesUnauthorized creates a GetComplianceByRulesUnauthorized with default headers values

func (*GetComplianceByRulesUnauthorized) Error

func (*GetComplianceByRulesUnauthorized) GetPayload

type GetScanBadRequest

type GetScanBadRequest struct {
	Payload *models.BadRequestError
}

GetScanBadRequest handles this case with default header values.

BadRequestError

func NewGetScanBadRequest

func NewGetScanBadRequest() *GetScanBadRequest

NewGetScanBadRequest creates a GetScanBadRequest with default headers values

func (*GetScanBadRequest) Error

func (o *GetScanBadRequest) Error() string

func (*GetScanBadRequest) GetPayload

func (o *GetScanBadRequest) GetPayload() *models.BadRequestError

type GetScanForbidden

type GetScanForbidden struct {
	Payload *models.AuthorizationError
}

GetScanForbidden handles this case with default header values.

AuthorizationError

func NewGetScanForbidden

func NewGetScanForbidden() *GetScanForbidden

NewGetScanForbidden creates a GetScanForbidden with default headers values

func (*GetScanForbidden) Error

func (o *GetScanForbidden) Error() string

func (*GetScanForbidden) GetPayload

func (o *GetScanForbidden) GetPayload() *models.AuthorizationError

type GetScanInternalServerError

type GetScanInternalServerError struct {
	Payload *models.InternalServerError
}

GetScanInternalServerError handles this case with default header values.

InternalServerError

func NewGetScanInternalServerError

func NewGetScanInternalServerError() *GetScanInternalServerError

NewGetScanInternalServerError creates a GetScanInternalServerError with default headers values

func (*GetScanInternalServerError) Error

func (*GetScanInternalServerError) GetPayload

type GetScanNotFound

type GetScanNotFound struct {
	Payload *models.NotFoundError
}

GetScanNotFound handles this case with default header values.

NotFoundError

func NewGetScanNotFound

func NewGetScanNotFound() *GetScanNotFound

NewGetScanNotFound creates a GetScanNotFound with default headers values

func (*GetScanNotFound) Error

func (o *GetScanNotFound) Error() string

func (*GetScanNotFound) GetPayload

func (o *GetScanNotFound) GetPayload() *models.NotFoundError

type GetScanOK

type GetScanOK struct {
	Payload *models.ScanWithSummary
}

GetScanOK handles this case with default header values.

Scan details.

func NewGetScanOK

func NewGetScanOK() *GetScanOK

NewGetScanOK creates a GetScanOK with default headers values

func (*GetScanOK) Error

func (o *GetScanOK) Error() string

func (*GetScanOK) GetPayload

func (o *GetScanOK) GetPayload() *models.ScanWithSummary

type GetScanParams

type GetScanParams struct {

	/*ScanID
	  Scan ID.

	*/
	ScanID string

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

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

func NewGetScanParams

func NewGetScanParams() *GetScanParams

NewGetScanParams creates a new GetScanParams object with the default values initialized.

func NewGetScanParamsWithContext

func NewGetScanParamsWithContext(ctx context.Context) *GetScanParams

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

func NewGetScanParamsWithHTTPClient

func NewGetScanParamsWithHTTPClient(client *http.Client) *GetScanParams

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

func NewGetScanParamsWithTimeout

func NewGetScanParamsWithTimeout(timeout time.Duration) *GetScanParams

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

func (*GetScanParams) SetContext

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

SetContext adds the context to the get scan params

func (*GetScanParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get scan params

func (*GetScanParams) SetScanID

func (o *GetScanParams) SetScanID(scanID string)

SetScanID adds the scanId to the get scan params

func (*GetScanParams) SetTimeout

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

SetTimeout adds the timeout to the get scan params

func (*GetScanParams) WithContext

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

WithContext adds the context to the get scan params

func (*GetScanParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get scan params

func (*GetScanParams) WithScanID

func (o *GetScanParams) WithScanID(scanID string) *GetScanParams

WithScanID adds the scanID to the get scan params

func (*GetScanParams) WithTimeout

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

WithTimeout adds the timeout to the get scan params

func (*GetScanParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetScanReader

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

GetScanReader is a Reader for the GetScan structure.

func (*GetScanReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetScanUnauthorized

type GetScanUnauthorized struct {
	Payload *models.AuthenticationError
}

GetScanUnauthorized handles this case with default header values.

AuthenticationError

func NewGetScanUnauthorized

func NewGetScanUnauthorized() *GetScanUnauthorized

NewGetScanUnauthorized creates a GetScanUnauthorized with default headers values

func (*GetScanUnauthorized) Error

func (o *GetScanUnauthorized) Error() string

func (*GetScanUnauthorized) GetPayload

type ListScansBadRequest

type ListScansBadRequest struct {
	Payload *models.BadRequestError
}

ListScansBadRequest handles this case with default header values.

BadRequestError

func NewListScansBadRequest

func NewListScansBadRequest() *ListScansBadRequest

NewListScansBadRequest creates a ListScansBadRequest with default headers values

func (*ListScansBadRequest) Error

func (o *ListScansBadRequest) Error() string

func (*ListScansBadRequest) GetPayload

func (o *ListScansBadRequest) GetPayload() *models.BadRequestError

type ListScansForbidden

type ListScansForbidden struct {
	Payload *models.AuthorizationError
}

ListScansForbidden handles this case with default header values.

AuthorizationError

func NewListScansForbidden

func NewListScansForbidden() *ListScansForbidden

NewListScansForbidden creates a ListScansForbidden with default headers values

func (*ListScansForbidden) Error

func (o *ListScansForbidden) Error() string

func (*ListScansForbidden) GetPayload

func (o *ListScansForbidden) GetPayload() *models.AuthorizationError

type ListScansInternalServerError

type ListScansInternalServerError struct {
	Payload *models.InternalServerError
}

ListScansInternalServerError handles this case with default header values.

InternalServerError

func NewListScansInternalServerError

func NewListScansInternalServerError() *ListScansInternalServerError

NewListScansInternalServerError creates a ListScansInternalServerError with default headers values

func (*ListScansInternalServerError) Error

func (*ListScansInternalServerError) GetPayload

type ListScansOK

type ListScansOK struct {
	Payload *models.Scans
}

ListScansOK handles this case with default header values.

List of scans.

func NewListScansOK

func NewListScansOK() *ListScansOK

NewListScansOK creates a ListScansOK with default headers values

func (*ListScansOK) Error

func (o *ListScansOK) Error() string

func (*ListScansOK) GetPayload

func (o *ListScansOK) GetPayload() *models.Scans

type ListScansParams

type ListScansParams struct {

	/*EnvironmentID
	  ID of the environment to retrieve scans for.

	*/
	EnvironmentID string
	/*MaxItems
	  Maximum number of items to return.

	*/
	MaxItems *int64
	/*Offset
	  Number of items to skip before returning. This parameter is used when the number of items spans multiple pages.

	*/
	Offset *int64
	/*OrderBy
	  Field to sort the items by.

	*/
	OrderBy *string
	/*OrderDirection
	  Direction to sort the items in.

	*/
	OrderDirection *string
	/*RangeFrom
	  Earliest created_at time to return scans from.

	*/
	RangeFrom *int64
	/*RangeTo
	  Latest created_at time to return scans from.

	*/
	RangeTo *int64
	/*Status
	  Status to filter by. When not specified, all statuses will be returned.

	*/
	Status []string

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

ListScansParams contains all the parameters to send to the API endpoint for the list scans operation typically these are written to a http.Request

func NewListScansParams

func NewListScansParams() *ListScansParams

NewListScansParams creates a new ListScansParams object with the default values initialized.

func NewListScansParamsWithContext

func NewListScansParamsWithContext(ctx context.Context) *ListScansParams

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

func NewListScansParamsWithHTTPClient

func NewListScansParamsWithHTTPClient(client *http.Client) *ListScansParams

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

func NewListScansParamsWithTimeout

func NewListScansParamsWithTimeout(timeout time.Duration) *ListScansParams

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

func (*ListScansParams) SetContext

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

SetContext adds the context to the list scans params

func (*ListScansParams) SetEnvironmentID

func (o *ListScansParams) SetEnvironmentID(environmentID string)

SetEnvironmentID adds the environmentId to the list scans params

func (*ListScansParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list scans params

func (*ListScansParams) SetMaxItems

func (o *ListScansParams) SetMaxItems(maxItems *int64)

SetMaxItems adds the maxItems to the list scans params

func (*ListScansParams) SetOffset

func (o *ListScansParams) SetOffset(offset *int64)

SetOffset adds the offset to the list scans params

func (*ListScansParams) SetOrderBy

func (o *ListScansParams) SetOrderBy(orderBy *string)

SetOrderBy adds the orderBy to the list scans params

func (*ListScansParams) SetOrderDirection

func (o *ListScansParams) SetOrderDirection(orderDirection *string)

SetOrderDirection adds the orderDirection to the list scans params

func (*ListScansParams) SetRangeFrom

func (o *ListScansParams) SetRangeFrom(rangeFrom *int64)

SetRangeFrom adds the rangeFrom to the list scans params

func (*ListScansParams) SetRangeTo

func (o *ListScansParams) SetRangeTo(rangeTo *int64)

SetRangeTo adds the rangeTo to the list scans params

func (*ListScansParams) SetStatus

func (o *ListScansParams) SetStatus(status []string)

SetStatus adds the status to the list scans params

func (*ListScansParams) SetTimeout

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

SetTimeout adds the timeout to the list scans params

func (*ListScansParams) WithContext

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

WithContext adds the context to the list scans params

func (*ListScansParams) WithEnvironmentID

func (o *ListScansParams) WithEnvironmentID(environmentID string) *ListScansParams

WithEnvironmentID adds the environmentID to the list scans params

func (*ListScansParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list scans params

func (*ListScansParams) WithMaxItems

func (o *ListScansParams) WithMaxItems(maxItems *int64) *ListScansParams

WithMaxItems adds the maxItems to the list scans params

func (*ListScansParams) WithOffset

func (o *ListScansParams) WithOffset(offset *int64) *ListScansParams

WithOffset adds the offset to the list scans params

func (*ListScansParams) WithOrderBy

func (o *ListScansParams) WithOrderBy(orderBy *string) *ListScansParams

WithOrderBy adds the orderBy to the list scans params

func (*ListScansParams) WithOrderDirection

func (o *ListScansParams) WithOrderDirection(orderDirection *string) *ListScansParams

WithOrderDirection adds the orderDirection to the list scans params

func (*ListScansParams) WithRangeFrom

func (o *ListScansParams) WithRangeFrom(rangeFrom *int64) *ListScansParams

WithRangeFrom adds the rangeFrom to the list scans params

func (*ListScansParams) WithRangeTo

func (o *ListScansParams) WithRangeTo(rangeTo *int64) *ListScansParams

WithRangeTo adds the rangeTo to the list scans params

func (*ListScansParams) WithStatus

func (o *ListScansParams) WithStatus(status []string) *ListScansParams

WithStatus adds the status to the list scans params

func (*ListScansParams) WithTimeout

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

WithTimeout adds the timeout to the list scans params

func (*ListScansParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ListScansReader

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

ListScansReader is a Reader for the ListScans structure.

func (*ListScansReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListScansUnauthorized

type ListScansUnauthorized struct {
	Payload *models.AuthenticationError
}

ListScansUnauthorized handles this case with default header values.

AuthenticationError

func NewListScansUnauthorized

func NewListScansUnauthorized() *ListScansUnauthorized

NewListScansUnauthorized creates a ListScansUnauthorized with default headers values

func (*ListScansUnauthorized) Error

func (o *ListScansUnauthorized) Error() string

func (*ListScansUnauthorized) GetPayload

type UploadRegulaScanViewBadRequest

type UploadRegulaScanViewBadRequest struct {
	Payload *models.BadRequestError
}

UploadRegulaScanViewBadRequest handles this case with default header values.

BadRequestError

func NewUploadRegulaScanViewBadRequest

func NewUploadRegulaScanViewBadRequest() *UploadRegulaScanViewBadRequest

NewUploadRegulaScanViewBadRequest creates a UploadRegulaScanViewBadRequest with default headers values

func (*UploadRegulaScanViewBadRequest) Error

func (*UploadRegulaScanViewBadRequest) GetPayload

type UploadRegulaScanViewForbidden

type UploadRegulaScanViewForbidden struct {
	Payload *models.AuthorizationError
}

UploadRegulaScanViewForbidden handles this case with default header values.

AuthorizationError

func NewUploadRegulaScanViewForbidden

func NewUploadRegulaScanViewForbidden() *UploadRegulaScanViewForbidden

NewUploadRegulaScanViewForbidden creates a UploadRegulaScanViewForbidden with default headers values

func (*UploadRegulaScanViewForbidden) Error

func (*UploadRegulaScanViewForbidden) GetPayload

type UploadRegulaScanViewInternalServerError

type UploadRegulaScanViewInternalServerError struct {
	Payload *models.InternalServerError
}

UploadRegulaScanViewInternalServerError handles this case with default header values.

InternalServerError

func NewUploadRegulaScanViewInternalServerError

func NewUploadRegulaScanViewInternalServerError() *UploadRegulaScanViewInternalServerError

NewUploadRegulaScanViewInternalServerError creates a UploadRegulaScanViewInternalServerError with default headers values

func (*UploadRegulaScanViewInternalServerError) Error

func (*UploadRegulaScanViewInternalServerError) GetPayload

type UploadRegulaScanViewNotFound

type UploadRegulaScanViewNotFound struct {
	Payload *models.NotFoundError
}

UploadRegulaScanViewNotFound handles this case with default header values.

NotFoundError

func NewUploadRegulaScanViewNotFound

func NewUploadRegulaScanViewNotFound() *UploadRegulaScanViewNotFound

NewUploadRegulaScanViewNotFound creates a UploadRegulaScanViewNotFound with default headers values

func (*UploadRegulaScanViewNotFound) Error

func (*UploadRegulaScanViewNotFound) GetPayload

type UploadRegulaScanViewOK

type UploadRegulaScanViewOK struct {
	Payload *models.UploadRegulaScanViewOutput
}

UploadRegulaScanViewOK handles this case with default header values.

A location to upload the regula scan view.

func NewUploadRegulaScanViewOK

func NewUploadRegulaScanViewOK() *UploadRegulaScanViewOK

NewUploadRegulaScanViewOK creates a UploadRegulaScanViewOK with default headers values

func (*UploadRegulaScanViewOK) Error

func (o *UploadRegulaScanViewOK) Error() string

func (*UploadRegulaScanViewOK) GetPayload

type UploadRegulaScanViewParams

type UploadRegulaScanViewParams struct {

	/*ScanID
	  The ID of the started scan

	*/
	ScanID string

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

UploadRegulaScanViewParams contains all the parameters to send to the API endpoint for the upload regula scan view operation typically these are written to a http.Request

func NewUploadRegulaScanViewParams

func NewUploadRegulaScanViewParams() *UploadRegulaScanViewParams

NewUploadRegulaScanViewParams creates a new UploadRegulaScanViewParams object with the default values initialized.

func NewUploadRegulaScanViewParamsWithContext

func NewUploadRegulaScanViewParamsWithContext(ctx context.Context) *UploadRegulaScanViewParams

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

func NewUploadRegulaScanViewParamsWithHTTPClient

func NewUploadRegulaScanViewParamsWithHTTPClient(client *http.Client) *UploadRegulaScanViewParams

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

func NewUploadRegulaScanViewParamsWithTimeout

func NewUploadRegulaScanViewParamsWithTimeout(timeout time.Duration) *UploadRegulaScanViewParams

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

func (*UploadRegulaScanViewParams) SetContext

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

SetContext adds the context to the upload regula scan view params

func (*UploadRegulaScanViewParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the upload regula scan view params

func (*UploadRegulaScanViewParams) SetScanID

func (o *UploadRegulaScanViewParams) SetScanID(scanID string)

SetScanID adds the scanId to the upload regula scan view params

func (*UploadRegulaScanViewParams) SetTimeout

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

SetTimeout adds the timeout to the upload regula scan view params

func (*UploadRegulaScanViewParams) WithContext

WithContext adds the context to the upload regula scan view params

func (*UploadRegulaScanViewParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the upload regula scan view params

func (*UploadRegulaScanViewParams) WithScanID

WithScanID adds the scanID to the upload regula scan view params

func (*UploadRegulaScanViewParams) WithTimeout

WithTimeout adds the timeout to the upload regula scan view params

func (*UploadRegulaScanViewParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UploadRegulaScanViewReader

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

UploadRegulaScanViewReader is a Reader for the UploadRegulaScanView structure.

func (*UploadRegulaScanViewReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UploadRegulaScanViewUnauthorized

type UploadRegulaScanViewUnauthorized struct {
	Payload *models.AuthenticationError
}

UploadRegulaScanViewUnauthorized handles this case with default header values.

AuthenticationError

func NewUploadRegulaScanViewUnauthorized

func NewUploadRegulaScanViewUnauthorized() *UploadRegulaScanViewUnauthorized

NewUploadRegulaScanViewUnauthorized creates a UploadRegulaScanViewUnauthorized with default headers values

func (*UploadRegulaScanViewUnauthorized) Error

func (*UploadRegulaScanViewUnauthorized) GetPayload

Jump to

Keyboard shortcuts

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