information

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2022 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 information API

func (*Client) GetHaproxyProcessInfo

func (a *Client) GetHaproxyProcessInfo(params *GetHaproxyProcessInfoParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetHaproxyProcessInfoOK, error)

GetHaproxyProcessInfo returns h a proxy process information

Return HAProxy process information

func (*Client) GetInfo

func (a *Client) GetInfo(params *GetInfoParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetInfoOK, error)

GetInfo returns API hardware and o s information

Return API, hardware and OS information

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 {
	GetHaproxyProcessInfo(params *GetHaproxyProcessInfoParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetHaproxyProcessInfoOK, error)

	GetInfo(params *GetInfoParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetInfoOK, 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 information API client.

type GetHaproxyProcessInfoDefault

type GetHaproxyProcessInfoDefault struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
	// contains filtered or unexported fields
}
GetHaproxyProcessInfoDefault describes a response with status code -1, with default header values.

General Error

func NewGetHaproxyProcessInfoDefault

func NewGetHaproxyProcessInfoDefault(code int) *GetHaproxyProcessInfoDefault

NewGetHaproxyProcessInfoDefault creates a GetHaproxyProcessInfoDefault with default headers values

func (*GetHaproxyProcessInfoDefault) Code

Code gets the status code for the get haproxy process info default response

func (*GetHaproxyProcessInfoDefault) Error

func (*GetHaproxyProcessInfoDefault) GetPayload

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

type GetHaproxyProcessInfoOK

type GetHaproxyProcessInfoOK struct {
	Payload models.ProcessInfos
}
GetHaproxyProcessInfoOK describes a response with status code 200, with default header values.

Success

func NewGetHaproxyProcessInfoOK

func NewGetHaproxyProcessInfoOK() *GetHaproxyProcessInfoOK

NewGetHaproxyProcessInfoOK creates a GetHaproxyProcessInfoOK with default headers values

func (*GetHaproxyProcessInfoOK) Error

func (o *GetHaproxyProcessInfoOK) Error() string

func (*GetHaproxyProcessInfoOK) GetPayload

type GetHaproxyProcessInfoParams

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

GetHaproxyProcessInfoParams contains all the parameters to send to the API endpoint

for the get haproxy process info operation.

Typically these are written to a http.Request.

func NewGetHaproxyProcessInfoParams

func NewGetHaproxyProcessInfoParams() *GetHaproxyProcessInfoParams

NewGetHaproxyProcessInfoParams creates a new GetHaproxyProcessInfoParams 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 NewGetHaproxyProcessInfoParamsWithContext

func NewGetHaproxyProcessInfoParamsWithContext(ctx context.Context) *GetHaproxyProcessInfoParams

NewGetHaproxyProcessInfoParamsWithContext creates a new GetHaproxyProcessInfoParams object with the ability to set a context for a request.

func NewGetHaproxyProcessInfoParamsWithHTTPClient

func NewGetHaproxyProcessInfoParamsWithHTTPClient(client *http.Client) *GetHaproxyProcessInfoParams

NewGetHaproxyProcessInfoParamsWithHTTPClient creates a new GetHaproxyProcessInfoParams object with the ability to set a custom HTTPClient for a request.

func NewGetHaproxyProcessInfoParamsWithTimeout

func NewGetHaproxyProcessInfoParamsWithTimeout(timeout time.Duration) *GetHaproxyProcessInfoParams

NewGetHaproxyProcessInfoParamsWithTimeout creates a new GetHaproxyProcessInfoParams object with the ability to set a timeout on a request.

func (*GetHaproxyProcessInfoParams) SetContext

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

SetContext adds the context to the get haproxy process info params

func (*GetHaproxyProcessInfoParams) SetDefaults

func (o *GetHaproxyProcessInfoParams) SetDefaults()

SetDefaults hydrates default values in the get haproxy process info params (not the query body).

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

func (*GetHaproxyProcessInfoParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get haproxy process info params

func (*GetHaproxyProcessInfoParams) SetTimeout

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

SetTimeout adds the timeout to the get haproxy process info params

func (*GetHaproxyProcessInfoParams) WithContext

WithContext adds the context to the get haproxy process info params

func (*GetHaproxyProcessInfoParams) WithDefaults

WithDefaults hydrates default values in the get haproxy process info params (not the query body).

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

func (*GetHaproxyProcessInfoParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get haproxy process info params

func (*GetHaproxyProcessInfoParams) WithTimeout

WithTimeout adds the timeout to the get haproxy process info params

func (*GetHaproxyProcessInfoParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetHaproxyProcessInfoReader

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

GetHaproxyProcessInfoReader is a Reader for the GetHaproxyProcessInfo structure.

func (*GetHaproxyProcessInfoReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetInfoDefault

type GetInfoDefault struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
	// contains filtered or unexported fields
}
GetInfoDefault describes a response with status code -1, with default header values.

General Error

func NewGetInfoDefault

func NewGetInfoDefault(code int) *GetInfoDefault

NewGetInfoDefault creates a GetInfoDefault with default headers values

func (*GetInfoDefault) Code

func (o *GetInfoDefault) Code() int

Code gets the status code for the get info default response

func (*GetInfoDefault) Error

func (o *GetInfoDefault) Error() string

func (*GetInfoDefault) GetPayload

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

type GetInfoOK

type GetInfoOK struct {
	Payload *models.Info
}
GetInfoOK describes a response with status code 200, with default header values.

Success

func NewGetInfoOK

func NewGetInfoOK() *GetInfoOK

NewGetInfoOK creates a GetInfoOK with default headers values

func (*GetInfoOK) Error

func (o *GetInfoOK) Error() string

func (*GetInfoOK) GetPayload

func (o *GetInfoOK) GetPayload() *models.Info

type GetInfoParams

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

GetInfoParams contains all the parameters to send to the API endpoint

for the get info operation.

Typically these are written to a http.Request.

func NewGetInfoParams

func NewGetInfoParams() *GetInfoParams

NewGetInfoParams creates a new GetInfoParams 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 NewGetInfoParamsWithContext

func NewGetInfoParamsWithContext(ctx context.Context) *GetInfoParams

NewGetInfoParamsWithContext creates a new GetInfoParams object with the ability to set a context for a request.

func NewGetInfoParamsWithHTTPClient

func NewGetInfoParamsWithHTTPClient(client *http.Client) *GetInfoParams

NewGetInfoParamsWithHTTPClient creates a new GetInfoParams object with the ability to set a custom HTTPClient for a request.

func NewGetInfoParamsWithTimeout

func NewGetInfoParamsWithTimeout(timeout time.Duration) *GetInfoParams

NewGetInfoParamsWithTimeout creates a new GetInfoParams object with the ability to set a timeout on a request.

func (*GetInfoParams) SetContext

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

SetContext adds the context to the get info params

func (*GetInfoParams) SetDefaults

func (o *GetInfoParams) SetDefaults()

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

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

func (*GetInfoParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get info params

func (*GetInfoParams) SetTimeout

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

SetTimeout adds the timeout to the get info params

func (*GetInfoParams) WithContext

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

WithContext adds the context to the get info params

func (*GetInfoParams) WithDefaults

func (o *GetInfoParams) WithDefaults() *GetInfoParams

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

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

func (*GetInfoParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get info params

func (*GetInfoParams) WithTimeout

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

WithTimeout adds the timeout to the get info params

func (*GetInfoParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetInfoReader

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

GetInfoReader is a Reader for the GetInfo structure.

func (*GetInfoReader) ReadResponse

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