Documentation ¶
Index ¶
- Constants
- type AWSInstanceCheckBody
- type AWSInstanceCheckDefault
- type AWSInstanceCheckDefaultBody
- type AWSInstanceCheckOK
- type AWSInstanceCheckParams
- func NewAWSInstanceCheckParams() *AWSInstanceCheckParams
- func NewAWSInstanceCheckParamsWithContext(ctx context.Context) *AWSInstanceCheckParams
- func NewAWSInstanceCheckParamsWithHTTPClient(client *http.Client) *AWSInstanceCheckParams
- func NewAWSInstanceCheckParamsWithTimeout(timeout time.Duration) *AWSInstanceCheckParams
- func (o *AWSInstanceCheckParams) SetBody(body AWSInstanceCheckBody)
- func (o *AWSInstanceCheckParams) SetContext(ctx context.Context)
- func (o *AWSInstanceCheckParams) SetHTTPClient(client *http.Client)
- func (o *AWSInstanceCheckParams) SetTimeout(timeout time.Duration)
- func (o *AWSInstanceCheckParams) WithBody(body AWSInstanceCheckBody) *AWSInstanceCheckParams
- func (o *AWSInstanceCheckParams) WithContext(ctx context.Context) *AWSInstanceCheckParams
- func (o *AWSInstanceCheckParams) WithHTTPClient(client *http.Client) *AWSInstanceCheckParams
- func (o *AWSInstanceCheckParams) WithTimeout(timeout time.Duration) *AWSInstanceCheckParams
- func (o *AWSInstanceCheckParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type AWSInstanceCheckReader
- 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 CheckUpdatesBody
- type CheckUpdatesDefault
- type CheckUpdatesDefaultBody
- type CheckUpdatesOK
- type CheckUpdatesOKBody
- type CheckUpdatesOKBodyInstalled
- type CheckUpdatesOKBodyLatest
- type CheckUpdatesParams
- func (o *CheckUpdatesParams) SetBody(body CheckUpdatesBody)
- func (o *CheckUpdatesParams) SetContext(ctx context.Context)
- func (o *CheckUpdatesParams) SetHTTPClient(client *http.Client)
- func (o *CheckUpdatesParams) SetTimeout(timeout time.Duration)
- func (o *CheckUpdatesParams) WithBody(body CheckUpdatesBody) *CheckUpdatesParams
- func (o *CheckUpdatesParams) WithContext(ctx context.Context) *CheckUpdatesParams
- func (o *CheckUpdatesParams) WithHTTPClient(client *http.Client) *CheckUpdatesParams
- func (o *CheckUpdatesParams) WithTimeout(timeout time.Duration) *CheckUpdatesParams
- func (o *CheckUpdatesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CheckUpdatesReader
- type Client
- func (a *Client) AWSInstanceCheck(params *AWSInstanceCheckParams) (*AWSInstanceCheckOK, error)
- func (a *Client) ChangeSettings(params *ChangeSettingsParams) (*ChangeSettingsOK, error)
- func (a *Client) CheckUpdates(params *CheckUpdatesParams) (*CheckUpdatesOK, error)
- func (a *Client) GetSettings(params *GetSettingsParams) (*GetSettingsOK, error)
- func (a *Client) Readiness(params *ReadinessParams) (*ReadinessOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) StartUpdate(params *StartUpdateParams) (*StartUpdateOK, error)
- func (a *Client) UpdateStatus(params *UpdateStatusParams) (*UpdateStatusOK, error)
- 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 ReadinessDefault
- type ReadinessDefaultBody
- type ReadinessOK
- type ReadinessParams
- func (o *ReadinessParams) SetContext(ctx context.Context)
- func (o *ReadinessParams) SetHTTPClient(client *http.Client)
- func (o *ReadinessParams) SetTimeout(timeout time.Duration)
- func (o *ReadinessParams) WithContext(ctx context.Context) *ReadinessParams
- func (o *ReadinessParams) WithHTTPClient(client *http.Client) *ReadinessParams
- func (o *ReadinessParams) WithTimeout(timeout time.Duration) *ReadinessParams
- func (o *ReadinessParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ReadinessReader
- type StartUpdateDefault
- type StartUpdateDefaultBody
- type StartUpdateOK
- type StartUpdateOKBody
- type StartUpdateParams
- func (o *StartUpdateParams) SetBody(body interface{})
- func (o *StartUpdateParams) SetContext(ctx context.Context)
- func (o *StartUpdateParams) SetHTTPClient(client *http.Client)
- func (o *StartUpdateParams) SetTimeout(timeout time.Duration)
- func (o *StartUpdateParams) WithBody(body interface{}) *StartUpdateParams
- func (o *StartUpdateParams) WithContext(ctx context.Context) *StartUpdateParams
- func (o *StartUpdateParams) WithHTTPClient(client *http.Client) *StartUpdateParams
- func (o *StartUpdateParams) WithTimeout(timeout time.Duration) *StartUpdateParams
- func (o *StartUpdateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type StartUpdateReader
- type UpdateStatusBody
- type UpdateStatusDefault
- type UpdateStatusDefaultBody
- type UpdateStatusOK
- type UpdateStatusOKBody
- type UpdateStatusParams
- func (o *UpdateStatusParams) SetBody(body UpdateStatusBody)
- func (o *UpdateStatusParams) SetContext(ctx context.Context)
- func (o *UpdateStatusParams) SetHTTPClient(client *http.Client)
- func (o *UpdateStatusParams) SetTimeout(timeout time.Duration)
- func (o *UpdateStatusParams) WithBody(body UpdateStatusBody) *UpdateStatusParams
- func (o *UpdateStatusParams) WithContext(ctx context.Context) *UpdateStatusParams
- func (o *UpdateStatusParams) WithHTTPClient(client *http.Client) *UpdateStatusParams
- func (o *UpdateStatusParams) WithTimeout(timeout time.Duration) *UpdateStatusParams
- func (o *UpdateStatusParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateStatusReader
- type VersionDefault
- type VersionDefaultBody
- type VersionOK
- type VersionOKBody
- type VersionOKBodyManaged
- type VersionOKBodyServer
- type VersionParams
- func (o *VersionParams) SetContext(ctx context.Context)
- func (o *VersionParams) SetDummy(dummy *string)
- 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) WithDummy(dummy *string) *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 ¶
const ( // VersionOKBodyDistributionMethodDISTRIBUTIONMETHODINVALID captures enum value "DISTRIBUTION_METHOD_INVALID" VersionOKBodyDistributionMethodDISTRIBUTIONMETHODINVALID string = "DISTRIBUTION_METHOD_INVALID" // VersionOKBodyDistributionMethodDOCKER captures enum value "DOCKER" VersionOKBodyDistributionMethodDOCKER string = "DOCKER" // VersionOKBodyDistributionMethodOVF captures enum value "OVF" VersionOKBodyDistributionMethodOVF string = "OVF" // VersionOKBodyDistributionMethodAMI captures enum value "AMI" VersionOKBodyDistributionMethodAMI string = "AMI" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AWSInstanceCheckBody ¶
type AWSInstanceCheckBody struct { // AWS EC2 instance ID (i-1234567890abcdef0). InstanceID string `json:"instance_id,omitempty"` }
AWSInstanceCheckBody AWS instance check body swagger:model AWSInstanceCheckBody
func (*AWSInstanceCheckBody) MarshalBinary ¶
func (o *AWSInstanceCheckBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*AWSInstanceCheckBody) UnmarshalBinary ¶
func (o *AWSInstanceCheckBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type AWSInstanceCheckDefault ¶
type AWSInstanceCheckDefault struct { Payload *AWSInstanceCheckDefaultBody // contains filtered or unexported fields }
AWSInstanceCheckDefault handles this case with default header values.
An error response.
func NewAWSInstanceCheckDefault ¶
func NewAWSInstanceCheckDefault(code int) *AWSInstanceCheckDefault
NewAWSInstanceCheckDefault creates a AWSInstanceCheckDefault with default headers values
func (*AWSInstanceCheckDefault) Code ¶
func (o *AWSInstanceCheckDefault) Code() int
Code gets the status code for the AWS instance check default response
func (*AWSInstanceCheckDefault) Error ¶
func (o *AWSInstanceCheckDefault) Error() string
func (*AWSInstanceCheckDefault) GetPayload ¶
func (o *AWSInstanceCheckDefault) GetPayload() *AWSInstanceCheckDefaultBody
type AWSInstanceCheckDefaultBody ¶
type AWSInstanceCheckDefaultBody struct { // code Code int32 `json:"code,omitempty"` // error Error string `json:"error,omitempty"` // message Message string `json:"message,omitempty"` }
AWSInstanceCheckDefaultBody ErrorResponse is a message returned on HTTP error. swagger:model AWSInstanceCheckDefaultBody
func (*AWSInstanceCheckDefaultBody) MarshalBinary ¶
func (o *AWSInstanceCheckDefaultBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*AWSInstanceCheckDefaultBody) UnmarshalBinary ¶
func (o *AWSInstanceCheckDefaultBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type AWSInstanceCheckOK ¶
type AWSInstanceCheckOK struct {
Payload interface{}
}
AWSInstanceCheckOK handles this case with default header values.
A successful response.
func NewAWSInstanceCheckOK ¶
func NewAWSInstanceCheckOK() *AWSInstanceCheckOK
NewAWSInstanceCheckOK creates a AWSInstanceCheckOK with default headers values
func (*AWSInstanceCheckOK) Error ¶
func (o *AWSInstanceCheckOK) Error() string
func (*AWSInstanceCheckOK) GetPayload ¶
func (o *AWSInstanceCheckOK) GetPayload() interface{}
type AWSInstanceCheckParams ¶
type AWSInstanceCheckParams struct { /*Body*/ Body AWSInstanceCheckBody Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
AWSInstanceCheckParams contains all the parameters to send to the API endpoint for the AWS instance check operation typically these are written to a http.Request
func NewAWSInstanceCheckParams ¶
func NewAWSInstanceCheckParams() *AWSInstanceCheckParams
NewAWSInstanceCheckParams creates a new AWSInstanceCheckParams object with the default values initialized.
func NewAWSInstanceCheckParamsWithContext ¶
func NewAWSInstanceCheckParamsWithContext(ctx context.Context) *AWSInstanceCheckParams
NewAWSInstanceCheckParamsWithContext creates a new AWSInstanceCheckParams object with the default values initialized, and the ability to set a context for a request
func NewAWSInstanceCheckParamsWithHTTPClient ¶
func NewAWSInstanceCheckParamsWithHTTPClient(client *http.Client) *AWSInstanceCheckParams
NewAWSInstanceCheckParamsWithHTTPClient creates a new AWSInstanceCheckParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewAWSInstanceCheckParamsWithTimeout ¶
func NewAWSInstanceCheckParamsWithTimeout(timeout time.Duration) *AWSInstanceCheckParams
NewAWSInstanceCheckParamsWithTimeout creates a new AWSInstanceCheckParams object with the default values initialized, and the ability to set a timeout on a request
func (*AWSInstanceCheckParams) SetBody ¶
func (o *AWSInstanceCheckParams) SetBody(body AWSInstanceCheckBody)
SetBody adds the body to the AWS instance check params
func (*AWSInstanceCheckParams) SetContext ¶
func (o *AWSInstanceCheckParams) SetContext(ctx context.Context)
SetContext adds the context to the AWS instance check params
func (*AWSInstanceCheckParams) SetHTTPClient ¶
func (o *AWSInstanceCheckParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the AWS instance check params
func (*AWSInstanceCheckParams) SetTimeout ¶
func (o *AWSInstanceCheckParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the AWS instance check params
func (*AWSInstanceCheckParams) WithBody ¶
func (o *AWSInstanceCheckParams) WithBody(body AWSInstanceCheckBody) *AWSInstanceCheckParams
WithBody adds the body to the AWS instance check params
func (*AWSInstanceCheckParams) WithContext ¶
func (o *AWSInstanceCheckParams) WithContext(ctx context.Context) *AWSInstanceCheckParams
WithContext adds the context to the AWS instance check params
func (*AWSInstanceCheckParams) WithHTTPClient ¶
func (o *AWSInstanceCheckParams) WithHTTPClient(client *http.Client) *AWSInstanceCheckParams
WithHTTPClient adds the HTTPClient to the AWS instance check params
func (*AWSInstanceCheckParams) WithTimeout ¶
func (o *AWSInstanceCheckParams) WithTimeout(timeout time.Duration) *AWSInstanceCheckParams
WithTimeout adds the timeout to the AWS instance check params
func (*AWSInstanceCheckParams) WriteToRequest ¶
func (o *AWSInstanceCheckParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type AWSInstanceCheckReader ¶
type AWSInstanceCheckReader struct {
// contains filtered or unexported fields
}
AWSInstanceCheckReader is a Reader for the AWSInstanceCheck structure.
func (*AWSInstanceCheckReader) ReadResponse ¶
func (o *AWSInstanceCheckReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ChangeSettingsBody ¶
type ChangeSettingsBody struct { // enable telemetry EnableTelemetry bool `json:"enable_telemetry,omitempty"` // disable telemetry DisableTelemetry bool `json:"disable_telemetry,omitempty"` // A number of full days for Prometheus and QAN data retention. Should have a suffix in JSON: 2592000s, 43200m, 720h. DataRetention string `json:"data_retention,omitempty"` // ssh key SSHKey string `json:"ssh_key,omitempty"` // aws partitions AWSPartitions []string `json:"aws_partitions"` // 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
func (*ChangeSettingsDefault) GetPayload ¶
func (o *ChangeSettingsDefault) GetPayload() *ChangeSettingsDefaultBody
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
func (*ChangeSettingsOK) GetPayload ¶
func (o *ChangeSettingsOK) GetPayload() *ChangeSettingsOKBody
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 { // updates disabled UpdatesDisabled bool `json:"updates_disabled,omitempty"` // telemetry enabled TelemetryEnabled bool `json:"telemetry_enabled,omitempty"` // data retention DataRetention string `json:"data_retention,omitempty"` // ssh key SSHKey string `json:"ssh_key,omitempty"` // aws partitions AWSPartitions []string `json:"aws_partitions"` // metrics resolutions MetricsResolutions *ChangeSettingsOKBodySettingsMetricsResolutions `json:"metrics_resolutions,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. Should have a suffix in JSON: 1s, 1m, 1h. Hr string `json:"hr,omitempty"` // Medium resolution. Should have a suffix in JSON: 1s, 1m, 1h. Mr string `json:"mr,omitempty"` // Low resolution. Should have a suffix in JSON: 1s, 1m, 1h. Lr string `json:"lr,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. Should have a suffix in JSON: 1s, 1m, 1h. Hr string `json:"hr,omitempty"` // Medium resolution. Should have a suffix in JSON: 1s, 1m, 1h. Mr string `json:"mr,omitempty"` // Low resolution. Should have a suffix in JSON: 1s, 1m, 1h. Lr string `json:"lr,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 CheckUpdatesBody ¶
type CheckUpdatesBody struct { // If false, cached information may be returned. Force bool `json:"force,omitempty"` }
CheckUpdatesBody check updates body swagger:model CheckUpdatesBody
func (*CheckUpdatesBody) MarshalBinary ¶
func (o *CheckUpdatesBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CheckUpdatesBody) UnmarshalBinary ¶
func (o *CheckUpdatesBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type CheckUpdatesDefault ¶
type CheckUpdatesDefault struct { Payload *CheckUpdatesDefaultBody // contains filtered or unexported fields }
CheckUpdatesDefault handles this case with default header values.
An error response.
func NewCheckUpdatesDefault ¶
func NewCheckUpdatesDefault(code int) *CheckUpdatesDefault
NewCheckUpdatesDefault creates a CheckUpdatesDefault with default headers values
func (*CheckUpdatesDefault) Code ¶
func (o *CheckUpdatesDefault) Code() int
Code gets the status code for the check updates default response
func (*CheckUpdatesDefault) Error ¶
func (o *CheckUpdatesDefault) Error() string
func (*CheckUpdatesDefault) GetPayload ¶
func (o *CheckUpdatesDefault) GetPayload() *CheckUpdatesDefaultBody
type CheckUpdatesDefaultBody ¶
type CheckUpdatesDefaultBody struct { // code Code int32 `json:"code,omitempty"` // error Error string `json:"error,omitempty"` // message Message string `json:"message,omitempty"` }
CheckUpdatesDefaultBody ErrorResponse is a message returned on HTTP error. swagger:model CheckUpdatesDefaultBody
func (*CheckUpdatesDefaultBody) MarshalBinary ¶
func (o *CheckUpdatesDefaultBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CheckUpdatesDefaultBody) UnmarshalBinary ¶
func (o *CheckUpdatesDefaultBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type CheckUpdatesOK ¶
type CheckUpdatesOK struct {
Payload *CheckUpdatesOKBody
}
CheckUpdatesOK handles this case with default header values.
A successful response.
func NewCheckUpdatesOK ¶
func NewCheckUpdatesOK() *CheckUpdatesOK
NewCheckUpdatesOK creates a CheckUpdatesOK with default headers values
func (*CheckUpdatesOK) Error ¶
func (o *CheckUpdatesOK) Error() string
func (*CheckUpdatesOK) GetPayload ¶
func (o *CheckUpdatesOK) GetPayload() *CheckUpdatesOKBody
type CheckUpdatesOKBody ¶
type CheckUpdatesOKBody struct { // True if there is a PMM Server update available. UpdateAvailable bool `json:"update_available,omitempty"` // Latest available PMM Server release announcement URL. LatestNewsURL string `json:"latest_news_url,omitempty"` // Last check time. // Format: date-time LastCheck strfmt.DateTime `json:"last_check,omitempty"` // installed Installed *CheckUpdatesOKBodyInstalled `json:"installed,omitempty"` // latest Latest *CheckUpdatesOKBodyLatest `json:"latest,omitempty"` }
CheckUpdatesOKBody check updates OK body swagger:model CheckUpdatesOKBody
func (*CheckUpdatesOKBody) MarshalBinary ¶
func (o *CheckUpdatesOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CheckUpdatesOKBody) UnmarshalBinary ¶
func (o *CheckUpdatesOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type CheckUpdatesOKBodyInstalled ¶
type CheckUpdatesOKBodyInstalled struct { // User-visible version. Version string `json:"version,omitempty"` // Full version for debugging. FullVersion string `json:"full_version,omitempty"` // Build or release date. // Format: date-time Timestamp strfmt.DateTime `json:"timestamp,omitempty"` }
CheckUpdatesOKBodyInstalled VersionInfo describes component version, or PMM Server as a whole. swagger:model CheckUpdatesOKBodyInstalled
func (*CheckUpdatesOKBodyInstalled) MarshalBinary ¶
func (o *CheckUpdatesOKBodyInstalled) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CheckUpdatesOKBodyInstalled) UnmarshalBinary ¶
func (o *CheckUpdatesOKBodyInstalled) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type CheckUpdatesOKBodyLatest ¶
type CheckUpdatesOKBodyLatest struct { // User-visible version. Version string `json:"version,omitempty"` // Full version for debugging. FullVersion string `json:"full_version,omitempty"` // Build or release date. // Format: date-time Timestamp strfmt.DateTime `json:"timestamp,omitempty"` }
CheckUpdatesOKBodyLatest VersionInfo describes component version, or PMM Server as a whole. swagger:model CheckUpdatesOKBodyLatest
func (*CheckUpdatesOKBodyLatest) MarshalBinary ¶
func (o *CheckUpdatesOKBodyLatest) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CheckUpdatesOKBodyLatest) UnmarshalBinary ¶
func (o *CheckUpdatesOKBodyLatest) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type CheckUpdatesParams ¶
type CheckUpdatesParams struct { /*Body*/ Body CheckUpdatesBody Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CheckUpdatesParams contains all the parameters to send to the API endpoint for the check updates operation typically these are written to a http.Request
func NewCheckUpdatesParams ¶
func NewCheckUpdatesParams() *CheckUpdatesParams
NewCheckUpdatesParams creates a new CheckUpdatesParams object with the default values initialized.
func NewCheckUpdatesParamsWithContext ¶
func NewCheckUpdatesParamsWithContext(ctx context.Context) *CheckUpdatesParams
NewCheckUpdatesParamsWithContext creates a new CheckUpdatesParams object with the default values initialized, and the ability to set a context for a request
func NewCheckUpdatesParamsWithHTTPClient ¶
func NewCheckUpdatesParamsWithHTTPClient(client *http.Client) *CheckUpdatesParams
NewCheckUpdatesParamsWithHTTPClient creates a new CheckUpdatesParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewCheckUpdatesParamsWithTimeout ¶
func NewCheckUpdatesParamsWithTimeout(timeout time.Duration) *CheckUpdatesParams
NewCheckUpdatesParamsWithTimeout creates a new CheckUpdatesParams object with the default values initialized, and the ability to set a timeout on a request
func (*CheckUpdatesParams) SetBody ¶
func (o *CheckUpdatesParams) SetBody(body CheckUpdatesBody)
SetBody adds the body to the check updates params
func (*CheckUpdatesParams) SetContext ¶
func (o *CheckUpdatesParams) SetContext(ctx context.Context)
SetContext adds the context to the check updates params
func (*CheckUpdatesParams) SetHTTPClient ¶
func (o *CheckUpdatesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the check updates params
func (*CheckUpdatesParams) SetTimeout ¶
func (o *CheckUpdatesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the check updates params
func (*CheckUpdatesParams) WithBody ¶
func (o *CheckUpdatesParams) WithBody(body CheckUpdatesBody) *CheckUpdatesParams
WithBody adds the body to the check updates params
func (*CheckUpdatesParams) WithContext ¶
func (o *CheckUpdatesParams) WithContext(ctx context.Context) *CheckUpdatesParams
WithContext adds the context to the check updates params
func (*CheckUpdatesParams) WithHTTPClient ¶
func (o *CheckUpdatesParams) WithHTTPClient(client *http.Client) *CheckUpdatesParams
WithHTTPClient adds the HTTPClient to the check updates params
func (*CheckUpdatesParams) WithTimeout ¶
func (o *CheckUpdatesParams) WithTimeout(timeout time.Duration) *CheckUpdatesParams
WithTimeout adds the timeout to the check updates params
func (*CheckUpdatesParams) WriteToRequest ¶
func (o *CheckUpdatesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CheckUpdatesReader ¶
type CheckUpdatesReader struct {
// contains filtered or unexported fields
}
CheckUpdatesReader is a Reader for the CheckUpdates structure.
func (*CheckUpdatesReader) ReadResponse ¶
func (o *CheckUpdatesReader) 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) AWSInstanceCheck ¶
func (a *Client) AWSInstanceCheck(params *AWSInstanceCheckParams) (*AWSInstanceCheckOK, error)
AWSInstanceCheck AWSs instance check checks AWS e c2 instance ID
func (*Client) ChangeSettings ¶
func (a *Client) ChangeSettings(params *ChangeSettingsParams) (*ChangeSettingsOK, error)
ChangeSettings changes settings changes PMM server settings
func (*Client) CheckUpdates ¶
func (a *Client) CheckUpdates(params *CheckUpdatesParams) (*CheckUpdatesOK, error)
CheckUpdates checks updates checks PMM server updates availability
func (*Client) GetSettings ¶
func (a *Client) GetSettings(params *GetSettingsParams) (*GetSettingsOK, error)
GetSettings gets settings returns current PMM server settings
func (*Client) Readiness ¶
func (a *Client) Readiness(params *ReadinessParams) (*ReadinessOK, error)
Readiness readinesses returns an error when some PMM server component is not ready yet or is being restarted it can be used as for docker health check or kubernetes readiness probe
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) StartUpdate ¶
func (a *Client) StartUpdate(params *StartUpdateParams) (*StartUpdateOK, error)
StartUpdate starts update starts PMM server update
func (*Client) UpdateStatus ¶
func (a *Client) UpdateStatus(params *UpdateStatusParams) (*UpdateStatusOK, error)
UpdateStatus updates status returns PMM server update status
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
func (*GetSettingsDefault) GetPayload ¶
func (o *GetSettingsDefault) GetPayload() *GetSettingsDefaultBody
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
func (*GetSettingsOK) GetPayload ¶
func (o *GetSettingsOK) GetPayload() *GetSettingsOKBody
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 { // updates disabled UpdatesDisabled bool `json:"updates_disabled,omitempty"` // telemetry enabled TelemetryEnabled bool `json:"telemetry_enabled,omitempty"` // data retention DataRetention string `json:"data_retention,omitempty"` // ssh key SSHKey string `json:"ssh_key,omitempty"` // aws partitions AWSPartitions []string `json:"aws_partitions"` // metrics resolutions MetricsResolutions *GetSettingsOKBodySettingsMetricsResolutions `json:"metrics_resolutions,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. Should have a suffix in JSON: 1s, 1m, 1h. Hr string `json:"hr,omitempty"` // Medium resolution. Should have a suffix in JSON: 1s, 1m, 1h. Mr string `json:"mr,omitempty"` // Low resolution. Should have a suffix in JSON: 1s, 1m, 1h. Lr string `json:"lr,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 ReadinessDefault ¶
type ReadinessDefault struct { Payload *ReadinessDefaultBody // contains filtered or unexported fields }
ReadinessDefault handles this case with default header values.
An error response.
func NewReadinessDefault ¶
func NewReadinessDefault(code int) *ReadinessDefault
NewReadinessDefault creates a ReadinessDefault with default headers values
func (*ReadinessDefault) Code ¶
func (o *ReadinessDefault) Code() int
Code gets the status code for the readiness default response
func (*ReadinessDefault) Error ¶
func (o *ReadinessDefault) Error() string
func (*ReadinessDefault) GetPayload ¶
func (o *ReadinessDefault) GetPayload() *ReadinessDefaultBody
type ReadinessDefaultBody ¶
type ReadinessDefaultBody struct { // code Code int32 `json:"code,omitempty"` // error Error string `json:"error,omitempty"` // message Message string `json:"message,omitempty"` }
ReadinessDefaultBody ErrorResponse is a message returned on HTTP error. swagger:model ReadinessDefaultBody
func (*ReadinessDefaultBody) MarshalBinary ¶
func (o *ReadinessDefaultBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ReadinessDefaultBody) UnmarshalBinary ¶
func (o *ReadinessDefaultBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ReadinessOK ¶
type ReadinessOK struct {
Payload interface{}
}
ReadinessOK handles this case with default header values.
A successful response.
func NewReadinessOK ¶
func NewReadinessOK() *ReadinessOK
NewReadinessOK creates a ReadinessOK with default headers values
func (*ReadinessOK) Error ¶
func (o *ReadinessOK) Error() string
func (*ReadinessOK) GetPayload ¶
func (o *ReadinessOK) GetPayload() interface{}
type ReadinessParams ¶
type ReadinessParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ReadinessParams contains all the parameters to send to the API endpoint for the readiness operation typically these are written to a http.Request
func NewReadinessParams ¶
func NewReadinessParams() *ReadinessParams
NewReadinessParams creates a new ReadinessParams object with the default values initialized.
func NewReadinessParamsWithContext ¶
func NewReadinessParamsWithContext(ctx context.Context) *ReadinessParams
NewReadinessParamsWithContext creates a new ReadinessParams object with the default values initialized, and the ability to set a context for a request
func NewReadinessParamsWithHTTPClient ¶
func NewReadinessParamsWithHTTPClient(client *http.Client) *ReadinessParams
NewReadinessParamsWithHTTPClient creates a new ReadinessParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewReadinessParamsWithTimeout ¶
func NewReadinessParamsWithTimeout(timeout time.Duration) *ReadinessParams
NewReadinessParamsWithTimeout creates a new ReadinessParams object with the default values initialized, and the ability to set a timeout on a request
func (*ReadinessParams) SetContext ¶
func (o *ReadinessParams) SetContext(ctx context.Context)
SetContext adds the context to the readiness params
func (*ReadinessParams) SetHTTPClient ¶
func (o *ReadinessParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the readiness params
func (*ReadinessParams) SetTimeout ¶
func (o *ReadinessParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the readiness params
func (*ReadinessParams) WithContext ¶
func (o *ReadinessParams) WithContext(ctx context.Context) *ReadinessParams
WithContext adds the context to the readiness params
func (*ReadinessParams) WithHTTPClient ¶
func (o *ReadinessParams) WithHTTPClient(client *http.Client) *ReadinessParams
WithHTTPClient adds the HTTPClient to the readiness params
func (*ReadinessParams) WithTimeout ¶
func (o *ReadinessParams) WithTimeout(timeout time.Duration) *ReadinessParams
WithTimeout adds the timeout to the readiness params
func (*ReadinessParams) WriteToRequest ¶
func (o *ReadinessParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ReadinessReader ¶
type ReadinessReader struct {
// contains filtered or unexported fields
}
ReadinessReader is a Reader for the Readiness structure.
func (*ReadinessReader) ReadResponse ¶
func (o *ReadinessReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type StartUpdateDefault ¶
type StartUpdateDefault struct { Payload *StartUpdateDefaultBody // contains filtered or unexported fields }
StartUpdateDefault handles this case with default header values.
An error response.
func NewStartUpdateDefault ¶
func NewStartUpdateDefault(code int) *StartUpdateDefault
NewStartUpdateDefault creates a StartUpdateDefault with default headers values
func (*StartUpdateDefault) Code ¶
func (o *StartUpdateDefault) Code() int
Code gets the status code for the start update default response
func (*StartUpdateDefault) Error ¶
func (o *StartUpdateDefault) Error() string
func (*StartUpdateDefault) GetPayload ¶
func (o *StartUpdateDefault) GetPayload() *StartUpdateDefaultBody
type StartUpdateDefaultBody ¶
type StartUpdateDefaultBody struct { // code Code int32 `json:"code,omitempty"` // error Error string `json:"error,omitempty"` // message Message string `json:"message,omitempty"` }
StartUpdateDefaultBody ErrorResponse is a message returned on HTTP error. swagger:model StartUpdateDefaultBody
func (*StartUpdateDefaultBody) MarshalBinary ¶
func (o *StartUpdateDefaultBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*StartUpdateDefaultBody) UnmarshalBinary ¶
func (o *StartUpdateDefaultBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type StartUpdateOK ¶
type StartUpdateOK struct {
Payload *StartUpdateOKBody
}
StartUpdateOK handles this case with default header values.
A successful response.
func NewStartUpdateOK ¶
func NewStartUpdateOK() *StartUpdateOK
NewStartUpdateOK creates a StartUpdateOK with default headers values
func (*StartUpdateOK) Error ¶
func (o *StartUpdateOK) Error() string
func (*StartUpdateOK) GetPayload ¶
func (o *StartUpdateOK) GetPayload() *StartUpdateOKBody
type StartUpdateOKBody ¶
type StartUpdateOKBody struct { // Authentication token for getting update statuses. AuthToken string `json:"auth_token,omitempty"` // Progress log offset. LogOffset int64 `json:"log_offset,omitempty"` }
StartUpdateOKBody start update OK body swagger:model StartUpdateOKBody
func (*StartUpdateOKBody) MarshalBinary ¶
func (o *StartUpdateOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*StartUpdateOKBody) UnmarshalBinary ¶
func (o *StartUpdateOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type StartUpdateParams ¶
type StartUpdateParams struct { /*Body*/ Body interface{} Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
StartUpdateParams contains all the parameters to send to the API endpoint for the start update operation typically these are written to a http.Request
func NewStartUpdateParams ¶
func NewStartUpdateParams() *StartUpdateParams
NewStartUpdateParams creates a new StartUpdateParams object with the default values initialized.
func NewStartUpdateParamsWithContext ¶
func NewStartUpdateParamsWithContext(ctx context.Context) *StartUpdateParams
NewStartUpdateParamsWithContext creates a new StartUpdateParams object with the default values initialized, and the ability to set a context for a request
func NewStartUpdateParamsWithHTTPClient ¶
func NewStartUpdateParamsWithHTTPClient(client *http.Client) *StartUpdateParams
NewStartUpdateParamsWithHTTPClient creates a new StartUpdateParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewStartUpdateParamsWithTimeout ¶
func NewStartUpdateParamsWithTimeout(timeout time.Duration) *StartUpdateParams
NewStartUpdateParamsWithTimeout creates a new StartUpdateParams object with the default values initialized, and the ability to set a timeout on a request
func (*StartUpdateParams) SetBody ¶
func (o *StartUpdateParams) SetBody(body interface{})
SetBody adds the body to the start update params
func (*StartUpdateParams) SetContext ¶
func (o *StartUpdateParams) SetContext(ctx context.Context)
SetContext adds the context to the start update params
func (*StartUpdateParams) SetHTTPClient ¶
func (o *StartUpdateParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the start update params
func (*StartUpdateParams) SetTimeout ¶
func (o *StartUpdateParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the start update params
func (*StartUpdateParams) WithBody ¶
func (o *StartUpdateParams) WithBody(body interface{}) *StartUpdateParams
WithBody adds the body to the start update params
func (*StartUpdateParams) WithContext ¶
func (o *StartUpdateParams) WithContext(ctx context.Context) *StartUpdateParams
WithContext adds the context to the start update params
func (*StartUpdateParams) WithHTTPClient ¶
func (o *StartUpdateParams) WithHTTPClient(client *http.Client) *StartUpdateParams
WithHTTPClient adds the HTTPClient to the start update params
func (*StartUpdateParams) WithTimeout ¶
func (o *StartUpdateParams) WithTimeout(timeout time.Duration) *StartUpdateParams
WithTimeout adds the timeout to the start update params
func (*StartUpdateParams) WriteToRequest ¶
func (o *StartUpdateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type StartUpdateReader ¶
type StartUpdateReader struct {
// contains filtered or unexported fields
}
StartUpdateReader is a Reader for the StartUpdate structure.
func (*StartUpdateReader) ReadResponse ¶
func (o *StartUpdateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UpdateStatusBody ¶
type UpdateStatusBody struct { // Authentication token. AuthToken string `json:"auth_token,omitempty"` // Progress log offset. LogOffset int64 `json:"log_offset,omitempty"` }
UpdateStatusBody update status body swagger:model UpdateStatusBody
func (*UpdateStatusBody) MarshalBinary ¶
func (o *UpdateStatusBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*UpdateStatusBody) UnmarshalBinary ¶
func (o *UpdateStatusBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type UpdateStatusDefault ¶
type UpdateStatusDefault struct { Payload *UpdateStatusDefaultBody // contains filtered or unexported fields }
UpdateStatusDefault handles this case with default header values.
An error response.
func NewUpdateStatusDefault ¶
func NewUpdateStatusDefault(code int) *UpdateStatusDefault
NewUpdateStatusDefault creates a UpdateStatusDefault with default headers values
func (*UpdateStatusDefault) Code ¶
func (o *UpdateStatusDefault) Code() int
Code gets the status code for the update status default response
func (*UpdateStatusDefault) Error ¶
func (o *UpdateStatusDefault) Error() string
func (*UpdateStatusDefault) GetPayload ¶
func (o *UpdateStatusDefault) GetPayload() *UpdateStatusDefaultBody
type UpdateStatusDefaultBody ¶
type UpdateStatusDefaultBody struct { // code Code int32 `json:"code,omitempty"` // error Error string `json:"error,omitempty"` // message Message string `json:"message,omitempty"` }
UpdateStatusDefaultBody ErrorResponse is a message returned on HTTP error. swagger:model UpdateStatusDefaultBody
func (*UpdateStatusDefaultBody) MarshalBinary ¶
func (o *UpdateStatusDefaultBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*UpdateStatusDefaultBody) UnmarshalBinary ¶
func (o *UpdateStatusDefaultBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type UpdateStatusOK ¶
type UpdateStatusOK struct {
Payload *UpdateStatusOKBody
}
UpdateStatusOK handles this case with default header values.
A successful response.
func NewUpdateStatusOK ¶
func NewUpdateStatusOK() *UpdateStatusOK
NewUpdateStatusOK creates a UpdateStatusOK with default headers values
func (*UpdateStatusOK) Error ¶
func (o *UpdateStatusOK) Error() string
func (*UpdateStatusOK) GetPayload ¶
func (o *UpdateStatusOK) GetPayload() *UpdateStatusOKBody
type UpdateStatusOKBody ¶
type UpdateStatusOKBody struct { // Progress log lines. LogLines []string `json:"log_lines"` // Progress log offset for the next request. LogOffset int64 `json:"log_offset,omitempty"` // True when update is done. Done bool `json:"done,omitempty"` }
UpdateStatusOKBody update status OK body swagger:model UpdateStatusOKBody
func (*UpdateStatusOKBody) MarshalBinary ¶
func (o *UpdateStatusOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*UpdateStatusOKBody) UnmarshalBinary ¶
func (o *UpdateStatusOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type UpdateStatusParams ¶
type UpdateStatusParams struct { /*Body*/ Body UpdateStatusBody Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
UpdateStatusParams contains all the parameters to send to the API endpoint for the update status operation typically these are written to a http.Request
func NewUpdateStatusParams ¶
func NewUpdateStatusParams() *UpdateStatusParams
NewUpdateStatusParams creates a new UpdateStatusParams object with the default values initialized.
func NewUpdateStatusParamsWithContext ¶
func NewUpdateStatusParamsWithContext(ctx context.Context) *UpdateStatusParams
NewUpdateStatusParamsWithContext creates a new UpdateStatusParams object with the default values initialized, and the ability to set a context for a request
func NewUpdateStatusParamsWithHTTPClient ¶
func NewUpdateStatusParamsWithHTTPClient(client *http.Client) *UpdateStatusParams
NewUpdateStatusParamsWithHTTPClient creates a new UpdateStatusParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewUpdateStatusParamsWithTimeout ¶
func NewUpdateStatusParamsWithTimeout(timeout time.Duration) *UpdateStatusParams
NewUpdateStatusParamsWithTimeout creates a new UpdateStatusParams object with the default values initialized, and the ability to set a timeout on a request
func (*UpdateStatusParams) SetBody ¶
func (o *UpdateStatusParams) SetBody(body UpdateStatusBody)
SetBody adds the body to the update status params
func (*UpdateStatusParams) SetContext ¶
func (o *UpdateStatusParams) SetContext(ctx context.Context)
SetContext adds the context to the update status params
func (*UpdateStatusParams) SetHTTPClient ¶
func (o *UpdateStatusParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the update status params
func (*UpdateStatusParams) SetTimeout ¶
func (o *UpdateStatusParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the update status params
func (*UpdateStatusParams) WithBody ¶
func (o *UpdateStatusParams) WithBody(body UpdateStatusBody) *UpdateStatusParams
WithBody adds the body to the update status params
func (*UpdateStatusParams) WithContext ¶
func (o *UpdateStatusParams) WithContext(ctx context.Context) *UpdateStatusParams
WithContext adds the context to the update status params
func (*UpdateStatusParams) WithHTTPClient ¶
func (o *UpdateStatusParams) WithHTTPClient(client *http.Client) *UpdateStatusParams
WithHTTPClient adds the HTTPClient to the update status params
func (*UpdateStatusParams) WithTimeout ¶
func (o *UpdateStatusParams) WithTimeout(timeout time.Duration) *UpdateStatusParams
WithTimeout adds the timeout to the update status params
func (*UpdateStatusParams) WriteToRequest ¶
func (o *UpdateStatusParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UpdateStatusReader ¶
type UpdateStatusReader struct {
// contains filtered or unexported fields
}
UpdateStatusReader is a Reader for the UpdateStatus structure.
func (*UpdateStatusReader) ReadResponse ¶
func (o *UpdateStatusReader) 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
func (*VersionDefault) GetPayload ¶
func (o *VersionDefault) GetPayload() *VersionDefaultBody
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
func (*VersionOK) GetPayload ¶
func (o *VersionOK) GetPayload() *VersionOKBody
type VersionOKBody ¶
type VersionOKBody struct { // PMM Server version. Version string `json:"version,omitempty"` // DistributionMethod defines PMM Server distribution method: Docker image, OVF/OVA, or AMI. // Enum: [DISTRIBUTION_METHOD_INVALID DOCKER OVF AMI] DistributionMethod *string `json:"distribution_method,omitempty"` // managed Managed *VersionOKBodyManaged `json:"managed,omitempty"` // server Server *VersionOKBodyServer `json:"server,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 VersionOKBodyManaged ¶
type VersionOKBodyManaged struct { // User-visible version. Version string `json:"version,omitempty"` // Full version for debugging. FullVersion string `json:"full_version,omitempty"` // Build or release date. // Format: date-time Timestamp strfmt.DateTime `json:"timestamp,omitempty"` }
VersionOKBodyManaged VersionInfo describes component version, or PMM Server as a whole. swagger:model VersionOKBodyManaged
func (*VersionOKBodyManaged) MarshalBinary ¶
func (o *VersionOKBodyManaged) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*VersionOKBodyManaged) UnmarshalBinary ¶
func (o *VersionOKBodyManaged) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type VersionOKBodyServer ¶
type VersionOKBodyServer struct { // User-visible version. Version string `json:"version,omitempty"` // Full version for debugging. FullVersion string `json:"full_version,omitempty"` // Build or release date. // Format: date-time Timestamp strfmt.DateTime `json:"timestamp,omitempty"` }
VersionOKBodyServer VersionInfo describes component version, or PMM Server as a whole. swagger:model VersionOKBodyServer
func (*VersionOKBodyServer) MarshalBinary ¶
func (o *VersionOKBodyServer) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*VersionOKBodyServer) UnmarshalBinary ¶
func (o *VersionOKBodyServer) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type VersionParams ¶
type VersionParams struct { /*Dummy Dummy parameter for internal testing. Do not use. */ Dummy *string 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) SetDummy ¶
func (o *VersionParams) SetDummy(dummy *string)
SetDummy adds the dummy 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) WithDummy ¶
func (o *VersionParams) WithDummy(dummy *string) *VersionParams
WithDummy adds the dummy 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.
Source Files ¶
- aws_instance_check_parameters.go
- aws_instance_check_responses.go
- change_settings_parameters.go
- change_settings_responses.go
- check_updates_parameters.go
- check_updates_responses.go
- get_settings_parameters.go
- get_settings_responses.go
- readiness_parameters.go
- readiness_responses.go
- server_client.go
- start_update_parameters.go
- start_update_responses.go
- update_status_parameters.go
- update_status_responses.go
- version_parameters.go
- version_responses.go