Documentation
¶
Index ¶
- type Client
- func (a *Client) GetHaproxyProcessInfo(params *GetHaproxyProcessInfoParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetHaproxyProcessInfoOK, error)
- func (a *Client) GetInfo(params *GetInfoParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetInfoOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type GetHaproxyProcessInfoDefault
- func (o *GetHaproxyProcessInfoDefault) Code() int
- func (o *GetHaproxyProcessInfoDefault) Error() string
- func (o *GetHaproxyProcessInfoDefault) GetPayload() *models.Error
- func (o *GetHaproxyProcessInfoDefault) IsClientError() bool
- func (o *GetHaproxyProcessInfoDefault) IsCode(code int) bool
- func (o *GetHaproxyProcessInfoDefault) IsRedirect() bool
- func (o *GetHaproxyProcessInfoDefault) IsServerError() bool
- func (o *GetHaproxyProcessInfoDefault) IsSuccess() bool
- func (o *GetHaproxyProcessInfoDefault) String() string
- type GetHaproxyProcessInfoOK
- func (o *GetHaproxyProcessInfoOK) Code() int
- func (o *GetHaproxyProcessInfoOK) Error() string
- func (o *GetHaproxyProcessInfoOK) GetPayload() models.ProcessInfos
- func (o *GetHaproxyProcessInfoOK) IsClientError() bool
- func (o *GetHaproxyProcessInfoOK) IsCode(code int) bool
- func (o *GetHaproxyProcessInfoOK) IsRedirect() bool
- func (o *GetHaproxyProcessInfoOK) IsServerError() bool
- func (o *GetHaproxyProcessInfoOK) IsSuccess() bool
- func (o *GetHaproxyProcessInfoOK) String() string
- type GetHaproxyProcessInfoParams
- func NewGetHaproxyProcessInfoParams() *GetHaproxyProcessInfoParams
- func NewGetHaproxyProcessInfoParamsWithContext(ctx context.Context) *GetHaproxyProcessInfoParams
- func NewGetHaproxyProcessInfoParamsWithHTTPClient(client *http.Client) *GetHaproxyProcessInfoParams
- func NewGetHaproxyProcessInfoParamsWithTimeout(timeout time.Duration) *GetHaproxyProcessInfoParams
- func (o *GetHaproxyProcessInfoParams) SetContext(ctx context.Context)
- func (o *GetHaproxyProcessInfoParams) SetDefaults()
- func (o *GetHaproxyProcessInfoParams) SetHTTPClient(client *http.Client)
- func (o *GetHaproxyProcessInfoParams) SetTimeout(timeout time.Duration)
- func (o *GetHaproxyProcessInfoParams) WithContext(ctx context.Context) *GetHaproxyProcessInfoParams
- func (o *GetHaproxyProcessInfoParams) WithDefaults() *GetHaproxyProcessInfoParams
- func (o *GetHaproxyProcessInfoParams) WithHTTPClient(client *http.Client) *GetHaproxyProcessInfoParams
- func (o *GetHaproxyProcessInfoParams) WithTimeout(timeout time.Duration) *GetHaproxyProcessInfoParams
- func (o *GetHaproxyProcessInfoParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetHaproxyProcessInfoReader
- type GetInfoDefault
- func (o *GetInfoDefault) Code() int
- func (o *GetInfoDefault) Error() string
- func (o *GetInfoDefault) GetPayload() *models.Error
- func (o *GetInfoDefault) IsClientError() bool
- func (o *GetInfoDefault) IsCode(code int) bool
- func (o *GetInfoDefault) IsRedirect() bool
- func (o *GetInfoDefault) IsServerError() bool
- func (o *GetInfoDefault) IsSuccess() bool
- func (o *GetInfoDefault) String() string
- type GetInfoOK
- func (o *GetInfoOK) Code() int
- func (o *GetInfoOK) Error() string
- func (o *GetInfoOK) GetPayload() *models.Info
- func (o *GetInfoOK) IsClientError() bool
- func (o *GetInfoOK) IsCode(code int) bool
- func (o *GetInfoOK) IsRedirect() bool
- func (o *GetInfoOK) IsServerError() bool
- func (o *GetInfoOK) IsSuccess() bool
- func (o *GetInfoOK) String() string
- type GetInfoParams
- func (o *GetInfoParams) SetContext(ctx context.Context)
- func (o *GetInfoParams) SetDefaults()
- func (o *GetInfoParams) SetHTTPClient(client *http.Client)
- func (o *GetInfoParams) SetTimeout(timeout time.Duration)
- func (o *GetInfoParams) WithContext(ctx context.Context) *GetInfoParams
- func (o *GetInfoParams) WithDefaults() *GetInfoParams
- func (o *GetInfoParams) WithHTTPClient(client *http.Client) *GetInfoParams
- func (o *GetInfoParams) WithTimeout(timeout time.Duration) *GetInfoParams
- func (o *GetInfoParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetInfoReader
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 ¶
func (o *GetHaproxyProcessInfoDefault) Code() int
Code gets the status code for the get haproxy process info default response
func (*GetHaproxyProcessInfoDefault) Error ¶
func (o *GetHaproxyProcessInfoDefault) Error() string
func (*GetHaproxyProcessInfoDefault) GetPayload ¶
func (o *GetHaproxyProcessInfoDefault) GetPayload() *models.Error
func (*GetHaproxyProcessInfoDefault) IsClientError ¶ added in v1.1.0
func (o *GetHaproxyProcessInfoDefault) IsClientError() bool
IsClientError returns true when this get haproxy process info default response has a 4xx status code
func (*GetHaproxyProcessInfoDefault) IsCode ¶ added in v1.1.0
func (o *GetHaproxyProcessInfoDefault) IsCode(code int) bool
IsCode returns true when this get haproxy process info default response a status code equal to that given
func (*GetHaproxyProcessInfoDefault) IsRedirect ¶ added in v1.1.0
func (o *GetHaproxyProcessInfoDefault) IsRedirect() bool
IsRedirect returns true when this get haproxy process info default response has a 3xx status code
func (*GetHaproxyProcessInfoDefault) IsServerError ¶ added in v1.1.0
func (o *GetHaproxyProcessInfoDefault) IsServerError() bool
IsServerError returns true when this get haproxy process info default response has a 5xx status code
func (*GetHaproxyProcessInfoDefault) IsSuccess ¶ added in v1.1.0
func (o *GetHaproxyProcessInfoDefault) IsSuccess() bool
IsSuccess returns true when this get haproxy process info default response has a 2xx status code
func (*GetHaproxyProcessInfoDefault) String ¶ added in v1.1.0
func (o *GetHaproxyProcessInfoDefault) String() string
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) Code ¶ added in v1.1.5
func (o *GetHaproxyProcessInfoOK) Code() int
Code gets the status code for the get haproxy process info o k response
func (*GetHaproxyProcessInfoOK) Error ¶
func (o *GetHaproxyProcessInfoOK) Error() string
func (*GetHaproxyProcessInfoOK) GetPayload ¶
func (o *GetHaproxyProcessInfoOK) GetPayload() models.ProcessInfos
func (*GetHaproxyProcessInfoOK) IsClientError ¶ added in v1.1.0
func (o *GetHaproxyProcessInfoOK) IsClientError() bool
IsClientError returns true when this get haproxy process info o k response has a 4xx status code
func (*GetHaproxyProcessInfoOK) IsCode ¶ added in v1.1.0
func (o *GetHaproxyProcessInfoOK) IsCode(code int) bool
IsCode returns true when this get haproxy process info o k response a status code equal to that given
func (*GetHaproxyProcessInfoOK) IsRedirect ¶ added in v1.1.0
func (o *GetHaproxyProcessInfoOK) IsRedirect() bool
IsRedirect returns true when this get haproxy process info o k response has a 3xx status code
func (*GetHaproxyProcessInfoOK) IsServerError ¶ added in v1.1.0
func (o *GetHaproxyProcessInfoOK) IsServerError() bool
IsServerError returns true when this get haproxy process info o k response has a 5xx status code
func (*GetHaproxyProcessInfoOK) IsSuccess ¶ added in v1.1.0
func (o *GetHaproxyProcessInfoOK) IsSuccess() bool
IsSuccess returns true when this get haproxy process info o k response has a 2xx status code
func (*GetHaproxyProcessInfoOK) String ¶ added in v1.1.0
func (o *GetHaproxyProcessInfoOK) String() string
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 ¶
func (o *GetHaproxyProcessInfoParams) WithContext(ctx context.Context) *GetHaproxyProcessInfoParams
WithContext adds the context to the get haproxy process info params
func (*GetHaproxyProcessInfoParams) WithDefaults ¶
func (o *GetHaproxyProcessInfoParams) WithDefaults() *GetHaproxyProcessInfoParams
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 ¶
func (o *GetHaproxyProcessInfoParams) WithHTTPClient(client *http.Client) *GetHaproxyProcessInfoParams
WithHTTPClient adds the HTTPClient to the get haproxy process info params
func (*GetHaproxyProcessInfoParams) WithTimeout ¶
func (o *GetHaproxyProcessInfoParams) WithTimeout(timeout time.Duration) *GetHaproxyProcessInfoParams
WithTimeout adds the timeout to the get haproxy process info params
func (*GetHaproxyProcessInfoParams) WriteToRequest ¶
func (o *GetHaproxyProcessInfoParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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
func (*GetInfoDefault) IsClientError ¶ added in v1.1.0
func (o *GetInfoDefault) IsClientError() bool
IsClientError returns true when this get info default response has a 4xx status code
func (*GetInfoDefault) IsCode ¶ added in v1.1.0
func (o *GetInfoDefault) IsCode(code int) bool
IsCode returns true when this get info default response a status code equal to that given
func (*GetInfoDefault) IsRedirect ¶ added in v1.1.0
func (o *GetInfoDefault) IsRedirect() bool
IsRedirect returns true when this get info default response has a 3xx status code
func (*GetInfoDefault) IsServerError ¶ added in v1.1.0
func (o *GetInfoDefault) IsServerError() bool
IsServerError returns true when this get info default response has a 5xx status code
func (*GetInfoDefault) IsSuccess ¶ added in v1.1.0
func (o *GetInfoDefault) IsSuccess() bool
IsSuccess returns true when this get info default response has a 2xx status code
func (*GetInfoDefault) String ¶ added in v1.1.0
func (o *GetInfoDefault) String() string
type GetInfoOK ¶
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) GetPayload ¶
func (*GetInfoOK) IsClientError ¶ added in v1.1.0
IsClientError returns true when this get info o k response has a 4xx status code
func (*GetInfoOK) IsCode ¶ added in v1.1.0
IsCode returns true when this get info o k response a status code equal to that given
func (*GetInfoOK) IsRedirect ¶ added in v1.1.0
IsRedirect returns true when this get info o k response has a 3xx status code
func (*GetInfoOK) IsServerError ¶ added in v1.1.0
IsServerError returns true when this get info o k response has a 5xx status code
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.