c_o_r_s

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2019 License: MIT Imports: 8 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 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

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

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

WithRuleID adds the ruleID to the options rules rule ID params

func (*OptionsRulesRuleIDParams) WithTimeout

WithTimeout adds the timeout to the options rules rule ID params

func (*OptionsRulesRuleIDParams) WriteToRequest

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

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

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

SetTimeout adds the timeout to the options rules validator v1 environment ID params

func (*OptionsRulesValidatorV1EnvironmentIDParams) WithContext

WithContext adds the context to the options rules validator v1 environment ID params

func (*OptionsRulesValidatorV1EnvironmentIDParams) WithEnvironmentID

WithEnvironmentID adds the environmentID to the options rules validator v1 environment ID params

func (*OptionsRulesValidatorV1EnvironmentIDParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the options rules validator v1 environment ID params

func (*OptionsRulesValidatorV1EnvironmentIDParams) WithTimeout

WithTimeout adds the timeout to the options rules validator v1 environment ID params

func (*OptionsRulesValidatorV1EnvironmentIDParams) WriteToRequest

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.

Jump to

Keyboard shortcuts

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