rule_bundles

package
v3.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2023 License: Apache-2.0 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 rule bundles API

func (*Client) GetLatestRuleBundle

func (a *Client) GetLatestRuleBundle(params *GetLatestRuleBundleParams, authInfo runtime.ClientAuthInfoWriter, writer io.Writer) (*GetLatestRuleBundleOK, error)

GetLatestRuleBundle retrieves ia c rule bundles

Retrieves IaC rule bundles, ready to be used by Regula.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	GetLatestRuleBundle(params *GetLatestRuleBundleParams, authInfo runtime.ClientAuthInfoWriter, writer io.Writer) (*GetLatestRuleBundleOK, 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 rule bundles API client.

type GetLatestRuleBundleBadRequest

type GetLatestRuleBundleBadRequest struct {
	Payload *models.BadRequestError
}

GetLatestRuleBundleBadRequest handles this case with default header values.

BadRequestError

func NewGetLatestRuleBundleBadRequest

func NewGetLatestRuleBundleBadRequest() *GetLatestRuleBundleBadRequest

NewGetLatestRuleBundleBadRequest creates a GetLatestRuleBundleBadRequest with default headers values

func (*GetLatestRuleBundleBadRequest) Error

func (*GetLatestRuleBundleBadRequest) GetPayload

type GetLatestRuleBundleForbidden

type GetLatestRuleBundleForbidden struct {
	Payload *models.AuthorizationError
}

GetLatestRuleBundleForbidden handles this case with default header values.

AuthorizationError

func NewGetLatestRuleBundleForbidden

func NewGetLatestRuleBundleForbidden() *GetLatestRuleBundleForbidden

NewGetLatestRuleBundleForbidden creates a GetLatestRuleBundleForbidden with default headers values

func (*GetLatestRuleBundleForbidden) Error

func (*GetLatestRuleBundleForbidden) GetPayload

type GetLatestRuleBundleInternalServerError

type GetLatestRuleBundleInternalServerError struct {
	Payload *models.InternalServerError
}

GetLatestRuleBundleInternalServerError handles this case with default header values.

InternalServerError

func NewGetLatestRuleBundleInternalServerError

func NewGetLatestRuleBundleInternalServerError() *GetLatestRuleBundleInternalServerError

NewGetLatestRuleBundleInternalServerError creates a GetLatestRuleBundleInternalServerError with default headers values

func (*GetLatestRuleBundleInternalServerError) Error

func (*GetLatestRuleBundleInternalServerError) GetPayload

type GetLatestRuleBundleNotFound

type GetLatestRuleBundleNotFound struct {
	Payload *models.NotFoundError
}

GetLatestRuleBundleNotFound handles this case with default header values.

NotFoundError

func NewGetLatestRuleBundleNotFound

func NewGetLatestRuleBundleNotFound() *GetLatestRuleBundleNotFound

NewGetLatestRuleBundleNotFound creates a GetLatestRuleBundleNotFound with default headers values

func (*GetLatestRuleBundleNotFound) Error

func (*GetLatestRuleBundleNotFound) GetPayload

type GetLatestRuleBundleNotModified

type GetLatestRuleBundleNotModified struct {
	Payload models.NotModifiedResponse
}

GetLatestRuleBundleNotModified handles this case with default header values.

NotModified

func NewGetLatestRuleBundleNotModified

func NewGetLatestRuleBundleNotModified() *GetLatestRuleBundleNotModified

NewGetLatestRuleBundleNotModified creates a GetLatestRuleBundleNotModified with default headers values

func (*GetLatestRuleBundleNotModified) Error

func (*GetLatestRuleBundleNotModified) GetPayload

type GetLatestRuleBundleOK

type GetLatestRuleBundleOK struct {
	Payload io.Writer
}

GetLatestRuleBundleOK handles this case with default header values.

Rule bundle.

func NewGetLatestRuleBundleOK

func NewGetLatestRuleBundleOK(writer io.Writer) *GetLatestRuleBundleOK

NewGetLatestRuleBundleOK creates a GetLatestRuleBundleOK with default headers values

func (*GetLatestRuleBundleOK) Error

func (o *GetLatestRuleBundleOK) Error() string

func (*GetLatestRuleBundleOK) GetPayload

func (o *GetLatestRuleBundleOK) GetPayload() io.Writer

type GetLatestRuleBundleParams

type GetLatestRuleBundleParams struct {

	/*IfNoneMatch
	  SHA1 of the currently downloaded rule bundle.

	*/
	IfNoneMatch *string
	/*RegulaVersion
	  Client regula version.

	*/
	RegulaVersion string

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

GetLatestRuleBundleParams contains all the parameters to send to the API endpoint for the get latest rule bundle operation typically these are written to a http.Request

func NewGetLatestRuleBundleParams

func NewGetLatestRuleBundleParams() *GetLatestRuleBundleParams

NewGetLatestRuleBundleParams creates a new GetLatestRuleBundleParams object with the default values initialized.

func NewGetLatestRuleBundleParamsWithContext

func NewGetLatestRuleBundleParamsWithContext(ctx context.Context) *GetLatestRuleBundleParams

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

func NewGetLatestRuleBundleParamsWithHTTPClient

func NewGetLatestRuleBundleParamsWithHTTPClient(client *http.Client) *GetLatestRuleBundleParams

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

func NewGetLatestRuleBundleParamsWithTimeout

func NewGetLatestRuleBundleParamsWithTimeout(timeout time.Duration) *GetLatestRuleBundleParams

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

func (*GetLatestRuleBundleParams) SetContext

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

SetContext adds the context to the get latest rule bundle params

func (*GetLatestRuleBundleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get latest rule bundle params

func (*GetLatestRuleBundleParams) SetIfNoneMatch

func (o *GetLatestRuleBundleParams) SetIfNoneMatch(ifNoneMatch *string)

SetIfNoneMatch adds the ifNoneMatch to the get latest rule bundle params

func (*GetLatestRuleBundleParams) SetRegulaVersion

func (o *GetLatestRuleBundleParams) SetRegulaVersion(regulaVersion string)

SetRegulaVersion adds the regulaVersion to the get latest rule bundle params

func (*GetLatestRuleBundleParams) SetTimeout

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

SetTimeout adds the timeout to the get latest rule bundle params

func (*GetLatestRuleBundleParams) WithContext

WithContext adds the context to the get latest rule bundle params

func (*GetLatestRuleBundleParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get latest rule bundle params

func (*GetLatestRuleBundleParams) WithIfNoneMatch

func (o *GetLatestRuleBundleParams) WithIfNoneMatch(ifNoneMatch *string) *GetLatestRuleBundleParams

WithIfNoneMatch adds the ifNoneMatch to the get latest rule bundle params

func (*GetLatestRuleBundleParams) WithRegulaVersion

func (o *GetLatestRuleBundleParams) WithRegulaVersion(regulaVersion string) *GetLatestRuleBundleParams

WithRegulaVersion adds the regulaVersion to the get latest rule bundle params

func (*GetLatestRuleBundleParams) WithTimeout

WithTimeout adds the timeout to the get latest rule bundle params

func (*GetLatestRuleBundleParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetLatestRuleBundleReader

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

GetLatestRuleBundleReader is a Reader for the GetLatestRuleBundle structure.

func (*GetLatestRuleBundleReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetLatestRuleBundleUnauthorized

type GetLatestRuleBundleUnauthorized struct {
	Payload *models.AuthenticationError
}

GetLatestRuleBundleUnauthorized handles this case with default header values.

AuthenticationError

func NewGetLatestRuleBundleUnauthorized

func NewGetLatestRuleBundleUnauthorized() *GetLatestRuleBundleUnauthorized

NewGetLatestRuleBundleUnauthorized creates a GetLatestRuleBundleUnauthorized with default headers values

func (*GetLatestRuleBundleUnauthorized) Error

func (*GetLatestRuleBundleUnauthorized) GetPayload

Jump to

Keyboard shortcuts

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