c_o_r_s

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2020 License: Apache-2.0 Imports: 8 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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) OptionsAccounts

func (a *Client) OptionsAccounts(params *OptionsAccountsParams) (*OptionsAccountsOK, error)

OptionsAccounts cs o r s support

Enable CORS by returning correct headers

func (*Client) OptionsAccountsID

func (a *Client) OptionsAccountsID(params *OptionsAccountsIDParams) (*OptionsAccountsIDOK, error)

OptionsAccountsID cs o r s support

Enable CORS by returning correct headers

func (*Client) OptionsLeases

func (a *Client) OptionsLeases(params *OptionsLeasesParams) (*OptionsLeasesOK, error)

OptionsLeases cs o r s support

Enable CORS by returning correct headers

func (*Client) OptionsLeasesID

func (a *Client) OptionsLeasesID(params *OptionsLeasesIDParams) (*OptionsLeasesIDOK, error)

OptionsLeasesID cs o r s support

Enable CORS by returning correct headers

func (*Client) OptionsLeasesIDAuth

func (a *Client) OptionsLeasesIDAuth(params *OptionsLeasesIDAuthParams) (*OptionsLeasesIDAuthOK, error)

OptionsLeasesIDAuth cs o r s support

Enable CORS by returning correct headers

func (*Client) OptionsUsage

func (a *Client) OptionsUsage(params *OptionsUsageParams) (*OptionsUsageOK, error)

OptionsUsage 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 OptionsAccountsIDOK

type OptionsAccountsIDOK struct {
	AccessControlAllowHeaders string

	AccessControlAllowMethods string

	AccessControlAllowOrigin string
}

OptionsAccountsIDOK handles this case with default header values.

Default response for CORS method

func NewOptionsAccountsIDOK

func NewOptionsAccountsIDOK() *OptionsAccountsIDOK

NewOptionsAccountsIDOK creates a OptionsAccountsIDOK with default headers values

func (*OptionsAccountsIDOK) Error

func (o *OptionsAccountsIDOK) Error() string

type OptionsAccountsIDParams

type OptionsAccountsIDParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

OptionsAccountsIDParams contains all the parameters to send to the API endpoint for the options accounts ID operation typically these are written to a http.Request

func NewOptionsAccountsIDParams

func NewOptionsAccountsIDParams() *OptionsAccountsIDParams

NewOptionsAccountsIDParams creates a new OptionsAccountsIDParams object with the default values initialized.

func NewOptionsAccountsIDParamsWithContext

func NewOptionsAccountsIDParamsWithContext(ctx context.Context) *OptionsAccountsIDParams

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

func NewOptionsAccountsIDParamsWithHTTPClient

func NewOptionsAccountsIDParamsWithHTTPClient(client *http.Client) *OptionsAccountsIDParams

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

func NewOptionsAccountsIDParamsWithTimeout

func NewOptionsAccountsIDParamsWithTimeout(timeout time.Duration) *OptionsAccountsIDParams

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

func (*OptionsAccountsIDParams) SetContext

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

SetContext adds the context to the options accounts ID params

