Documentation
¶
Index ¶
- type Client
- type VersionDefault
- type VersionDefaultBody
- type VersionOK
- type VersionOKBody
- type VersionParams
- func (o *VersionParams) SetContext(ctx context.Context)
- func (o *VersionParams) SetHTTPClient(client *http.Client)
- func (o *VersionParams) SetTimeout(timeout time.Duration)
- func (o *VersionParams) WithContext(ctx context.Context) *VersionParams
- func (o *VersionParams) WithHTTPClient(client *http.Client) *VersionParams
- func (o *VersionParams) WithTimeout(timeout time.Duration) *VersionParams
- func (o *VersionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type VersionReader
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 server API
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client
New creates a new server API client.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type VersionDefault ¶
type VersionDefault struct {
Payload *VersionDefaultBody
// contains filtered or unexported fields
}
VersionDefault handles this case with default header values.
An error response.
func NewVersionDefault ¶
func NewVersionDefault(code int) *VersionDefault
NewVersionDefault creates a VersionDefault with default headers values
func (*VersionDefault) Code ¶
func (o *VersionDefault) Code() int
Code gets the status code for the version default response
func (*VersionDefault) Error ¶
func (o *VersionDefault) Error() string
type VersionDefaultBody ¶
type VersionDefaultBody struct {
// code
Code int32 `json:"code,omitempty"`
// error
Error string `json:"error,omitempty"`
// message
Message string `json:"message,omitempty"`
}
VersionDefaultBody ErrorResponse is a message returned on HTTP error. swagger:model VersionDefaultBody
func (*VersionDefaultBody) MarshalBinary ¶
func (o *VersionDefaultBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*VersionDefaultBody) UnmarshalBinary ¶
func (o *VersionDefaultBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type VersionOK ¶
type VersionOK struct {
Payload *VersionOKBody
}
VersionOK handles this case with default header values.
A successful response.
func NewVersionOK ¶
func NewVersionOK() *VersionOK
NewVersionOK creates a VersionOK with default headers values
type VersionOKBody ¶
type VersionOKBody struct {
// pmm-managed commit.
PMMManagedCommit string `json:"pmm_managed_commit,omitempty"`
// Build timestamp.
// Format: date-time
Timestamp strfmt.DateTime `json:"timestamp,omitempty"`
// Full PMM version.
Version string `json:"version,omitempty"`
}
VersionOKBody version OK body swagger:model VersionOKBody
func (*VersionOKBody) MarshalBinary ¶
func (o *VersionOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*VersionOKBody) UnmarshalBinary ¶
func (o *VersionOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type VersionParams ¶
type VersionParams struct {
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
VersionParams contains all the parameters to send to the API endpoint for the version operation typically these are written to a http.Request
func NewVersionParams ¶
func NewVersionParams() *VersionParams
NewVersionParams creates a new VersionParams object with the default values initialized.
func NewVersionParamsWithContext ¶
func NewVersionParamsWithContext(ctx context.Context) *VersionParams
NewVersionParamsWithContext creates a new VersionParams object with the default values initialized, and the ability to set a context for a request
func NewVersionParamsWithHTTPClient ¶
func NewVersionParamsWithHTTPClient(client *http.Client) *VersionParams
NewVersionParamsWithHTTPClient creates a new VersionParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewVersionParamsWithTimeout ¶
func NewVersionParamsWithTimeout(timeout time.Duration) *VersionParams
NewVersionParamsWithTimeout creates a new VersionParams object with the default values initialized, and the ability to set a timeout on a request
func (*VersionParams) SetContext ¶
func (o *VersionParams) SetContext(ctx context.Context)
SetContext adds the context to the version params
func (*VersionParams) SetHTTPClient ¶
func (o *VersionParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the version params
func (*VersionParams) SetTimeout ¶
func (o *VersionParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the version params
func (*VersionParams) WithContext ¶
func (o *VersionParams) WithContext(ctx context.Context) *VersionParams
WithContext adds the context to the version params
func (*VersionParams) WithHTTPClient ¶
func (o *VersionParams) WithHTTPClient(client *http.Client) *VersionParams
WithHTTPClient adds the HTTPClient to the version params
func (*VersionParams) WithTimeout ¶
func (o *VersionParams) WithTimeout(timeout time.Duration) *VersionParams
WithTimeout adds the timeout to the version params
func (*VersionParams) WriteToRequest ¶
func (o *VersionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type VersionReader ¶
type VersionReader struct {
// contains filtered or unexported fields
}
VersionReader is a Reader for the Version structure.
func (*VersionReader) ReadResponse ¶
func (o *VersionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.