versions

package
v9.99.0-rc.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client for versions API

func (*Client) GetKubermaticVersion

func (a *Client) GetKubermaticVersion(params *GetKubermaticVersionParams, authInfo runtime.ClientAuthInfoWriter) (*GetKubermaticVersionOK, error)

GetKubermaticVersion gets versions of running kubermatic components

func (*Client) GetMasterVersions

func (a *Client) GetMasterVersions(params *GetMasterVersionsParams, authInfo runtime.ClientAuthInfoWriter) (*GetMasterVersionsOK, error)

GetMasterVersions Lists all versions which don't result in automatic updates

func (*Client) GetNodeUpgrades

func (a *Client) GetNodeUpgrades(params *GetNodeUpgradesParams, authInfo runtime.ClientAuthInfoWriter) (*GetNodeUpgradesOK, error)

GetNodeUpgrades Gets possible node upgrades for a specific control plane version

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	GetKubermaticVersion(params *GetKubermaticVersionParams, authInfo runtime.ClientAuthInfoWriter) (*GetKubermaticVersionOK, error)

	GetMasterVersions(params *GetMasterVersionsParams, authInfo runtime.ClientAuthInfoWriter) (*GetMasterVersionsOK, error)

	GetNodeUpgrades(params *GetNodeUpgradesParams, authInfo runtime.ClientAuthInfoWriter) (*GetNodeUpgradesOK, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService

New creates a new versions API client.

type GetKubermaticVersionDefault

type GetKubermaticVersionDefault struct {
	Payload *models.ErrorResponse
	// contains filtered or unexported fields
}

GetKubermaticVersionDefault handles this case with default header values.

errorResponse

func NewGetKubermaticVersionDefault

func NewGetKubermaticVersionDefault(code int) *GetKubermaticVersionDefault

NewGetKubermaticVersionDefault creates a GetKubermaticVersionDefault with default headers values

func (*GetKubermaticVersionDefault) Code

func (o *GetKubermaticVersionDefault) Code() int

Code gets the status code for the get kubermatic version default response

func (*GetKubermaticVersionDefault) Error

func (*GetKubermaticVersionDefault) GetPayload

type GetKubermaticVersionOK

type GetKubermaticVersionOK struct {
	Payload *models.KubermaticVersions
}

GetKubermaticVersionOK handles this case with default header values.

KubermaticVersions

func NewGetKubermaticVersionOK

func NewGetKubermaticVersionOK() *GetKubermaticVersionOK

NewGetKubermaticVersionOK creates a GetKubermaticVersionOK with default headers values

func (*GetKubermaticVersionOK) Error

func (o *GetKubermaticVersionOK) Error() string

func (*GetKubermaticVersionOK) GetPayload

type GetKubermaticVersionParams

type GetKubermaticVersionParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetKubermaticVersionParams contains all the parameters to send to the API endpoint for the get kubermatic version operation typically these are written to a http.Request

func NewGetKubermaticVersionParams

func NewGetKubermaticVersionParams() *GetKubermaticVersionParams

NewGetKubermaticVersionParams creates a new GetKubermaticVersionParams object with the default values initialized.

func NewGetKubermaticVersionParamsWithContext

func NewGetKubermaticVersionParamsWithContext(ctx context.Context) *GetKubermaticVersionParams

NewGetKubermaticVersionParamsWithContext creates a new GetKubermaticVersionParams object with the default values initialized, and the ability to set a context for a request

func NewGetKubermaticVersionParamsWithHTTPClient

func NewGetKubermaticVersionParamsWithHTTPClient(client *http.Client) *GetKubermaticVersionParams

NewGetKubermaticVersionParamsWithHTTPClient creates a new GetKubermaticVersionParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetKubermaticVersionParamsWithTimeout

func NewGetKubermaticVersionParamsWithTimeout(timeout time.Duration) *GetKubermaticVersionParams

NewGetKubermaticVersionParamsWithTimeout creates a new GetKubermaticVersionParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetKubermaticVersionParams) SetContext

func (o *GetKubermaticVersionParams) SetContext(ctx context.Context)

SetContext adds the context to the get kubermatic version params

func (*GetKubermaticVersionParams) SetHTTPClient

