Documentation
¶
Index ¶
- type ChangeSettingsBody
- type ChangeSettingsDefault
- type ChangeSettingsDefaultBody
- type ChangeSettingsOK
- type ChangeSettingsOKBody
- type ChangeSettingsOKBodySettings
- type ChangeSettingsOKBodySettingsMetricsResolutions
- type ChangeSettingsParams
- func NewChangeSettingsParams() *ChangeSettingsParams
- func NewChangeSettingsParamsWithContext(ctx context.Context) *ChangeSettingsParams
- func NewChangeSettingsParamsWithHTTPClient(client *http.Client) *ChangeSettingsParams
- func NewChangeSettingsParamsWithTimeout(timeout time.Duration) *ChangeSettingsParams
- func (o *ChangeSettingsParams) SetBody(body ChangeSettingsBody)
- func (o *ChangeSettingsParams) SetContext(ctx context.Context)
- func (o *ChangeSettingsParams) SetHTTPClient(client *http.Client)
- func (o *ChangeSettingsParams) SetTimeout(timeout time.Duration)
- func (o *ChangeSettingsParams) WithBody(body ChangeSettingsBody) *ChangeSettingsParams
- func (o *ChangeSettingsParams) WithContext(ctx context.Context) *ChangeSettingsParams
- func (o *ChangeSettingsParams) WithHTTPClient(client *http.Client) *ChangeSettingsParams
- func (o *ChangeSettingsParams) WithTimeout(timeout time.Duration) *ChangeSettingsParams
- func (o *ChangeSettingsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ChangeSettingsParamsBodyMetricsResolutions
- type ChangeSettingsReader
- type Client
- func (a *Client) ChangeSettings(params *ChangeSettingsParams) (*ChangeSettingsOK, error)
- func (a *Client) GetSettings(params *GetSettingsParams) (*GetSettingsOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) Version(params *VersionParams) (*VersionOK, error)
- type GetSettingsDefault
- type GetSettingsDefaultBody
- type GetSettingsOK
- type GetSettingsOKBody
- type GetSettingsOKBodySettings
- type GetSettingsOKBodySettingsMetricsResolutions
- type GetSettingsParams
- func (o *GetSettingsParams) SetBody(body interface{})
- func (o *GetSettingsParams) SetContext(ctx context.Context)
- func (o *GetSettingsParams) SetHTTPClient(client *http.Client)
- func (o *GetSettingsParams) SetTimeout(timeout time.Duration)
- func (o *GetSettingsParams) WithBody(body interface{}) *GetSettingsParams
- func (o *GetSettingsParams) WithContext(ctx context.Context) *GetSettingsParams
- func (o *GetSettingsParams) WithHTTPClient(client *http.Client) *GetSettingsParams
- func (o *GetSettingsParams) WithTimeout(timeout time.Duration) *GetSettingsParams
- func (o *GetSettingsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetSettingsReader
- 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 ChangeSettingsBody ¶
type ChangeSettingsBody struct {
// disable telemetry
DisableTelemetry bool `json:"disable_telemetry,omitempty"`
// enable telemetry
EnableTelemetry bool `json:"enable_telemetry,omitempty"`
// metrics resolutions
MetricsResolutions *ChangeSettingsParamsBodyMetricsResolutions `json:"metrics_resolutions,omitempty"`
}
ChangeSettingsBody change settings body swagger:model ChangeSettingsBody
func (*ChangeSettingsBody) MarshalBinary ¶
func (o *ChangeSettingsBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ChangeSettingsBody) UnmarshalBinary ¶
func (o *ChangeSettingsBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ChangeSettingsDefault ¶
type ChangeSettingsDefault struct {
Payload *ChangeSettingsDefaultBody
// contains filtered or unexported fields
}
ChangeSettingsDefault handles this case with default header values.
An error response.
func NewChangeSettingsDefault ¶
func NewChangeSettingsDefault(code int) *ChangeSettingsDefault
NewChangeSettingsDefault creates a ChangeSettingsDefault with default headers values
func (*ChangeSettingsDefault) Code ¶
func (o *ChangeSettingsDefault) Code() int
Code gets the status code for the change settings default response
func (*ChangeSettingsDefault) Error ¶
func (o *ChangeSettingsDefault) Error() string
type ChangeSettingsDefaultBody ¶
type ChangeSettingsDefaultBody struct {
// code
Code int32 `json:"code,omitempty"`
// error
Error string `json:"error,omitempty"`
// message
Message string `json:"message,omitempty"`
}
ChangeSettingsDefaultBody ErrorResponse is a message returned on HTTP error. swagger:model ChangeSettingsDefaultBody
func (*ChangeSettingsDefaultBody) MarshalBinary ¶
func (o *ChangeSettingsDefaultBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ChangeSettingsDefaultBody) UnmarshalBinary ¶
func (o *ChangeSettingsDefaultBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ChangeSettingsOK ¶
type ChangeSettingsOK struct {
Payload *ChangeSettingsOKBody
}
ChangeSettingsOK handles this case with default header values.
A successful response.
func NewChangeSettingsOK ¶
func NewChangeSettingsOK() *ChangeSettingsOK
NewChangeSettingsOK creates a ChangeSettingsOK with default headers values
func (*ChangeSettingsOK) Error ¶
func (o *ChangeSettingsOK) Error() string
type ChangeSettingsOKBody ¶
type ChangeSettingsOKBody struct {
// settings
Settings *ChangeSettingsOKBodySettings `json:"settings,omitempty"`
}
ChangeSettingsOKBody change settings OK body swagger:model ChangeSettingsOKBody
func (*ChangeSettingsOKBody) MarshalBinary ¶
func (o *ChangeSettingsOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ChangeSettingsOKBody) UnmarshalBinary ¶
func (o *ChangeSettingsOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ChangeSettingsOKBodySettings ¶
type ChangeSettingsOKBodySettings struct {
// metrics resolutions
MetricsResolutions *ChangeSettingsOKBodySettingsMetricsResolutions `json:"metrics_resolutions,omitempty"`
// telemetry
Telemetry bool `json:"telemetry,omitempty"`
}
ChangeSettingsOKBodySettings Settings represents PMM Server settings. swagger:model ChangeSettingsOKBodySettings
func (*ChangeSettingsOKBodySettings) MarshalBinary ¶
func (o *ChangeSettingsOKBodySettings) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ChangeSettingsOKBodySettings) UnmarshalBinary ¶
func (o *ChangeSettingsOKBodySettings) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ChangeSettingsOKBodySettingsMetricsResolutions ¶
type ChangeSettingsOKBodySettingsMetricsResolutions struct {
// High resolution. Suffix 's' is required in JSON: 1s, 60s, 300s.
Hr string `json:"hr,omitempty"`
// Low resolution. Suffix 's' is required in JSON: 1s, 60s, 300s.
Lr string `json:"lr,omitempty"`
// Medium resolution. Suffix 's' is required in JSON: 1s, 60s, 300s.
Mr string `json:"mr,omitempty"`
}
ChangeSettingsOKBodySettingsMetricsResolutions MetricsResolutions represents Prometheus exporters metrics resolutions. swagger:model ChangeSettingsOKBodySettingsMetricsResolutions
func (*ChangeSettingsOKBodySettingsMetricsResolutions) MarshalBinary ¶
func (o *ChangeSettingsOKBodySettingsMetricsResolutions) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ChangeSettingsOKBodySettingsMetricsResolutions) UnmarshalBinary ¶
func (o *ChangeSettingsOKBodySettingsMetricsResolutions) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ChangeSettingsParams ¶
type ChangeSettingsParams struct {
/*Body*/
Body ChangeSettingsBody
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
ChangeSettingsParams contains all the parameters to send to the API endpoint for the change settings operation typically these are written to a http.Request
func NewChangeSettingsParams ¶
func NewChangeSettingsParams() *ChangeSettingsParams
NewChangeSettingsParams creates a new ChangeSettingsParams object with the default values initialized.
func NewChangeSettingsParamsWithContext ¶
func NewChangeSettingsParamsWithContext(ctx context.Context) *ChangeSettingsParams
NewChangeSettingsParamsWithContext creates a new ChangeSettingsParams object with the default values initialized, and the ability to set a context for a request
func NewChangeSettingsParamsWithHTTPClient ¶
func NewChangeSettingsParamsWithHTTPClient(client *http.Client) *ChangeSettingsParams
NewChangeSettingsParamsWithHTTPClient creates a new ChangeSettingsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewChangeSettingsParamsWithTimeout ¶
func NewChangeSettingsParamsWithTimeout(timeout time.Duration) *ChangeSettingsParams
NewChangeSettingsParamsWithTimeout creates a new ChangeSettingsParams object with the default values initialized, and the ability to set a timeout on a request
func (*ChangeSettingsParams) SetBody ¶
func (o *ChangeSettingsParams) SetBody(body ChangeSettingsBody)
SetBody adds the body to the change settings params
func (*ChangeSettingsParams) SetContext ¶
func (o *ChangeSettingsParams) SetContext(ctx context.Context)
SetContext adds the context to the change settings params
func (*ChangeSettingsParams) SetHTTPClient ¶
func (o *ChangeSettingsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the change settings params
func (*ChangeSettingsParams) SetTimeout ¶
func (o *ChangeSettingsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the change settings params
func (*ChangeSettingsParams) WithBody ¶
func (o *ChangeSettingsParams) WithBody(body ChangeSettingsBody) *ChangeSettingsParams
WithBody adds the body to the change settings params
func (*ChangeSettingsParams) WithContext ¶
func (o *ChangeSettingsParams) WithContext(ctx context.Context) *ChangeSettingsParams
WithContext adds the context to the change settings params
func (*ChangeSettingsParams) WithHTTPClient ¶
func (o *ChangeSettingsParams) WithHTTPClient(client *http.Client) *ChangeSettingsParams
WithHTTPClient adds the HTTPClient to the change settings params
func (*ChangeSettingsParams) WithTimeout ¶
func (o *ChangeSettingsParams) WithTimeout(timeout time.Duration) *ChangeSettingsParams
WithTimeout adds the timeout to the change settings params
func (*ChangeSettingsParams) WriteToRequest ¶
func (o *ChangeSettingsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ChangeSettingsParamsBodyMetricsResolutions ¶
type ChangeSettingsParamsBodyMetricsResolutions struct {
// High resolution. Suffix 's' is required in JSON: 1s, 60s, 300s.
Hr string `json:"hr,omitempty"`
// Low resolution. Suffix 's' is required in JSON: 1s, 60s, 300s.
Lr string `json:"lr,omitempty"`
// Medium resolution. Suffix 's' is required in JSON: 1s, 60s, 300s.
Mr string `json:"mr,omitempty"`
}
ChangeSettingsParamsBodyMetricsResolutions MetricsResolutions represents Prometheus exporters metrics resolutions. swagger:model ChangeSettingsParamsBodyMetricsResolutions
func (*ChangeSettingsParamsBodyMetricsResolutions) MarshalBinary ¶
func (o *ChangeSettingsParamsBodyMetricsResolutions) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ChangeSettingsParamsBodyMetricsResolutions) UnmarshalBinary ¶
func (o *ChangeSettingsParamsBodyMetricsResolutions) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ChangeSettingsReader ¶
type ChangeSettingsReader struct {
// contains filtered or unexported fields
}
ChangeSettingsReader is a Reader for the ChangeSettings structure.
func (*ChangeSettingsReader) ReadResponse ¶
func (o *ChangeSettingsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
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) ChangeSettings ¶
func (a *Client) ChangeSettings(params *ChangeSettingsParams) (*ChangeSettingsOK, error)
ChangeSettings changes settings changes PMM server settings
func (*Client) GetSettings ¶
func (a *Client) GetSettings(params *GetSettingsParams) (*GetSettingsOK, error)
GetSettings gets settings returns current PMM server settings
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type GetSettingsDefault ¶
type GetSettingsDefault struct {
Payload *GetSettingsDefaultBody
// contains filtered or unexported fields
}
GetSettingsDefault handles this case with default header values.
An error response.
func NewGetSettingsDefault ¶
func NewGetSettingsDefault(code int) *GetSettingsDefault
NewGetSettingsDefault creates a GetSettingsDefault with default headers values
func (*GetSettingsDefault) Code ¶
func (o *GetSettingsDefault) Code() int
Code gets the status code for the get settings default response
func (*GetSettingsDefault) Error ¶
func (o *GetSettingsDefault) Error() string
type GetSettingsDefaultBody ¶
type GetSettingsDefaultBody struct {
// code
Code int32 `json:"code,omitempty"`
// error
Error string `json:"error,omitempty"`
// message
Message string `json:"message,omitempty"`
}
GetSettingsDefaultBody ErrorResponse is a message returned on HTTP error. swagger:model GetSettingsDefaultBody
func (*GetSettingsDefaultBody) MarshalBinary ¶
func (o *GetSettingsDefaultBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetSettingsDefaultBody) UnmarshalBinary ¶
func (o *GetSettingsDefaultBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetSettingsOK ¶
type GetSettingsOK struct {
Payload *GetSettingsOKBody
}
GetSettingsOK handles this case with default header values.
A successful response.
func NewGetSettingsOK ¶
func NewGetSettingsOK() *GetSettingsOK
NewGetSettingsOK creates a GetSettingsOK with default headers values
func (*GetSettingsOK) Error ¶
func (o *GetSettingsOK) Error() string
type GetSettingsOKBody ¶
type GetSettingsOKBody struct {
// settings
Settings *GetSettingsOKBodySettings `json:"settings,omitempty"`
}
GetSettingsOKBody get settings OK body swagger:model GetSettingsOKBody
func (*GetSettingsOKBody) MarshalBinary ¶
func (o *GetSettingsOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetSettingsOKBody) UnmarshalBinary ¶
func (o *GetSettingsOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetSettingsOKBodySettings ¶
type GetSettingsOKBodySettings struct {
// metrics resolutions
MetricsResolutions *GetSettingsOKBodySettingsMetricsResolutions `json:"metrics_resolutions,omitempty"`
// telemetry
Telemetry bool `json:"telemetry,omitempty"`
}
GetSettingsOKBodySettings Settings represents PMM Server settings. swagger:model GetSettingsOKBodySettings
func (*GetSettingsOKBodySettings) MarshalBinary ¶
func (o *GetSettingsOKBodySettings) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetSettingsOKBodySettings) UnmarshalBinary ¶
func (o *GetSettingsOKBodySettings) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetSettingsOKBodySettingsMetricsResolutions ¶
type GetSettingsOKBodySettingsMetricsResolutions struct {
// High resolution. Suffix 's' is required in JSON: 1s, 60s, 300s.
Hr string `json:"hr,omitempty"`
// Low resolution. Suffix 's' is required in JSON: 1s, 60s, 300s.
Lr string `json:"lr,omitempty"`
// Medium resolution. Suffix 's' is required in JSON: 1s, 60s, 300s.
Mr string `json:"mr,omitempty"`
}
GetSettingsOKBodySettingsMetricsResolutions MetricsResolutions represents Prometheus exporters metrics resolutions. swagger:model GetSettingsOKBodySettingsMetricsResolutions
func (*GetSettingsOKBodySettingsMetricsResolutions) MarshalBinary ¶
func (o *GetSettingsOKBodySettingsMetricsResolutions) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetSettingsOKBodySettingsMetricsResolutions) UnmarshalBinary ¶
func (o *GetSettingsOKBodySettingsMetricsResolutions) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetSettingsParams ¶
type GetSettingsParams struct {
/*Body*/
Body interface{}
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
GetSettingsParams contains all the parameters to send to the API endpoint for the get settings operation typically these are written to a http.Request
func NewGetSettingsParams ¶
func NewGetSettingsParams() *GetSettingsParams
NewGetSettingsParams creates a new GetSettingsParams object with the default values initialized.
func NewGetSettingsParamsWithContext ¶
func NewGetSettingsParamsWithContext(ctx context.Context) *GetSettingsParams
NewGetSettingsParamsWithContext creates a new GetSettingsParams object with the default values initialized, and the ability to set a context for a request
func NewGetSettingsParamsWithHTTPClient ¶
func NewGetSettingsParamsWithHTTPClient(client *http.Client) *GetSettingsParams
NewGetSettingsParamsWithHTTPClient creates a new GetSettingsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetSettingsParamsWithTimeout ¶
func NewGetSettingsParamsWithTimeout(timeout time.Duration) *GetSettingsParams
NewGetSettingsParamsWithTimeout creates a new GetSettingsParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetSettingsParams) SetBody ¶
func (o *GetSettingsParams) SetBody(body interface{})
SetBody adds the body to the get settings params
func (*GetSettingsParams) SetContext ¶
func (o *GetSettingsParams) SetContext(ctx context.Context)
SetContext adds the context to the get settings params
func (*GetSettingsParams) SetHTTPClient ¶
func (o *GetSettingsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get settings params
func (*GetSettingsParams) SetTimeout ¶
func (o *GetSettingsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get settings params
func (*GetSettingsParams) WithBody ¶
func (o *GetSettingsParams) WithBody(body interface{}) *GetSettingsParams
WithBody adds the body to the get settings params
func (*GetSettingsParams) WithContext ¶
func (o *GetSettingsParams) WithContext(ctx context.Context) *GetSettingsParams
WithContext adds the context to the get settings params
func (*GetSettingsParams) WithHTTPClient ¶
func (o *GetSettingsParams) WithHTTPClient(client *http.Client) *GetSettingsParams
WithHTTPClient adds the HTTPClient to the get settings params
func (*GetSettingsParams) WithTimeout ¶
func (o *GetSettingsParams) WithTimeout(timeout time.Duration) *GetSettingsParams
WithTimeout adds the timeout to the get settings params
func (*GetSettingsParams) WriteToRequest ¶
func (o *GetSettingsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetSettingsReader ¶
type GetSettingsReader struct {
// contains filtered or unexported fields
}
GetSettingsReader is a Reader for the GetSettings structure.
func (*GetSettingsReader) ReadResponse ¶
func (o *GetSettingsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
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.