server

package
v2.0.0-beta7+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 9, 2019 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChangeSettingsBody

type ChangeSettingsBody struct {

	// 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"`

	// 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

func (*ChangeSettingsBody) Validate

func (o *ChangeSettingsBody) Validate(formats strfmt.Registry) error

Validate validates this change settings body

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

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

func (*ChangeSettingsDefaultBody) Validate

func (o *ChangeSettingsDefaultBody) Validate(formats strfmt.Registry) error

Validate validates this change settings default body

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

func (*ChangeSettingsOKBody) Validate

func (o *ChangeSettingsOKBody) Validate(formats strfmt.Registry) error

Validate validates this change settings OK body

type ChangeSettingsOKBodySettings

type ChangeSettingsOKBodySettings struct {

	// data retention
	DataRetention string `json:"data_retention,omitempty"`

	// metrics resolutions
	MetricsResolutions *ChangeSettingsOKBodySettingsMetricsResolutions `json:"metrics_resolutions,omitempty"`

	// telemetry enabled
	TelemetryEnabled bool `json:"telemetry_enabled,omitempty"`

	// updates disabled
	UpdatesDisabled bool `json:"updates_disabled,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

func (*ChangeSettingsOKBodySettings) Validate

func (o *ChangeSettingsOKBodySettings) Validate(formats strfmt.Registry) error

Validate validates this change settings OK body settings

type ChangeSettingsOKBodySettingsMetricsResolutions

type ChangeSettingsOKBodySettingsMetricsResolutions struct {

	// High resolution. Should have a suffix in JSON: 1s, 1m, 1h.
	Hr string `json:"hr,omitempty"`

	// Low resolution. Should have a suffix in JSON: 1s, 1m, 1h.
	Lr string `json:"lr,omitempty"`

	// Medium resolution. Should have a suffix in JSON: 1s, 1m, 1h.
	Mr string `json:"mr,omitempty"`
}

ChangeSettingsOKBodySettingsMetricsResolutions MetricsResolutions represents Prometheus exporters metrics resolutions. swagger:model ChangeSettingsOKBodySettingsMetricsResolutions

func (*ChangeSettingsOKBodySettingsMetricsResolutions) MarshalBinary

MarshalBinary interface implementation

func (*ChangeSettingsOKBodySettingsMetricsResolutions) UnmarshalBinary

UnmarshalBinary interface implementation

func (*ChangeSettingsOKBodySettingsMetricsResolutions) Validate

Validate validates this change settings OK body settings metrics resolutions

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

WithBody adds the body to the change settings params

func (*ChangeSettingsParams) WithContext

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"`

	// Low resolution. Should have a suffix in JSON: 1s, 1m, 1h.
	Lr string `json:"lr,omitempty"`

	// Medium resolution. Should have a suffix in JSON: 1s, 1m, 1h.
	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

func (*ChangeSettingsParamsBodyMetricsResolutions) Validate

Validate validates this change settings params body metrics resolutions

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

func (*CheckUpdatesBody) Validate

func (o *CheckUpdatesBody) Validate(formats strfmt.Registry) error

Validate validates this check updates body

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

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

func (*CheckUpdatesDefaultBody) Validate

func (o *CheckUpdatesDefaultBody) Validate(formats strfmt.Registry) error

Validate validates this check updates default body

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 {

	// installed
	Installed *CheckUpdatesOKBodyInstalled `json:"installed,omitempty"`

	// Last check time.
	// Format: date-time
	LastCheck strfmt.DateTime `json:"last_check,omitempty"`

	// latest
	Latest *CheckUpdatesOKBodyLatest `json:"latest,omitempty"`

	// Latest available PMM Server release announcement URL.
	LatestNewsURL string `json:"latest_news_url,omitempty"`

	// True if there is a PMM Server update available.
	UpdateAvailable bool `json:"update_available,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

func (*CheckUpdatesOKBody) Validate

func (o *CheckUpdatesOKBody) Validate(formats strfmt.Registry) error

Validate validates this check updates OK body

type CheckUpdatesOKBodyInstalled

type CheckUpdatesOKBodyInstalled struct {

	// Full version for debugging.
	FullVersion string `json:"full_version,omitempty"`

	// Build or release date.
	// Format: date-time
	Timestamp strfmt.DateTime `json:"timestamp,omitempty"`

	// User-visible version.
	Version string `json:"version,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

func (*CheckUpdatesOKBodyInstalled) Validate

func (o *CheckUpdatesOKBodyInstalled) Validate(formats strfmt.Registry) error

Validate validates this check updates OK body installed

type CheckUpdatesOKBodyLatest

type CheckUpdatesOKBodyLatest struct {

	// Full version for debugging.
	FullVersion string `json:"full_version,omitempty"`

	// Build or release date.
	// Format: date-time
	Timestamp strfmt.DateTime `json:"timestamp,omitempty"`

	// User-visible version.
	Version string `json:"version,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

func (*CheckUpdatesOKBodyLatest) Validate

func (o *CheckUpdatesOKBodyLatest) Validate(formats strfmt.Registry) error

Validate validates this check updates OK body latest

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

WithBody adds the body to the check updates params

func (*CheckUpdatesParams) WithContext

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) 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

func (*Client) Version

func (a *Client) Version(params *VersionParams) (*VersionOK, error)

Version versions returns PMM server versions

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

func (*GetSettingsDefaultBody) Validate

func (o *GetSettingsDefaultBody) Validate(formats strfmt.Registry) error

Validate validates this get settings default body

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

func (*GetSettingsOKBody) Validate

func (o *GetSettingsOKBody) Validate(formats strfmt.Registry) error

Validate validates this get settings OK body

type GetSettingsOKBodySettings

type GetSettingsOKBodySettings struct {

	// data retention
	DataRetention string `json:"data_retention,omitempty"`

	// metrics resolutions
	MetricsResolutions *GetSettingsOKBodySettingsMetricsResolutions `json:"metrics_resolutions,omitempty"`

	// telemetry enabled
	TelemetryEnabled bool `json:"telemetry_enabled,omitempty"`

	// updates disabled
	UpdatesDisabled bool `json:"updates_disabled,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

func (*GetSettingsOKBodySettings) Validate

func (o *GetSettingsOKBodySettings) Validate(formats strfmt.Registry) error

Validate validates this get settings OK body settings

type GetSettingsOKBodySettingsMetricsResolutions

type GetSettingsOKBodySettingsMetricsResolutions struct {

	// High resolution. Should have a suffix in JSON: 1s, 1m, 1h.
	Hr string `json:"hr,omitempty"`

	// Low resolution. Should have a suffix in JSON: 1s, 1m, 1h.
	Lr string `json:"lr,omitempty"`

	// Medium resolution. Should have a suffix in JSON: 1s, 1m, 1h.
	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

func (*GetSettingsOKBodySettingsMetricsResolutions) Validate

Validate validates this get settings OK body settings metrics resolutions

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

func (*ReadinessDefaultBody) Validate

func (o *ReadinessDefaultBody) Validate(formats strfmt.Registry) error

Validate validates this readiness default body

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

func (*StartUpdateDefaultBody) Validate

func (o *StartUpdateDefaultBody) Validate(formats strfmt.Registry) error

Validate validates this start update default body

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

func (*StartUpdateOKBody) Validate

func (o *StartUpdateOKBody) Validate(formats strfmt.Registry) error

Validate validates this start update OK body

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

func (*UpdateStatusBody) Validate

func (o *UpdateStatusBody) Validate(formats strfmt.Registry) error

Validate validates this update status body

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

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

func (*UpdateStatusDefaultBody) Validate

func (o *UpdateStatusDefaultBody) Validate(formats strfmt.Registry) error

Validate validates this update status default body

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 {

	// True when update is done.
	Done bool `json:"done,omitempty"`

	// Progress log lines.
	LogLines []string `json:"log_lines"`

	// Progress log offset for the next request.
	LogOffset int64 `json:"log_offset,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

func (*UpdateStatusOKBody) Validate

func (o *UpdateStatusOKBody) Validate(formats strfmt.Registry) error

Validate validates this update status OK body

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

WithBody adds the body to the update status params

func (*UpdateStatusParams) WithContext

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

func (*VersionDefaultBody) Validate

func (o *VersionDefaultBody) Validate(formats strfmt.Registry) error

Validate validates this version default body

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) Error

func (o *VersionOK) Error() string

func (*VersionOK) GetPayload

func (o *VersionOK) GetPayload() *VersionOKBody

type VersionOKBody

type VersionOKBody struct {

	// managed
	Managed *VersionOKBodyManaged `json:"managed,omitempty"`

	// server
	Server *VersionOKBodyServer `json:"server,omitempty"`

	// PMM Server 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

func (*VersionOKBody) Validate

func (o *VersionOKBody) Validate(formats strfmt.Registry) error

Validate validates this version OK body

type VersionOKBodyManaged

type VersionOKBodyManaged struct {

	// Full version for debugging.
	FullVersion string `json:"full_version,omitempty"`

	// Build or release date.
	// Format: date-time
	Timestamp strfmt.DateTime `json:"timestamp,omitempty"`

	// User-visible version.
	Version string `json:"version,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

func (*VersionOKBodyManaged) Validate

func (o *VersionOKBodyManaged) Validate(formats strfmt.Registry) error

Validate validates this version OK body managed

type VersionOKBodyServer

type VersionOKBodyServer struct {

	// Full version for debugging.
	FullVersion string `json:"full_version,omitempty"`

	// Build or release date.
	// Format: date-time
	Timestamp strfmt.DateTime `json:"timestamp,omitempty"`

	// User-visible version.
	Version string `json:"version,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

func (*VersionOKBodyServer) Validate

func (o *VersionOKBodyServer) Validate(formats strfmt.Registry) error

Validate validates this version OK body server

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL