my_sql

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2018 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddOK

type AddOK struct {
	Payload *models.APIMySQLAddResponse
}

AddOK handles this case with default header values.

(empty)

func NewAddOK

func NewAddOK() *AddOK

NewAddOK creates a AddOK with default headers values

func (*AddOK) Error

func (o *AddOK) Error() string

type AddParams

type AddParams struct {

	/*Body*/
	Body *models.APIMySQLAddRequest

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

AddParams contains all the parameters to send to the API endpoint for the add operation typically these are written to a http.Request

func NewAddParams

func NewAddParams() *AddParams

NewAddParams creates a new AddParams object with the default values initialized.

func NewAddParamsWithContext

func NewAddParamsWithContext(ctx context.Context) *AddParams

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

func NewAddParamsWithHTTPClient

func NewAddParamsWithHTTPClient(client *http.Client) *AddParams

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

func NewAddParamsWithTimeout

func NewAddParamsWithTimeout(timeout time.Duration) *AddParams

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

func (*AddParams) SetBody

func (o *AddParams) SetBody(body *models.APIMySQLAddRequest)

SetBody adds the body to the add params

func (*AddParams) SetContext

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

SetContext adds the context to the add params

func (*AddParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the add params

func (*AddParams) SetTimeout

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

SetTimeout adds the timeout to the add params

func (*AddParams) WithBody

func (o *AddParams) WithBody(body *models.APIMySQLAddRequest) *AddParams

WithBody adds the body to the add params

func (*AddParams) WithContext

func (o *AddParams) WithContext(ctx context.Context) *AddParams

WithContext adds the context to the add params

func (*AddParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the add params

func (*AddParams) WithTimeout

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

WithTimeout adds the timeout to the add params

func (*AddParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type AddReader

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

AddReader is a Reader for the Add structure.

func (*AddReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type Client

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

Client for my sql API

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client

New creates a new my sql API client.

func (*Client) Add

func (a *Client) Add(params *AddParams) (*AddOK, error)

Add add API

func (*Client) List

func (a *Client) List(params *ListParams) (*ListOK, error)

List list API

func (*Client) Remove

func (a *Client) Remove(params *RemoveParams) (*RemoveOK, error)

Remove remove API

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type ListOK

type ListOK struct {
	Payload *models.APIMySQLListResponse
}

ListOK handles this case with default header values.

(empty)

func NewListOK

func NewListOK() *ListOK

NewListOK creates a ListOK with default headers values

func (*ListOK) Error

func (o *ListOK) Error() string

type ListParams

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

ListParams contains all the parameters to send to the API endpoint for the list operation typically these are written to a http.Request

func NewListParams

func NewListParams() *ListParams

NewListParams creates a new ListParams object with the default values initialized.

func NewListParamsWithContext

func NewListParamsWithContext(ctx context.Context) *ListParams

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

func NewListParamsWithHTTPClient

func NewListParamsWithHTTPClient(client *http.Client) *ListParams

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

func NewListParamsWithTimeout

func NewListParamsWithTimeout(timeout time.Duration) *ListParams

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

func (*ListParams) SetContext

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

SetContext adds the context to the list params

func (*ListParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list params

func (*ListParams) SetTimeout

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

SetTimeout adds the timeout to the list params

func (*ListParams) WithContext

func (o *ListParams) WithContext(ctx context.Context) *ListParams

WithContext adds the context to the list params

func (*ListParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list params

func (*ListParams) WithTimeout

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

WithTimeout adds the timeout to the list params

func (*ListParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ListReader

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

ListReader is a Reader for the List structure.

func (*ListReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type RemoveOK

type RemoveOK struct {
	Payload models.APIMySQLRemoveResponse
}

RemoveOK handles this case with default header values.

(empty)

func NewRemoveOK

func NewRemoveOK() *RemoveOK

NewRemoveOK creates a RemoveOK with default headers values

func (*RemoveOK) Error

func (o *RemoveOK) Error() string

type RemoveParams

type RemoveParams struct {

	/*ID*/
	ID int32

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

RemoveParams contains all the parameters to send to the API endpoint for the remove operation typically these are written to a http.Request

func NewRemoveParams

func NewRemoveParams() *RemoveParams

NewRemoveParams creates a new RemoveParams object with the default values initialized.

func NewRemoveParamsWithContext

func NewRemoveParamsWithContext(ctx context.Context) *RemoveParams

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

func NewRemoveParamsWithHTTPClient

func NewRemoveParamsWithHTTPClient(client *http.Client) *RemoveParams

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

func NewRemoveParamsWithTimeout

func NewRemoveParamsWithTimeout(timeout time.Duration) *RemoveParams

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

func (*RemoveParams) SetContext

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

SetContext adds the context to the remove params

func (*RemoveParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the remove params

func (*RemoveParams) SetID

func (o *RemoveParams) SetID(id int32)

SetID adds the id to the remove params

func (*RemoveParams) SetTimeout

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

SetTimeout adds the timeout to the remove params

func (*RemoveParams) WithContext

func (o *RemoveParams) WithContext(ctx context.Context) *RemoveParams

WithContext adds the context to the remove params

func (*RemoveParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the remove params

func (*RemoveParams) WithID

func (o *RemoveParams) WithID(id int32) *RemoveParams

WithID adds the id to the remove params

func (*RemoveParams) WithTimeout

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

WithTimeout adds the timeout to the remove params

func (*RemoveParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type RemoveReader

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

RemoveReader is a Reader for the Remove structure.

func (*RemoveReader) ReadResponse

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