Documentation
¶
Index ¶
- type Client
- type ClientService
- type GetLatestRuleBundleBadRequest
- type GetLatestRuleBundleForbidden
- type GetLatestRuleBundleInternalServerError
- type GetLatestRuleBundleNotFound
- type GetLatestRuleBundleNotModified
- type GetLatestRuleBundleOK
- type GetLatestRuleBundleParams
- func NewGetLatestRuleBundleParams() *GetLatestRuleBundleParams
- func NewGetLatestRuleBundleParamsWithContext(ctx context.Context) *GetLatestRuleBundleParams
- func NewGetLatestRuleBundleParamsWithHTTPClient(client *http.Client) *GetLatestRuleBundleParams
- func NewGetLatestRuleBundleParamsWithTimeout(timeout time.Duration) *GetLatestRuleBundleParams
- func (o *GetLatestRuleBundleParams) SetContext(ctx context.Context)
- func (o *GetLatestRuleBundleParams) SetHTTPClient(client *http.Client)
- func (o *GetLatestRuleBundleParams) SetIfNoneMatch(ifNoneMatch *string)
- func (o *GetLatestRuleBundleParams) SetRegulaVersion(regulaVersion string)
- func (o *GetLatestRuleBundleParams) SetTimeout(timeout time.Duration)
- func (o *GetLatestRuleBundleParams) WithContext(ctx context.Context) *GetLatestRuleBundleParams
- func (o *GetLatestRuleBundleParams) WithHTTPClient(client *http.Client) *GetLatestRuleBundleParams
- func (o *GetLatestRuleBundleParams) WithIfNoneMatch(ifNoneMatch *string) *GetLatestRuleBundleParams
- func (o *GetLatestRuleBundleParams) WithRegulaVersion(regulaVersion string) *GetLatestRuleBundleParams
- func (o *GetLatestRuleBundleParams) WithTimeout(timeout time.Duration) *GetLatestRuleBundleParams
- func (o *GetLatestRuleBundleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetLatestRuleBundleReader
- type GetLatestRuleBundleUnauthorized
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 (o *GetLatestRuleBundleBadRequest) Error() string
func (*GetLatestRuleBundleBadRequest) GetPayload ¶
func (o *GetLatestRuleBundleBadRequest) GetPayload() *models.BadRequestError
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 (o *GetLatestRuleBundleForbidden) Error() string
func (*GetLatestRuleBundleForbidden) GetPayload ¶
func (o *GetLatestRuleBundleForbidden) GetPayload() *models.AuthorizationError
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 (o *GetLatestRuleBundleInternalServerError) Error() string
func (*GetLatestRuleBundleInternalServerError) GetPayload ¶
func (o *GetLatestRuleBundleInternalServerError) GetPayload() *models.InternalServerError
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 (o *GetLatestRuleBundleNotFound) Error() string
func (*GetLatestRuleBundleNotFound) GetPayload ¶
func (o *GetLatestRuleBundleNotFound) GetPayload() *models.NotFoundError
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 (o *GetLatestRuleBundleNotModified) Error() string
func (*GetLatestRuleBundleNotModified) GetPayload ¶
func (o *GetLatestRuleBundleNotModified) GetPayload() models.NotModifiedResponse
type GetLatestRuleBundleOK ¶
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 ¶
func (o *GetLatestRuleBundleParams) WithContext(ctx context.Context) *GetLatestRuleBundleParams
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 ¶
func (o *GetLatestRuleBundleParams) WithTimeout(timeout time.Duration) *GetLatestRuleBundleParams
WithTimeout adds the timeout to the get latest rule bundle params
func (*GetLatestRuleBundleParams) WriteToRequest ¶
func (o *GetLatestRuleBundleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 {
}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 (o *GetLatestRuleBundleUnauthorized) Error() string
func (*GetLatestRuleBundleUnauthorized) GetPayload ¶
func (o *GetLatestRuleBundleUnauthorized) GetPayload() *models.AuthenticationError