information

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 information API

func (*Client) GetHaproxyProcessInfo

func (a *Client) GetHaproxyProcessInfo(params *GetHaproxyProcessInfoParams, authInfo runtime.ClientAuthInfoWriter) (*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) (*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 ClientService added in v0.2.0

type ClientService interface {
	GetHaproxyProcessInfo(params *GetHaproxyProcessInfoParams, authInfo runtime.ClientAuthInfoWriter) (*GetHaproxyProcessInfoOK, error)

	GetInfo(params *GetInfoParams, authInfo runtime.ClientAuthInfoWriter) (*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 int64

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

GetHaproxyProcessInfoDefault handles this case 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 added in v0.2.0

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

type GetHaproxyProcessInfoOK

type GetHaproxyProcessInfoOK struct {
	Payload models.ProcessInfos
}

GetHaproxyProcessInfoOK handles this case 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 added in v0.2.0

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 values initialized.

func NewGetHaproxyProcessInfoParamsWithContext

func NewGetHaproxyProcessInfoParamsWithContext(ctx context.Context) *GetHaproxyProcessInfoParams

NewGetHaproxyProcessInfoParamsWithContext creates a new GetHaproxyProcessInfoParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 int64

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

GetInfoDefault handles this case 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 added in v0.2.0

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

type GetInfoOK

type GetInfoOK struct {
	Payload *models.Info
}

GetInfoOK handles this case 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 added in v0.2.0

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 values initialized.

func NewGetInfoParamsWithContext

func NewGetInfoParamsWithContext(ctx context.Context) *GetInfoParams

NewGetInfoParamsWithContext creates a new GetInfoParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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