reloads

package
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 License: Apache-2.0 Imports: 10 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, opts ...ClientOption) (*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, opts ...ClientOption) (*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 ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

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

	GetReloads(params *GetReloadsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*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 string

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

GetReloadDefault describes a response with status code -1, 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

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

func (*GetReloadDefault) IsClientError added in v1.1.0

func (o *GetReloadDefault) IsClientError() bool

IsClientError returns true when this get reload default response has a 4xx status code

func (*GetReloadDefault) IsCode added in v1.1.0

func (o *GetReloadDefault) IsCode(code int) bool

IsCode returns true when this get reload default response a status code equal to that given

func (*GetReloadDefault) IsRedirect added in v1.1.0

func (o *GetReloadDefault) IsRedirect() bool

IsRedirect returns true when this get reload default response has a 3xx status code

func (*GetReloadDefault) IsServerError added in v1.1.0

func (o *GetReloadDefault) IsServerError() bool

IsServerError returns true when this get reload default response has a 5xx status code

func (*GetReloadDefault) IsSuccess added in v1.1.0

func (o *GetReloadDefault) IsSuccess() bool

IsSuccess returns true when this get reload default response has a 2xx status code

func (*GetReloadDefault) String added in v1.1.0

func (o *GetReloadDefault) String() string

type GetReloadNotFound

type GetReloadNotFound struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

GetReloadNotFound describes a response with status code 404, 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) Code added in v1.1.5

func (o *GetReloadNotFound) Code() int

Code gets the status code for the get reload not found response

func (*GetReloadNotFound) Error

func (o *GetReloadNotFound) Error() string

func (*GetReloadNotFound) GetPayload

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

func (*GetReloadNotFound) IsClientError added in v1.1.0

func (o *GetReloadNotFound) IsClientError() bool

IsClientError returns true when this get reload not found response has a 4xx status code

func (*GetReloadNotFound) IsCode added in v1.1.0

func (o *GetReloadNotFound) IsCode(code int) bool

IsCode returns true when this get reload not found response a status code equal to that given

func (*GetReloadNotFound) IsRedirect added in v1.1.0

func (o *GetReloadNotFound) IsRedirect() bool

IsRedirect returns true when this get reload not found response has a 3xx status code

func (*GetReloadNotFound) IsServerError added in v1.1.0

func (o *GetReloadNotFound) IsServerError() bool

IsServerError returns true when this get reload not found response has a 5xx status code

func (*GetReloadNotFound) IsSuccess added in v1.1.0

func (o *GetReloadNotFound) IsSuccess() bool

IsSuccess returns true when this get reload not found response has a 2xx status code

func (*GetReloadNotFound) String added in v1.1.0

func (o *GetReloadNotFound) String() string

type GetReloadOK

type GetReloadOK struct {
	Payload *models.Reload
}

GetReloadOK describes a response with status code 200, with default header values.

Successful operation

func NewGetReloadOK

func NewGetReloadOK() *GetReloadOK

NewGetReloadOK creates a GetReloadOK with default headers values

func (*GetReloadOK) Code added in v1.1.5

func (o *GetReloadOK) Code() int

Code gets the status code for the get reload o k response

func (*GetReloadOK) Error

func (o *GetReloadOK) Error() string

func (*GetReloadOK) GetPayload

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

func (*GetReloadOK) IsClientError added in v1.1.0

func (o *GetReloadOK) IsClientError() bool

IsClientError returns true when this get reload o k response has a 4xx status code

func (*GetReloadOK) IsCode added in v1.1.0

func (o *GetReloadOK) IsCode(code int) bool

IsCode returns true when this get reload o k response a status code equal to that given

func (*GetReloadOK) IsRedirect added in v1.1.0

func (o *GetReloadOK) IsRedirect() bool

IsRedirect returns true when this get reload o k response has a 3xx status code

func (*GetReloadOK) IsServerError added in v1.1.0

func (o *GetReloadOK) IsServerError() bool

IsServerError returns true when this get reload o k response has a 5xx status code

func (*GetReloadOK) IsSuccess added in v1.1.0

func (o *GetReloadOK) IsSuccess() bool

IsSuccess returns true when this get reload o k response has a 2xx status code

func (*GetReloadOK) String added in v1.1.0

func (o *GetReloadOK) String() string

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 timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetReloadParamsWithContext

func NewGetReloadParamsWithContext(ctx context.Context) *GetReloadParams

NewGetReloadParamsWithContext creates a new GetReloadParams object with 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 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 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) SetDefaults

