Documentation
¶
Index ¶
- type Client
- func (a *Client) OptionsRules(params *OptionsRulesParams) (*OptionsRulesOK, error)
- func (a *Client) OptionsRulesRuleID(params *OptionsRulesRuleIDParams) (*OptionsRulesRuleIDOK, error)
- func (a *Client) OptionsRulesValidatorV1EnvironmentID(params *OptionsRulesValidatorV1EnvironmentIDParams) (*OptionsRulesValidatorV1EnvironmentIDOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type OptionsRulesOK
- type OptionsRulesParams
- func (o *OptionsRulesParams) SetContext(ctx context.Context)
- func (o *OptionsRulesParams) SetHTTPClient(client *http.Client)
- func (o *OptionsRulesParams) SetTimeout(timeout time.Duration)
- func (o *OptionsRulesParams) WithContext(ctx context.Context) *OptionsRulesParams
- func (o *OptionsRulesParams) WithHTTPClient(client *http.Client) *OptionsRulesParams
- func (o *OptionsRulesParams) WithTimeout(timeout time.Duration) *OptionsRulesParams
- func (o *OptionsRulesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type OptionsRulesReader
- type OptionsRulesRuleIDOK
- type OptionsRulesRuleIDParams
- func NewOptionsRulesRuleIDParams() *OptionsRulesRuleIDParams
- func NewOptionsRulesRuleIDParamsWithContext(ctx context.Context) *OptionsRulesRuleIDParams
- func NewOptionsRulesRuleIDParamsWithHTTPClient(client *http.Client) *OptionsRulesRuleIDParams
- func NewOptionsRulesRuleIDParamsWithTimeout(timeout time.Duration) *OptionsRulesRuleIDParams
- func (o *OptionsRulesRuleIDParams) SetContext(ctx context.Context)
- func (o *OptionsRulesRuleIDParams) SetHTTPClient(client *http.Client)
- func (o *OptionsRulesRuleIDParams) SetRuleID(ruleID string)
- func (o *OptionsRulesRuleIDParams) SetTimeout(timeout time.Duration)
- func (o *OptionsRulesRuleIDParams) WithContext(ctx context.Context) *OptionsRulesRuleIDParams
- func (o *OptionsRulesRuleIDParams) WithHTTPClient(client *http.Client) *OptionsRulesRuleIDParams
- func (o *OptionsRulesRuleIDParams) WithRuleID(ruleID string) *OptionsRulesRuleIDParams
- func (o *OptionsRulesRuleIDParams) WithTimeout(timeout time.Duration) *OptionsRulesRuleIDParams
- func (o *OptionsRulesRuleIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type OptionsRulesRuleIDReader
- type OptionsRulesValidatorV1EnvironmentIDOK
- type OptionsRulesValidatorV1EnvironmentIDParams
- func NewOptionsRulesValidatorV1EnvironmentIDParams() *OptionsRulesValidatorV1EnvironmentIDParams
- func NewOptionsRulesValidatorV1EnvironmentIDParamsWithContext(ctx context.Context) *OptionsRulesValidatorV1EnvironmentIDParams
- func NewOptionsRulesValidatorV1EnvironmentIDParamsWithHTTPClient(client *http.Client) *OptionsRulesValidatorV1EnvironmentIDParams
- func NewOptionsRulesValidatorV1EnvironmentIDParamsWithTimeout(timeout time.Duration) *OptionsRulesValidatorV1EnvironmentIDParams
- func (o *OptionsRulesValidatorV1EnvironmentIDParams) SetContext(ctx context.Context)
- func (o *OptionsRulesValidatorV1EnvironmentIDParams) SetEnvironmentID(environmentID string)
- func (o *OptionsRulesValidatorV1EnvironmentIDParams) SetHTTPClient(client *http.Client)
- func (o *OptionsRulesValidatorV1EnvironmentIDParams) SetTimeout(timeout time.Duration)
- func (o *OptionsRulesValidatorV1EnvironmentIDParams) WithContext(ctx context.Context) *OptionsRulesValidatorV1EnvironmentIDParams
- func (o *OptionsRulesValidatorV1EnvironmentIDParams) WithEnvironmentID(environmentID string) *OptionsRulesValidatorV1EnvironmentIDParams
- func (o *OptionsRulesValidatorV1EnvironmentIDParams) WithHTTPClient(client *http.Client) *OptionsRulesValidatorV1EnvironmentIDParams
- func (o *OptionsRulesValidatorV1EnvironmentIDParams) WithTimeout(timeout time.Duration) *OptionsRulesValidatorV1EnvironmentIDParams
- func (o *OptionsRulesValidatorV1EnvironmentIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type OptionsRulesValidatorV1EnvironmentIDReader
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 c o r s API
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client
New creates a new c o r s API client.
func (*Client) OptionsRules ¶
func (a *Client) OptionsRules(params *OptionsRulesParams) (*OptionsRulesOK, error)
OptionsRules cs o r s support
Enable CORS by returning correct headers.
func (*Client) OptionsRulesRuleID ¶
func (a *Client) OptionsRulesRuleID(params *OptionsRulesRuleIDParams) (*OptionsRulesRuleIDOK, error)
OptionsRulesRuleID cs o r s support
Enable CORS by returning correct headers.
func (*Client) OptionsRulesValidatorV1EnvironmentID ¶
func (a *Client) OptionsRulesValidatorV1EnvironmentID(params *OptionsRulesValidatorV1EnvironmentIDParams) (*OptionsRulesValidatorV1EnvironmentIDOK, error)
OptionsRulesValidatorV1EnvironmentID cs o r s support
Enable CORS by returning correct headers.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type OptionsRulesOK ¶
type OptionsRulesOK struct { AccessControlAllowHeaders string AccessControlAllowMethods string AccessControlAllowOrigin string }
OptionsRulesOK handles this case with default header values.
Default response for CORS method
func NewOptionsRulesOK ¶
func NewOptionsRulesOK() *OptionsRulesOK
NewOptionsRulesOK creates a OptionsRulesOK with default headers values
func (*OptionsRulesOK) Error ¶
func (o *OptionsRulesOK) Error() string
type OptionsRulesParams ¶
type OptionsRulesParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
OptionsRulesParams contains all the parameters to send to the API endpoint for the options rules operation typically these are written to a http.Request
func NewOptionsRulesParams ¶
func NewOptionsRulesParams() *OptionsRulesParams
NewOptionsRulesParams creates a new OptionsRulesParams object with the default values initialized.
func NewOptionsRulesParamsWithContext ¶
func NewOptionsRulesParamsWithContext(ctx context.Context) *OptionsRulesParams
NewOptionsRulesParamsWithContext creates a new OptionsRulesParams object with the default values initialized, and the ability to set a context for a request
func NewOptionsRulesParamsWithHTTPClient ¶
func NewOptionsRulesParamsWithHTTPClient(client *http.Client) *OptionsRulesParams
NewOptionsRulesParamsWithHTTPClient creates a new OptionsRulesParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewOptionsRulesParamsWithTimeout ¶
func NewOptionsRulesParamsWithTimeout(timeout time.Duration) *OptionsRulesParams
NewOptionsRulesParamsWithTimeout creates a new OptionsRulesParams object with the default values initialized, and the ability to set a timeout on a request
func (*OptionsRulesParams) SetContext ¶
func (o *OptionsRulesParams) SetContext(ctx context.Context)
SetContext adds the context to the options rules params
func (*OptionsRulesParams) SetHTTPClient ¶
func (o *OptionsRulesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the options rules params
func (*OptionsRulesParams) SetTimeout ¶
func (o *OptionsRulesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the options rules params
func (*OptionsRulesParams) WithContext ¶
func (o *OptionsRulesParams) WithContext(ctx context.Context) *OptionsRulesParams
WithContext adds the context to the options rules params
func (*OptionsRulesParams) WithHTTPClient ¶
func (o *OptionsRulesParams) WithHTTPClient(client *http.Client) *OptionsRulesParams
WithHTTPClient adds the HTTPClient to the options rules params
func (*OptionsRulesParams) WithTimeout ¶
func (o *OptionsRulesParams) WithTimeout(timeout time.Duration) *OptionsRulesParams
WithTimeout adds the timeout to the options rules params
func (*OptionsRulesParams) WriteToRequest ¶
func (o *OptionsRulesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type OptionsRulesReader ¶
type OptionsRulesReader struct {
// contains filtered or unexported fields
}
OptionsRulesReader is a Reader for the OptionsRules structure.
func (*OptionsRulesReader) ReadResponse ¶
func (o *OptionsRulesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type OptionsRulesRuleIDOK ¶
type OptionsRulesRuleIDOK struct { AccessControlAllowHeaders string AccessControlAllowMethods string AccessControlAllowOrigin string }
OptionsRulesRuleIDOK handles this case with default header values.
Default response for CORS method
func NewOptionsRulesRuleIDOK ¶
func NewOptionsRulesRuleIDOK() *OptionsRulesRuleIDOK
NewOptionsRulesRuleIDOK creates a OptionsRulesRuleIDOK with default headers values
func (*OptionsRulesRuleIDOK) Error ¶
func (o *OptionsRulesRuleIDOK) Error() string
type OptionsRulesRuleIDParams ¶
type OptionsRulesRuleIDParams struct { /*RuleID ID of the rule */ RuleID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
OptionsRulesRuleIDParams contains all the parameters to send to the API endpoint for the options rules rule ID operation typically these are written to a http.Request
func NewOptionsRulesRuleIDParams ¶
func NewOptionsRulesRuleIDParams() *OptionsRulesRuleIDParams
NewOptionsRulesRuleIDParams creates a new OptionsRulesRuleIDParams object with the default values initialized.
func NewOptionsRulesRuleIDParamsWithContext ¶
func NewOptionsRulesRuleIDParamsWithContext(ctx context.Context) *OptionsRulesRuleIDParams
NewOptionsRulesRuleIDParamsWithContext creates a new OptionsRulesRuleIDParams object with the default values initialized, and the ability to set a context for a request
func NewOptionsRulesRuleIDParamsWithHTTPClient ¶
func NewOptionsRulesRuleIDParamsWithHTTPClient(client *http.Client) *OptionsRulesRuleIDParams
NewOptionsRulesRuleIDParamsWithHTTPClient creates a new OptionsRulesRuleIDParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewOptionsRulesRuleIDParamsWithTimeout ¶
func NewOptionsRulesRuleIDParamsWithTimeout(timeout time.Duration) *OptionsRulesRuleIDParams
NewOptionsRulesRuleIDParamsWithTimeout creates a new OptionsRulesRuleIDParams object with the default values initialized, and the ability to set a timeout on a request
func (*OptionsRulesRuleIDParams) SetContext ¶
func (o *OptionsRulesRuleIDParams) SetContext(ctx context.Context)
SetContext adds the context to the options rules rule ID params
func (*OptionsRulesRuleIDParams) SetHTTPClient ¶
func (o *OptionsRulesRuleIDParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the options rules rule ID params
func (*OptionsRulesRuleIDParams) SetRuleID ¶
func (o *OptionsRulesRuleIDParams) SetRuleID(ruleID string)
SetRuleID adds the ruleId to the options rules rule ID params
func (*OptionsRulesRuleIDParams) SetTimeout ¶
func (o *OptionsRulesRuleIDParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the options rules rule ID params
func (*OptionsRulesRuleIDParams) WithContext ¶
func (o *OptionsRulesRuleIDParams) WithContext(ctx context.Context) *OptionsRulesRuleIDParams
WithContext adds the context to the options rules rule ID params
func (*OptionsRulesRuleIDParams) WithHTTPClient ¶
func (o *OptionsRulesRuleIDParams) WithHTTPClient(client *http.Client) *OptionsRulesRuleIDParams
WithHTTPClient adds the HTTPClient to the options rules rule ID params
func (*OptionsRulesRuleIDParams) WithRuleID ¶
func (o *OptionsRulesRuleIDParams) WithRuleID(ruleID string) *OptionsRulesRuleIDParams
WithRuleID adds the ruleID to the options rules rule ID params
func (*OptionsRulesRuleIDParams) WithTimeout ¶
func (o *OptionsRulesRuleIDParams) WithTimeout(timeout time.Duration) *OptionsRulesRuleIDParams
WithTimeout adds the timeout to the options rules rule ID params
func (*OptionsRulesRuleIDParams) WriteToRequest ¶
func (o *OptionsRulesRuleIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type OptionsRulesRuleIDReader ¶
type OptionsRulesRuleIDReader struct {
// contains filtered or unexported fields
}
OptionsRulesRuleIDReader is a Reader for the OptionsRulesRuleID structure.
func (*OptionsRulesRuleIDReader) ReadResponse ¶
func (o *OptionsRulesRuleIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type OptionsRulesValidatorV1EnvironmentIDOK ¶
type OptionsRulesValidatorV1EnvironmentIDOK struct { AccessControlAllowHeaders string AccessControlAllowMethods string AccessControlAllowOrigin string }
OptionsRulesValidatorV1EnvironmentIDOK handles this case with default header values.
Default response for CORS method
func NewOptionsRulesValidatorV1EnvironmentIDOK ¶
func NewOptionsRulesValidatorV1EnvironmentIDOK() *OptionsRulesValidatorV1EnvironmentIDOK
NewOptionsRulesValidatorV1EnvironmentIDOK creates a OptionsRulesValidatorV1EnvironmentIDOK with default headers values
func (*OptionsRulesValidatorV1EnvironmentIDOK) Error ¶
func (o *OptionsRulesValidatorV1EnvironmentIDOK) Error() string
type OptionsRulesValidatorV1EnvironmentIDParams ¶
type OptionsRulesValidatorV1EnvironmentIDParams struct { /*EnvironmentID The id of the environment against which to validate the rule. */ EnvironmentID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
OptionsRulesValidatorV1EnvironmentIDParams contains all the parameters to send to the API endpoint for the options rules validator v1 environment ID operation typically these are written to a http.Request
func NewOptionsRulesValidatorV1EnvironmentIDParams ¶
func NewOptionsRulesValidatorV1EnvironmentIDParams() *OptionsRulesValidatorV1EnvironmentIDParams
NewOptionsRulesValidatorV1EnvironmentIDParams creates a new OptionsRulesValidatorV1EnvironmentIDParams object with the default values initialized.
func NewOptionsRulesValidatorV1EnvironmentIDParamsWithContext ¶
func NewOptionsRulesValidatorV1EnvironmentIDParamsWithContext(ctx context.Context) *OptionsRulesValidatorV1EnvironmentIDParams
NewOptionsRulesValidatorV1EnvironmentIDParamsWithContext creates a new OptionsRulesValidatorV1EnvironmentIDParams object with the default values initialized, and the ability to set a context for a request
func NewOptionsRulesValidatorV1EnvironmentIDParamsWithHTTPClient ¶
func NewOptionsRulesValidatorV1EnvironmentIDParamsWithHTTPClient(client *http.Client) *OptionsRulesValidatorV1EnvironmentIDParams
NewOptionsRulesValidatorV1EnvironmentIDParamsWithHTTPClient creates a new OptionsRulesValidatorV1EnvironmentIDParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewOptionsRulesValidatorV1EnvironmentIDParamsWithTimeout ¶
func NewOptionsRulesValidatorV1EnvironmentIDParamsWithTimeout(timeout time.Duration) *OptionsRulesValidatorV1EnvironmentIDParams
NewOptionsRulesValidatorV1EnvironmentIDParamsWithTimeout creates a new OptionsRulesValidatorV1EnvironmentIDParams object with the default values initialized, and the ability to set a timeout on a request
func (*OptionsRulesValidatorV1EnvironmentIDParams) SetContext ¶
func (o *OptionsRulesValidatorV1EnvironmentIDParams) SetContext(ctx context.Context)
SetContext adds the context to the options rules validator v1 environment ID params
func (*OptionsRulesValidatorV1EnvironmentIDParams) SetEnvironmentID ¶
func (o *OptionsRulesValidatorV1EnvironmentIDParams) SetEnvironmentID(environmentID string)
SetEnvironmentID adds the environmentId to the options rules validator v1 environment ID params
func (*OptionsRulesValidatorV1EnvironmentIDParams) SetHTTPClient ¶
func (o *OptionsRulesValidatorV1EnvironmentIDParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the options rules validator v1 environment ID params
func (*OptionsRulesValidatorV1EnvironmentIDParams) SetTimeout ¶
func (o *OptionsRulesValidatorV1EnvironmentIDParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the options rules validator v1 environment ID params
func (*OptionsRulesValidatorV1EnvironmentIDParams) WithContext ¶
func (o *OptionsRulesValidatorV1EnvironmentIDParams) WithContext(ctx context.Context) *OptionsRulesValidatorV1EnvironmentIDParams
WithContext adds the context to the options rules validator v1 environment ID params
func (*OptionsRulesValidatorV1EnvironmentIDParams) WithEnvironmentID ¶
func (o *OptionsRulesValidatorV1EnvironmentIDParams) WithEnvironmentID(environmentID string) *OptionsRulesValidatorV1EnvironmentIDParams
WithEnvironmentID adds the environmentID to the options rules validator v1 environment ID params
func (*OptionsRulesValidatorV1EnvironmentIDParams) WithHTTPClient ¶
func (o *OptionsRulesValidatorV1EnvironmentIDParams) WithHTTPClient(client *http.Client) *OptionsRulesValidatorV1EnvironmentIDParams
WithHTTPClient adds the HTTPClient to the options rules validator v1 environment ID params
func (*OptionsRulesValidatorV1EnvironmentIDParams) WithTimeout ¶
func (o *OptionsRulesValidatorV1EnvironmentIDParams) WithTimeout(timeout time.Duration) *OptionsRulesValidatorV1EnvironmentIDParams
WithTimeout adds the timeout to the options rules validator v1 environment ID params
func (*OptionsRulesValidatorV1EnvironmentIDParams) WriteToRequest ¶
func (o *OptionsRulesValidatorV1EnvironmentIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type OptionsRulesValidatorV1EnvironmentIDReader ¶
type OptionsRulesValidatorV1EnvironmentIDReader struct {
// contains filtered or unexported fields
}
OptionsRulesValidatorV1EnvironmentIDReader is a Reader for the OptionsRulesValidatorV1EnvironmentID structure.
func (*OptionsRulesValidatorV1EnvironmentIDReader) ReadResponse ¶
func (o *OptionsRulesValidatorV1EnvironmentIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.