reloads

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2021 License: Apache-2.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 Client

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

Client for reloads API

func (*Client) GetReload

func (a *Client) GetReload(params *GetReloadParams, authInfo runtime.ClientAuthInfoWriter) (*GetReloadOK, error)

GetReload returns one h a proxy reload status

Returns one HAProxy reload status.

func (*Client) GetReloads

func (a *Client) GetReloads(params *GetReloadsParams, authInfo runtime.ClientAuthInfoWriter) (*GetReloadsOK, error)

GetReloads returns list of h a proxy reloads

Returns a list of HAProxy reloads.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService added in v0.2.0

type ClientService interface {
	GetReload(params *GetReloadParams, authInfo runtime.ClientAuthInfoWriter) (*GetReloadOK, error)

	GetReloads(params *GetReloadsParams, authInfo runtime.ClientAuthInfoWriter) (*GetReloadsOK, 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 reloads API client.

type GetReloadDefault

type GetReloadDefault struct {

	/*Configuration file version
	 */
	ConfigurationVersion int64

	Payload *models.Error
	// contains filtered or unexported fields
}

GetReloadDefault handles this case with default header values.

General Error

func NewGetReloadDefault

func NewGetReloadDefault(code int) *GetReloadDefault

NewGetReloadDefault creates a GetReloadDefault with default headers values

func (*GetReloadDefault) Code

func (o *GetReloadDefault) Code() int

Code gets the status code for the get reload default response

func (*GetReloadDefault) Error

func (o *GetReloadDefault) Error() string

func (*GetReloadDefault) GetPayload added in v0.2.0

func (o *GetReloadDefault) GetPayload() *models.Error

type GetReloadNotFound

type GetReloadNotFound struct {
	/*Configuration file version
	 */
	ConfigurationVersion int64

	Payload *models.Error
}

GetReloadNotFound handles this case with default header values.

The specified resource was not found

func NewGetReloadNotFound

func NewGetReloadNotFound() *GetReloadNotFound

NewGetReloadNotFound creates a GetReloadNotFound with default headers values

func (*GetReloadNotFound) Error

func (o *GetReloadNotFound) Error() string

func (*GetReloadNotFound) GetPayload added in v0.2.0

func (o *GetReloadNotFound) GetPayload() *models.Error

type GetReloadOK

type GetReloadOK struct {
	Payload *models.Reload
}

GetReloadOK handles this case with default header values.

Successful operation

func NewGetReloadOK

func NewGetReloadOK() *GetReloadOK

NewGetReloadOK creates a GetReloadOK with default headers values

func (*GetReloadOK) Error

func (o *GetReloadOK) Error() string

func (*GetReloadOK) GetPayload added in v0.2.0

func (o *GetReloadOK) GetPayload() *models.Reload

type GetReloadParams

type GetReloadParams struct {

	/*ID
	  Reload id

	*/
	ID string

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

GetReloadParams contains all the parameters to send to the API endpoint for the get reload operation typically these are written to a http.Request

func NewGetReloadParams

func NewGetReloadParams() *GetReloadParams

NewGetReloadParams creates a new GetReloadParams object with the default values initialized.

func NewGetReloadParamsWithContext

func NewGetReloadParamsWithContext(ctx context.Context) *GetReloadParams

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

func NewGetReloadParamsWithHTTPClient

func NewGetReloadParamsWithHTTPClient(client *http.Client) *GetReloadParams

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

func NewGetReloadParamsWithTimeout

func NewGetReloadParamsWithTimeout(timeout time.Duration) *GetReloadParams

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

func (*GetReloadParams) SetContext

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

SetContext adds the context to the get reload params

func (*GetReloadParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get reload params

func (*GetReloadParams) SetID

func (o *GetReloadParams) SetID(id string)

SetID adds the id to the get reload params

func (*GetReloadParams) SetTimeout

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

SetTimeout adds the timeout to the get reload params

func (*GetReloadParams) WithContext

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

WithContext adds the context to the get reload params

func (*GetReloadParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get reload params

func (*GetReloadParams) WithID

func (o *GetReloadParams) WithID(id string) *GetReloadParams

WithID adds the id to the get reload params

func (*GetReloadParams) WithTimeout

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

WithTimeout adds the timeout to the get reload params

func (*GetReloadParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetReloadReader

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

GetReloadReader is a Reader for the GetReload structure.

func (*GetReloadReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetReloadsDefault

type GetReloadsDefault struct {

	/*Configuration file version
	 */
	ConfigurationVersion int64

	Payload *models.Error
	// contains filtered or unexported fields
}

GetReloadsDefault handles this case with default header values.

General Error

func NewGetReloadsDefault

func NewGetReloadsDefault(code int) *GetReloadsDefault

NewGetReloadsDefault creates a GetReloadsDefault with default headers values

func (*GetReloadsDefault) Code

func (o *GetReloadsDefault) Code() int

Code gets the status code for the get reloads default response

func (*GetReloadsDefault) Error

func (o *GetReloadsDefault) Error() string

func (*GetReloadsDefault) GetPayload added in v0.2.0

func (o *GetReloadsDefault) GetPayload() *models.Error

type GetReloadsOK

type GetReloadsOK struct {
	Payload models.Reloads
}

GetReloadsOK handles this case with default header values.

Success

func NewGetReloadsOK

func NewGetReloadsOK() *GetReloadsOK

NewGetReloadsOK creates a GetReloadsOK with default headers values

func (*GetReloadsOK) Error

func (o *GetReloadsOK) Error() string

func (*GetReloadsOK) GetPayload added in v0.2.0

func (o *GetReloadsOK) GetPayload() models.Reloads

type GetReloadsParams

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

GetReloadsParams contains all the parameters to send to the API endpoint for the get reloads operation typically these are written to a http.Request

func NewGetReloadsParams

func NewGetReloadsParams() *GetReloadsParams

NewGetReloadsParams creates a new GetReloadsParams object with the default values initialized.

func NewGetReloadsParamsWithContext

func NewGetReloadsParamsWithContext(ctx context.Context) *GetReloadsParams

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

func NewGetReloadsParamsWithHTTPClient

func NewGetReloadsParamsWithHTTPClient(client *http.Client) *GetReloadsParams

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

func NewGetReloadsParamsWithTimeout

func NewGetReloadsParamsWithTimeout(timeout time.Duration) *GetReloadsParams

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

func (*GetReloadsParams) SetContext

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

SetContext adds the context to the get reloads params

func (*GetReloadsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get reloads params

func (*GetReloadsParams) SetTimeout

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

SetTimeout adds the timeout to the get reloads params

func (*GetReloadsParams) WithContext

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

WithContext adds the context to the get reloads params

func (*GetReloadsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get reloads params

func (*GetReloadsParams) WithTimeout

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

WithTimeout adds the timeout to the get reloads params

func (*GetReloadsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetReloadsReader

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

GetReloadsReader is a Reader for the GetReloads structure.

func (*GetReloadsReader) ReadResponse

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