Documentation ¶
Index ¶
- type Client
- func (a *Client) OptionsRules(params *OptionsRulesParams) (*OptionsRulesOK, error)
- func (a *Client) OptionsRulesRuleID(params *OptionsRulesRuleIDParams) (*OptionsRulesRuleIDOK, error)
- func (a *Client) OptionsRulesTest(params *OptionsRulesTestParams) (*OptionsRulesTestOK, error)
- func (a *Client) OptionsRulesTestInput(params *OptionsRulesTestInputParams) (*OptionsRulesTestInputOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientService
- 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 OptionsRulesTestInputOK
- type OptionsRulesTestInputParams
- func NewOptionsRulesTestInputParams() *OptionsRulesTestInputParams
- func NewOptionsRulesTestInputParamsWithContext(ctx context.Context) *OptionsRulesTestInputParams
- func NewOptionsRulesTestInputParamsWithHTTPClient(client *http.Client) *OptionsRulesTestInputParams
- func NewOptionsRulesTestInputParamsWithTimeout(timeout time.Duration) *OptionsRulesTestInputParams
- func (o *OptionsRulesTestInputParams) SetContext(ctx context.Context)
- func (o *OptionsRulesTestInputParams) SetHTTPClient(client *http.Client)
- func (o *OptionsRulesTestInputParams) SetTimeout(timeout time.Duration)
- func (o *OptionsRulesTestInputParams) WithContext(ctx context.Context) *OptionsRulesTestInputParams
- func (o *OptionsRulesTestInputParams) WithHTTPClient(client *http.Client) *OptionsRulesTestInputParams
- func (o *OptionsRulesTestInputParams) WithTimeout(timeout time.Duration) *OptionsRulesTestInputParams
- func (o *OptionsRulesTestInputParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type OptionsRulesTestInputReader
- type OptionsRulesTestOK
- type OptionsRulesTestParams
- func NewOptionsRulesTestParams() *OptionsRulesTestParams
- func NewOptionsRulesTestParamsWithContext(ctx context.Context) *OptionsRulesTestParams
- func NewOptionsRulesTestParamsWithHTTPClient(client *http.Client) *OptionsRulesTestParams
- func NewOptionsRulesTestParamsWithTimeout(timeout time.Duration) *OptionsRulesTestParams
- func (o *OptionsRulesTestParams) SetContext(ctx context.Context)
- func (o *OptionsRulesTestParams) SetHTTPClient(client *http.Client)
- func (o *OptionsRulesTestParams) SetTimeout(timeout time.Duration)
- func (o *OptionsRulesTestParams) WithContext(ctx context.Context) *OptionsRulesTestParams
- func (o *OptionsRulesTestParams) WithHTTPClient(client *http.Client) *OptionsRulesTestParams
- func (o *OptionsRulesTestParams) WithTimeout(timeout time.Duration) *OptionsRulesTestParams
- func (o *OptionsRulesTestParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type OptionsRulesTestReader
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 (*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) OptionsRulesTest ¶ added in v0.4.0
func (a *Client) OptionsRulesTest(params *OptionsRulesTestParams) (*OptionsRulesTestOK, error)
OptionsRulesTest cs o r s support
Enable CORS by returning correct headers.
func (*Client) OptionsRulesTestInput ¶ added in v0.4.0
func (a *Client) OptionsRulesTestInput(params *OptionsRulesTestInputParams) (*OptionsRulesTestInputOK, error)
OptionsRulesTestInput 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 ClientService ¶ added in v0.6.0
type ClientService interface { OptionsRules(params *OptionsRulesParams) (*OptionsRulesOK, error) OptionsRulesRuleID(params *OptionsRulesRuleIDParams) (*OptionsRulesRuleIDOK, error) OptionsRulesTest(params *OptionsRulesTestParams) (*OptionsRulesTestOK, error) OptionsRulesTestInput(params *OptionsRulesTestInputParams) (*OptionsRulesTestInputOK, 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 c o r s API 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 OptionsRulesTestInputOK ¶ added in v0.4.0
type OptionsRulesTestInputOK struct { AccessControlAllowHeaders string AccessControlAllowMethods string AccessControlAllowOrigin string }
OptionsRulesTestInputOK handles this case with default header values.
Default response for CORS method
func NewOptionsRulesTestInputOK ¶ added in v0.4.0
func NewOptionsRulesTestInputOK() *OptionsRulesTestInputOK
NewOptionsRulesTestInputOK creates a OptionsRulesTestInputOK with default headers values
func (*OptionsRulesTestInputOK) Error ¶ added in v0.4.0
func (o *OptionsRulesTestInputOK) Error() string
type OptionsRulesTestInputParams ¶ added in v0.4.0
type OptionsRulesTestInputParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
OptionsRulesTestInputParams contains all the parameters to send to the API endpoint for the options rules test input operation typically these are written to a http.Request
func NewOptionsRulesTestInputParams ¶ added in v0.4.0
func NewOptionsRulesTestInputParams() *OptionsRulesTestInputParams
NewOptionsRulesTestInputParams creates a new OptionsRulesTestInputParams object with the default values initialized.
func NewOptionsRulesTestInputParamsWithContext ¶ added in v0.4.0
func NewOptionsRulesTestInputParamsWithContext(ctx context.Context) *OptionsRulesTestInputParams
NewOptionsRulesTestInputParamsWithContext creates a new OptionsRulesTestInputParams object with the default values initialized, and the ability to set a context for a request
func NewOptionsRulesTestInputParamsWithHTTPClient ¶ added in v0.4.0
func NewOptionsRulesTestInputParamsWithHTTPClient(client *http.Client) *OptionsRulesTestInputParams
NewOptionsRulesTestInputParamsWithHTTPClient creates a new OptionsRulesTestInputParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewOptionsRulesTestInputParamsWithTimeout ¶ added in v0.4.0
func NewOptionsRulesTestInputParamsWithTimeout(timeout time.Duration) *OptionsRulesTestInputParams
NewOptionsRulesTestInputParamsWithTimeout creates a new OptionsRulesTestInputParams object with the default values initialized, and the ability to set a timeout on a request
func (*OptionsRulesTestInputParams) SetContext ¶ added in v0.4.0
func (o *OptionsRulesTestInputParams) SetContext(ctx context.Context)
SetContext adds the context to the options rules test input params
func (*OptionsRulesTestInputParams) SetHTTPClient ¶ added in v0.4.0
func (o *OptionsRulesTestInputParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the options rules test input params
func (*OptionsRulesTestInputParams) SetTimeout ¶ added in v0.4.0
func (o *OptionsRulesTestInputParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the options rules test input params
func (*OptionsRulesTestInputParams) WithContext ¶ added in v0.4.0
func (o *OptionsRulesTestInputParams) WithContext(ctx context.Context) *OptionsRulesTestInputParams
WithContext adds the context to the options rules test input params
func (*OptionsRulesTestInputParams) WithHTTPClient ¶ added in v0.4.0
func (o *OptionsRulesTestInputParams) WithHTTPClient(client *http.Client) *OptionsRulesTestInputParams
WithHTTPClient adds the HTTPClient to the options rules test input params
func (*OptionsRulesTestInputParams) WithTimeout ¶ added in v0.4.0
func (o *OptionsRulesTestInputParams) WithTimeout(timeout time.Duration) *OptionsRulesTestInputParams
WithTimeout adds the timeout to the options rules test input params
func (*OptionsRulesTestInputParams) WriteToRequest ¶ added in v0.4.0
func (o *OptionsRulesTestInputParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type OptionsRulesTestInputReader ¶ added in v0.4.0
type OptionsRulesTestInputReader struct {
// contains filtered or unexported fields
}
OptionsRulesTestInputReader is a Reader for the OptionsRulesTestInput structure.
func (*OptionsRulesTestInputReader) ReadResponse ¶ added in v0.4.0
func (o *OptionsRulesTestInputReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type OptionsRulesTestOK ¶ added in v0.4.0
type OptionsRulesTestOK struct { AccessControlAllowHeaders string AccessControlAllowMethods string AccessControlAllowOrigin string }
OptionsRulesTestOK handles this case with default header values.
Default response for CORS method
func NewOptionsRulesTestOK ¶ added in v0.4.0
func NewOptionsRulesTestOK() *OptionsRulesTestOK
NewOptionsRulesTestOK creates a OptionsRulesTestOK with default headers values
func (*OptionsRulesTestOK) Error ¶ added in v0.4.0
func (o *OptionsRulesTestOK) Error() string
type OptionsRulesTestParams ¶ added in v0.4.0
type OptionsRulesTestParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
OptionsRulesTestParams contains all the parameters to send to the API endpoint for the options rules test operation typically these are written to a http.Request
func NewOptionsRulesTestParams ¶ added in v0.4.0
func NewOptionsRulesTestParams() *OptionsRulesTestParams
NewOptionsRulesTestParams creates a new OptionsRulesTestParams object with the default values initialized.
func NewOptionsRulesTestParamsWithContext ¶ added in v0.4.0
func NewOptionsRulesTestParamsWithContext(ctx context.Context) *OptionsRulesTestParams
NewOptionsRulesTestParamsWithContext creates a new OptionsRulesTestParams object with the default values initialized, and the ability to set a context for a request
func NewOptionsRulesTestParamsWithHTTPClient ¶ added in v0.4.0
func NewOptionsRulesTestParamsWithHTTPClient(client *http.Client) *OptionsRulesTestParams
NewOptionsRulesTestParamsWithHTTPClient creates a new OptionsRulesTestParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewOptionsRulesTestParamsWithTimeout ¶ added in v0.4.0
func NewOptionsRulesTestParamsWithTimeout(timeout time.Duration) *OptionsRulesTestParams
NewOptionsRulesTestParamsWithTimeout creates a new OptionsRulesTestParams object with the default values initialized, and the ability to set a timeout on a request
func (*OptionsRulesTestParams) SetContext ¶ added in v0.4.0
func (o *OptionsRulesTestParams) SetContext(ctx context.Context)
SetContext adds the context to the options rules test params
func (*OptionsRulesTestParams) SetHTTPClient ¶ added in v0.4.0
func (o *OptionsRulesTestParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the options rules test params
func (*OptionsRulesTestParams) SetTimeout ¶ added in v0.4.0
func (o *OptionsRulesTestParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the options rules test params
func (*OptionsRulesTestParams) WithContext ¶ added in v0.4.0
func (o *OptionsRulesTestParams) WithContext(ctx context.Context) *OptionsRulesTestParams
WithContext adds the context to the options rules test params
func (*OptionsRulesTestParams) WithHTTPClient ¶ added in v0.4.0
func (o *OptionsRulesTestParams) WithHTTPClient(client *http.Client) *OptionsRulesTestParams
WithHTTPClient adds the HTTPClient to the options rules test params
func (*OptionsRulesTestParams) WithTimeout ¶ added in v0.4.0
func (o *OptionsRulesTestParams) WithTimeout(timeout time.Duration) *OptionsRulesTestParams
WithTimeout adds the timeout to the options rules test params
func (*OptionsRulesTestParams) WriteToRequest ¶ added in v0.4.0
func (o *OptionsRulesTestParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type OptionsRulesTestReader ¶ added in v0.4.0
type OptionsRulesTestReader struct {
// contains filtered or unexported fields
}
OptionsRulesTestReader is a Reader for the OptionsRulesTest structure.
func (*OptionsRulesTestReader) ReadResponse ¶ added in v0.4.0
func (o *OptionsRulesTestReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.