func (*OptionsAccountsIDParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the options accounts ID params

func (*OptionsAccountsIDParams) SetTimeout

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

SetTimeout adds the timeout to the options accounts ID params

func (*OptionsAccountsIDParams) WithContext

WithContext adds the context to the options accounts ID params

func (*OptionsAccountsIDParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the options accounts ID params

func (*OptionsAccountsIDParams) WithTimeout

WithTimeout adds the timeout to the options accounts ID params

func (*OptionsAccountsIDParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type OptionsAccountsIDReader

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

OptionsAccountsIDReader is a Reader for the OptionsAccountsID structure.

func (*OptionsAccountsIDReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type OptionsAccountsOK

type OptionsAccountsOK struct {
	AccessControlAllowHeaders string

	AccessControlAllowMethods string

	AccessControlAllowOrigin string
}

OptionsAccountsOK handles this case with default header values.

Default response for CORS method

func NewOptionsAccountsOK

func NewOptionsAccountsOK() *OptionsAccountsOK

NewOptionsAccountsOK creates a OptionsAccountsOK with default headers values

func (*OptionsAccountsOK) Error

func (o *OptionsAccountsOK) Error() string

type OptionsAccountsParams

type OptionsAccountsParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

OptionsAccountsParams contains all the parameters to send to the API endpoint for the options accounts operation typically these are written to a http.Request

func NewOptionsAccountsParams

func NewOptionsAccountsParams() *OptionsAccountsParams

NewOptionsAccountsParams creates a new OptionsAccountsParams object with the default values initialized.

func NewOptionsAccountsParamsWithContext

func NewOptionsAccountsParamsWithContext(ctx context.Context) *OptionsAccountsParams

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

func NewOptionsAccountsParamsWithHTTPClient

func NewOptionsAccountsParamsWithHTTPClient(client *http.Client) *OptionsAccountsParams

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

func NewOptionsAccountsParamsWithTimeout

func NewOptionsAccountsParamsWithTimeout(timeout time.Duration) *OptionsAccountsParams

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

func (*OptionsAccountsParams) SetContext

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

SetContext adds the context to the options accounts params

func (*OptionsAccountsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the options accounts params

func (*OptionsAccountsParams) SetTimeout

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

SetTimeout adds the timeout to the options accounts params

func (*OptionsAccountsParams) WithContext

WithContext adds the context to the options accounts params

func (*OptionsAccountsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the options accounts params

func (*OptionsAccountsParams) WithTimeout

func (o *OptionsAccountsParams) WithTimeout(timeout time.Duration) *OptionsAccountsParams

WithTimeout adds the timeout to the options accounts params

func (*OptionsAccountsParams) WriteToRequest

func (o *OptionsAccountsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type OptionsAccountsReader

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

OptionsAccountsReader is a Reader for the OptionsAccounts structure.

func (*OptionsAccountsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type OptionsLeasesIDAuthOK

type OptionsLeasesIDAuthOK struct {
	AccessControlAllowHeaders string

	AccessControlAllowMethods string

	AccessControlAllowOrigin string
}

OptionsLeasesIDAuthOK handles this case with default header values.

Default response for CORS method

func NewOptionsLeasesIDAuthOK

func NewOptionsLeasesIDAuthOK() *OptionsLeasesIDAuthOK

NewOptionsLeasesIDAuthOK creates a OptionsLeasesIDAuthOK with default headers values

func (*OptionsLeasesIDAuthOK) Error

func (o *OptionsLeasesIDAuthOK) Error() string

type OptionsLeasesIDAuthParams

type OptionsLeasesIDAuthParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

OptionsLeasesIDAuthParams contains all the parameters to send to the API endpoint for the options leases ID auth operation typically these are written to a http.Request

func NewOptionsLeasesIDAuthParams

func NewOptionsLeasesIDAuthParams() *OptionsLeasesIDAuthParams

NewOptionsLeasesIDAuthParams creates a new OptionsLeasesIDAuthParams object with the default values initialized.

func NewOptionsLeasesIDAuthParamsWithContext

func NewOptionsLeasesIDAuthParamsWithContext(ctx context.Context) *OptionsLeasesIDAuthParams

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

func NewOptionsLeasesIDAuthParamsWithHTTPClient

func NewOptionsLeasesIDAuthParamsWithHTTPClient(client *http.Client) *OptionsLeasesIDAuthParams

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

func NewOptionsLeasesIDAuthParamsWithTimeout

func NewOptionsLeasesIDAuthParamsWithTimeout(timeout time.Duration) *OptionsLeasesIDAuthParams

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

func (*OptionsLeasesIDAuthParams) SetContext

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

SetContext adds the context to the options leases ID auth params

func (*OptionsLeasesIDAuthParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the options leases ID auth params

func (*OptionsLeasesIDAuthParams) SetTimeout

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

SetTimeout adds the timeout to the options leases ID auth params

func (*OptionsLeasesIDAuthParams) WithContext

WithContext adds the context to the options leases ID auth params

func (*OptionsLeasesIDAuthParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the options leases ID auth params

func (*OptionsLeasesIDAuthParams) WithTimeout

WithTimeout adds the timeout to the options leases ID auth params

func (*OptionsLeasesIDAuthParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type OptionsLeasesIDAuthReader

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

OptionsLeasesIDAuthReader is a Reader for the OptionsLeasesIDAuth structure.

func (*OptionsLeasesIDAuthReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type OptionsLeasesIDOK

type OptionsLeasesIDOK struct {
	AccessControlAllowHeaders string

	AccessControlAllowMethods string

	AccessControlAllowOrigin string
}

OptionsLeasesIDOK handles this case with default header values.

Default response for CORS method

func NewOptionsLeasesIDOK

func NewOptionsLeasesIDOK() *OptionsLeasesIDOK

NewOptionsLeasesIDOK creates a OptionsLeasesIDOK with default headers values

func (*OptionsLeasesIDOK) Error

func (o *OptionsLeasesIDOK) Error() string

type OptionsLeasesIDParams

type OptionsLeasesIDParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

OptionsLeasesIDParams contains all the parameters to send to the API endpoint for the options leases ID operation typically these are written to a http.Request

func NewOptionsLeasesIDParams

func NewOptionsLeasesIDParams() *OptionsLeasesIDParams

NewOptionsLeasesIDParams creates a new OptionsLeasesIDParams object with the default values initialized.

func NewOptionsLeasesIDParamsWithContext

func NewOptionsLeasesIDParamsWithContext(ctx context.Context) *OptionsLeasesIDParams

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

func NewOptionsLeasesIDParamsWithHTTPClient

func NewOptionsLeasesIDParamsWithHTTPClient(client *http.Client) *OptionsLeasesIDParams

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

func NewOptionsLeasesIDParamsWithTimeout

func NewOptionsLeasesIDParamsWithTimeout(timeout time.Duration) *OptionsLeasesIDParams

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

func (*OptionsLeasesIDParams) SetContext

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

SetContext adds the context to the options leases ID params

func (*OptionsLeasesIDParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the options leases ID params

func (*OptionsLeasesIDParams) SetTimeout

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

SetTimeout adds the timeout to the options leases ID params

func (*OptionsLeasesIDParams) WithContext

WithContext adds the context to the options leases ID params

func (*OptionsLeasesIDParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the options leases ID params

func (*OptionsLeasesIDParams) WithTimeout

func (o *OptionsLeasesIDParams) WithTimeout(timeout time.Duration) *OptionsLeasesIDParams

WithTimeout adds the timeout to the options leases ID params

func (*OptionsLeasesIDParams) WriteToRequest

func (o *OptionsLeasesIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type OptionsLeasesIDReader

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

OptionsLeasesIDReader is a Reader for the OptionsLeasesID structure.

func (*OptionsLeasesIDReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type OptionsLeasesOK

type OptionsLeasesOK struct {
	AccessControlAllowHeaders string

	AccessControlAllowMethods string

	AccessControlAllowOrigin string
}

OptionsLeasesOK handles this case with default header values.

Default response for CORS method

func NewOptionsLeasesOK

func NewOptionsLeasesOK() *OptionsLeasesOK

NewOptionsLeasesOK creates a OptionsLeasesOK with default headers values

func (*OptionsLeasesOK) Error

func (o *OptionsLeasesOK) Error() string

type OptionsLeasesParams

type OptionsLeasesParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

OptionsLeasesParams contains all the parameters to send to the API endpoint for the options leases operation typically these are written to a http.Request

func NewOptionsLeasesParams

func NewOptionsLeasesParams() *OptionsLeasesParams

NewOptionsLeasesParams creates a new OptionsLeasesParams object with the default values initialized.

func NewOptionsLeasesParamsWithContext

func NewOptionsLeasesParamsWithContext(ctx context.Context) *OptionsLeasesParams

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

func NewOptionsLeasesParamsWithHTTPClient

func NewOptionsLeasesParamsWithHTTPClient(client *http.Client) *OptionsLeasesParams

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

func NewOptionsLeasesParamsWithTimeout

func NewOptionsLeasesParamsWithTimeout(timeout time.Duration) *OptionsLeasesParams

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

func (*OptionsLeasesParams) SetContext

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

SetContext adds the context to the options leases params

func (*OptionsLeasesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the options leases params

func (*OptionsLeasesParams) SetTimeout

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

SetTimeout adds the timeout to the options leases params

func (*OptionsLeasesParams) WithContext

WithContext adds the context to the options leases params

func (*OptionsLeasesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the options leases params

func (*OptionsLeasesParams) WithTimeout

func (o *OptionsLeasesParams) WithTimeout(timeout time.Duration) *OptionsLeasesParams

WithTimeout adds the timeout to the options leases params

func (*OptionsLeasesParams) WriteToRequest

func (o *OptionsLeasesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type OptionsLeasesReader

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

OptionsLeasesReader is a Reader for the OptionsLeases structure.

func (*OptionsLeasesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type OptionsUsageOK

type OptionsUsageOK struct {
	AccessControlAllowHeaders string

	AccessControlAllowMethods string

	AccessControlAllowOrigin string
}

OptionsUsageOK handles this case with default header values.

Default response for CORS method

func NewOptionsUsageOK

func NewOptionsUsageOK() *OptionsUsageOK

NewOptionsUsageOK creates a OptionsUsageOK with default headers values

func (*OptionsUsageOK) Error

func (o *OptionsUsageOK) Error() string

type OptionsUsageParams

type OptionsUsageParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

OptionsUsageParams contains all the parameters to send to the API endpoint for the options usage operation typically these are written to a http.Request

func NewOptionsUsageParams

func NewOptionsUsageParams() *OptionsUsageParams

NewOptionsUsageParams creates a new OptionsUsageParams object with the default values initialized.

func NewOptionsUsageParamsWithContext

func NewOptionsUsageParamsWithContext(ctx context.Context) *OptionsUsageParams

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

func NewOptionsUsageParamsWithHTTPClient

func NewOptionsUsageParamsWithHTTPClient(client *http.Client) *OptionsUsageParams

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

func NewOptionsUsageParamsWithTimeout

func NewOptionsUsageParamsWithTimeout(timeout time.Duration) *OptionsUsageParams

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

func (*OptionsUsageParams) SetContext

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

SetContext adds the context to the options usage params

func (*OptionsUsageParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the options usage params

func (*OptionsUsageParams) SetTimeout

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

SetTimeout adds the timeout to the options usage params

func (*OptionsUsageParams) WithContext

WithContext adds the context to the options usage params

func (*OptionsUsageParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the options usage params

func (*OptionsUsageParams) WithTimeout

func (o *OptionsUsageParams) WithTimeout(timeout time.Duration) *OptionsUsageParams

WithTimeout adds the timeout to the options usage params

func (*OptionsUsageParams) WriteToRequest

func (o *OptionsUsageParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type OptionsUsageReader

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

OptionsUsageReader is a Reader for the OptionsUsage structure.

func (*OptionsUsageReader) ReadResponse

func (o *OptionsUsageReader) 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