func (o *GetKubermaticVersionParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get kubermatic version params

func (*GetKubermaticVersionParams) SetTimeout

func (o *GetKubermaticVersionParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get kubermatic version params

func (*GetKubermaticVersionParams) WithContext

WithContext adds the context to the get kubermatic version params

func (*GetKubermaticVersionParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get kubermatic version params

func (*GetKubermaticVersionParams) WithTimeout

WithTimeout adds the timeout to the get kubermatic version params

func (*GetKubermaticVersionParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetKubermaticVersionReader

type GetKubermaticVersionReader struct {
	// contains filtered or unexported fields
}

GetKubermaticVersionReader is a Reader for the GetKubermaticVersion structure.

func (*GetKubermaticVersionReader) ReadResponse

func (o *GetKubermaticVersionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetMasterVersionsDefault

type GetMasterVersionsDefault struct {
	Payload *models.ErrorResponse
	// contains filtered or unexported fields
}

GetMasterVersionsDefault handles this case with default header values.

errorResponse

func NewGetMasterVersionsDefault

func NewGetMasterVersionsDefault(code int) *GetMasterVersionsDefault

NewGetMasterVersionsDefault creates a GetMasterVersionsDefault with default headers values

func (*GetMasterVersionsDefault) Code

func (o *GetMasterVersionsDefault) Code() int

Code gets the status code for the get master versions default response

func (*GetMasterVersionsDefault) Error

func (o *GetMasterVersionsDefault) Error() string

func (*GetMasterVersionsDefault) GetPayload

type GetMasterVersionsOK

type GetMasterVersionsOK struct {
	Payload []*models.MasterVersion
}

GetMasterVersionsOK handles this case with default header values.

MasterVersion

func NewGetMasterVersionsOK

func NewGetMasterVersionsOK() *GetMasterVersionsOK

NewGetMasterVersionsOK creates a GetMasterVersionsOK with default headers values

func (*GetMasterVersionsOK) Error

func (o *GetMasterVersionsOK) Error() string

func (*GetMasterVersionsOK) GetPayload

func (o *GetMasterVersionsOK) GetPayload() []*models.MasterVersion

type GetMasterVersionsParams

type GetMasterVersionsParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetMasterVersionsParams contains all the parameters to send to the API endpoint for the get master versions operation typically these are written to a http.Request

func NewGetMasterVersionsParams

func NewGetMasterVersionsParams() *GetMasterVersionsParams

NewGetMasterVersionsParams creates a new GetMasterVersionsParams object with the default values initialized.

func NewGetMasterVersionsParamsWithContext

func NewGetMasterVersionsParamsWithContext(ctx context.Context) *GetMasterVersionsParams

NewGetMasterVersionsParamsWithContext creates a new GetMasterVersionsParams object with the default values initialized, and the ability to set a context for a request

func NewGetMasterVersionsParamsWithHTTPClient

func NewGetMasterVersionsParamsWithHTTPClient(client *http.Client) *GetMasterVersionsParams

NewGetMasterVersionsParamsWithHTTPClient creates a new GetMasterVersionsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetMasterVersionsParamsWithTimeout

func NewGetMasterVersionsParamsWithTimeout(timeout time.Duration) *GetMasterVersionsParams

NewGetMasterVersionsParamsWithTimeout creates a new GetMasterVersionsParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetMasterVersionsParams) SetContext

func (o *GetMasterVersionsParams) SetContext(ctx context.Context)

SetContext adds the context to the get master versions params

func (*GetMasterVersionsParams) SetHTTPClient

func (o *GetMasterVersionsParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get master versions params

func (*GetMasterVersionsParams) SetTimeout

func (o *GetMasterVersionsParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get master versions params

func (*GetMasterVersionsParams) WithContext

WithContext adds the context to the get master versions params

func (*GetMasterVersionsParams) WithHTTPClient

func (o *GetMasterVersionsParams) WithHTTPClient(client *http.Client) *GetMasterVersionsParams

WithHTTPClient adds the HTTPClient to the get master versions params

func (*GetMasterVersionsParams) WithTimeout

WithTimeout adds the timeout to the get master versions params

func (*GetMasterVersionsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetMasterVersionsReader

type GetMasterVersionsReader struct {
	// contains filtered or unexported fields
}

GetMasterVersionsReader is a Reader for the GetMasterVersions structure.

func (*GetMasterVersionsReader) ReadResponse

func (o *GetMasterVersionsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetNodeUpgradesDefault

type GetNodeUpgradesDefault struct {
	Payload *models.ErrorResponse
	// contains filtered or unexported fields
}

GetNodeUpgradesDefault handles this case with default header values.

errorResponse

func NewGetNodeUpgradesDefault

func NewGetNodeUpgradesDefault(code int) *GetNodeUpgradesDefault

NewGetNodeUpgradesDefault creates a GetNodeUpgradesDefault with default headers values

func (*GetNodeUpgradesDefault) Code

func (o *GetNodeUpgradesDefault) Code() int

Code gets the status code for the get node upgrades default response

func (*GetNodeUpgradesDefault) Error

func (o *GetNodeUpgradesDefault) Error() string

func (*GetNodeUpgradesDefault) GetPayload

func (o *GetNodeUpgradesDefault) GetPayload() *models.ErrorResponse

type GetNodeUpgradesForbidden

type GetNodeUpgradesForbidden struct {
}

GetNodeUpgradesForbidden handles this case with default header values.

EmptyResponse is a empty response

func NewGetNodeUpgradesForbidden

func NewGetNodeUpgradesForbidden() *GetNodeUpgradesForbidden

NewGetNodeUpgradesForbidden creates a GetNodeUpgradesForbidden with default headers values

func (*GetNodeUpgradesForbidden) Error

func (o *GetNodeUpgradesForbidden) Error() string

type GetNodeUpgradesOK

type GetNodeUpgradesOK struct {
	Payload []*models.MasterVersion
}

GetNodeUpgradesOK handles this case with default header values.

MasterVersion

func NewGetNodeUpgradesOK

func NewGetNodeUpgradesOK() *GetNodeUpgradesOK

NewGetNodeUpgradesOK creates a GetNodeUpgradesOK with default headers values

func (*GetNodeUpgradesOK) Error

func (o *GetNodeUpgradesOK) Error() string

func (*GetNodeUpgradesOK) GetPayload

func (o *GetNodeUpgradesOK) GetPayload() []*models.MasterVersion

type GetNodeUpgradesParams

type GetNodeUpgradesParams struct {

	/*ControlPlaneVersion*/
	ControlPlaneVersion *string
	/*Type*/
	Type *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetNodeUpgradesParams contains all the parameters to send to the API endpoint for the get node upgrades operation typically these are written to a http.Request

func NewGetNodeUpgradesParams

func NewGetNodeUpgradesParams() *GetNodeUpgradesParams

NewGetNodeUpgradesParams creates a new GetNodeUpgradesParams object with the default values initialized.

func NewGetNodeUpgradesParamsWithContext

func NewGetNodeUpgradesParamsWithContext(ctx context.Context) *GetNodeUpgradesParams

NewGetNodeUpgradesParamsWithContext creates a new GetNodeUpgradesParams object with the default values initialized, and the ability to set a context for a request

func NewGetNodeUpgradesParamsWithHTTPClient

func NewGetNodeUpgradesParamsWithHTTPClient(client *http.Client) *GetNodeUpgradesParams

NewGetNodeUpgradesParamsWithHTTPClient creates a new GetNodeUpgradesParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetNodeUpgradesParamsWithTimeout

func NewGetNodeUpgradesParamsWithTimeout(timeout time.Duration) *GetNodeUpgradesParams

NewGetNodeUpgradesParamsWithTimeout creates a new GetNodeUpgradesParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetNodeUpgradesParams) SetContext

func (o *GetNodeUpgradesParams) SetContext(ctx context.Context)

SetContext adds the context to the get node upgrades params

func (*GetNodeUpgradesParams) SetControlPlaneVersion

func (o *GetNodeUpgradesParams) SetControlPlaneVersion(controlPlaneVersion *string)

SetControlPlaneVersion adds the controlPlaneVersion to the get node upgrades params

func (*GetNodeUpgradesParams) SetHTTPClient

func (o *GetNodeUpgradesParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get node upgrades params

func (*GetNodeUpgradesParams) SetTimeout

func (o *GetNodeUpgradesParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get node upgrades params

func (*GetNodeUpgradesParams) SetType

func (o *GetNodeUpgradesParams) SetType(typeVar *string)

SetType adds the type to the get node upgrades params

func (*GetNodeUpgradesParams) WithContext

WithContext adds the context to the get node upgrades params

func (*GetNodeUpgradesParams) WithControlPlaneVersion

func (o *GetNodeUpgradesParams) WithControlPlaneVersion(controlPlaneVersion *string) *GetNodeUpgradesParams

WithControlPlaneVersion adds the controlPlaneVersion to the get node upgrades params

func (*GetNodeUpgradesParams) WithHTTPClient

func (o *GetNodeUpgradesParams) WithHTTPClient(client *http.Client) *GetNodeUpgradesParams

WithHTTPClient adds the HTTPClient to the get node upgrades params

func (*GetNodeUpgradesParams) WithTimeout

func (o *GetNodeUpgradesParams) WithTimeout(timeout time.Duration) *GetNodeUpgradesParams

WithTimeout adds the timeout to the get node upgrades params

func (*GetNodeUpgradesParams) WithType

func (o *GetNodeUpgradesParams) WithType(typeVar *string) *GetNodeUpgradesParams

WithType adds the typeVar to the get node upgrades params

func (*GetNodeUpgradesParams) WriteToRequest

func (o *GetNodeUpgradesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetNodeUpgradesReader

type GetNodeUpgradesReader struct {
	// contains filtered or unexported fields
}

GetNodeUpgradesReader is a Reader for the GetNodeUpgrades structure.

func (*GetNodeUpgradesReader) ReadResponse

func (o *GetNodeUpgradesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetNodeUpgradesUnauthorized

type GetNodeUpgradesUnauthorized struct {
}

GetNodeUpgradesUnauthorized handles this case with default header values.

EmptyResponse is a empty response

func NewGetNodeUpgradesUnauthorized

func NewGetNodeUpgradesUnauthorized() *GetNodeUpgradesUnauthorized

NewGetNodeUpgradesUnauthorized creates a GetNodeUpgradesUnauthorized with default headers values

func (*GetNodeUpgradesUnauthorized) Error

Jump to

Keyboard shortcuts

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