func (o *GetReloadParams) SetDefaults()

SetDefaults hydrates default values in the get reload params (not the query body).

All values with no default are reset to their zero value.

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

func (o *GetReloadParams) WithDefaults() *GetReloadParams

WithDefaults hydrates default values in the get reload params (not the query body).

All values with no default are reset to their zero value.

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 string

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

GetReloadsDefault describes a response with status code -1, 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

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

func (*GetReloadsDefault) IsClientError added in v1.1.0

func (o *GetReloadsDefault) IsClientError() bool

IsClientError returns true when this get reloads default response has a 4xx status code

func (*GetReloadsDefault) IsCode added in v1.1.0

func (o *GetReloadsDefault) IsCode(code int) bool

IsCode returns true when this get reloads default response a status code equal to that given

func (*GetReloadsDefault) IsRedirect added in v1.1.0

func (o *GetReloadsDefault) IsRedirect() bool

IsRedirect returns true when this get reloads default response has a 3xx status code

func (*GetReloadsDefault) IsServerError added in v1.1.0

func (o *GetReloadsDefault) IsServerError() bool

IsServerError returns true when this get reloads default response has a 5xx status code

func (*GetReloadsDefault) IsSuccess added in v1.1.0

func (o *GetReloadsDefault) IsSuccess() bool

IsSuccess returns true when this get reloads default response has a 2xx status code

func (*GetReloadsDefault) String added in v1.1.0

func (o *GetReloadsDefault) String() string

type GetReloadsOK

type GetReloadsOK struct {
	Payload models.Reloads
}

GetReloadsOK describes a response with status code 200, with default header values.

Success

func NewGetReloadsOK

func NewGetReloadsOK() *GetReloadsOK

NewGetReloadsOK creates a GetReloadsOK with default headers values

func (*GetReloadsOK) Code added in v1.1.5

func (o *GetReloadsOK) Code() int

Code gets the status code for the get reloads o k response

func (*GetReloadsOK) Error

func (o *GetReloadsOK) Error() string

func (*GetReloadsOK) GetPayload

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

func (*GetReloadsOK) IsClientError added in v1.1.0

func (o *GetReloadsOK) IsClientError() bool

IsClientError returns true when this get reloads o k response has a 4xx status code

func (*GetReloadsOK) IsCode added in v1.1.0

func (o *GetReloadsOK) IsCode(code int) bool

IsCode returns true when this get reloads o k response a status code equal to that given

func (*GetReloadsOK) IsRedirect added in v1.1.0

func (o *GetReloadsOK) IsRedirect() bool

IsRedirect returns true when this get reloads o k response has a 3xx status code

func (*GetReloadsOK) IsServerError added in v1.1.0

func (o *GetReloadsOK) IsServerError() bool

IsServerError returns true when this get reloads o k response has a 5xx status code

func (*GetReloadsOK) IsSuccess added in v1.1.0

func (o *GetReloadsOK) IsSuccess() bool

IsSuccess returns true when this get reloads o k response has a 2xx status code

func (*GetReloadsOK) String added in v1.1.0

func (o *GetReloadsOK) String() string

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 timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetReloadsParamsWithContext

func NewGetReloadsParamsWithContext(ctx context.Context) *GetReloadsParams

NewGetReloadsParamsWithContext creates a new GetReloadsParams object with 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 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 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) SetDefaults

func (o *GetReloadsParams) SetDefaults()

SetDefaults hydrates default values in the get reloads params (not the query body).

All values with no default are reset to their zero value.

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

func (o *GetReloadsParams) WithDefaults() *GetReloadsParams

WithDefaults hydrates default values in the get reloads params (not the query body).

All values with no default are reset to their zero value.

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