versions

package
v0.0.0-...-d026b29 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2026 License: Apache-2.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 API

type API interface {
	/*
	   V2ListComponentVersions List of component versions.*/
	V2ListComponentVersions(ctx context.Context, params *V2ListComponentVersionsParams) (*V2ListComponentVersionsOK, error)
	/*
	   V2ListReleaseSources Retrieves openshift release sources configuration.*/
	V2ListReleaseSources(ctx context.Context, params *V2ListReleaseSourcesParams) (*V2ListReleaseSourcesOK, error)
	/*
	   V2ListSupportedOpenshiftVersions Retrieves the list of OpenShift supported versions.*/
	V2ListSupportedOpenshiftVersions(ctx context.Context, params *V2ListSupportedOpenshiftVersionsParams) (*V2ListSupportedOpenshiftVersionsOK, error)
}

API is the interface of the versions client

type Client

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

Client for versions API

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry, authInfo runtime.ClientAuthInfoWriter) *Client

New creates a new versions API client.

func (*Client) V2ListComponentVersions

func (a *Client) V2ListComponentVersions(ctx context.Context, params *V2ListComponentVersionsParams) (*V2ListComponentVersionsOK, error)

V2ListComponentVersions List of component versions.

func (*Client) V2ListReleaseSources

func (a *Client) V2ListReleaseSources(ctx context.Context, params *V2ListReleaseSourcesParams) (*V2ListReleaseSourcesOK, error)

V2ListReleaseSources Retrieves openshift release sources configuration.

func (*Client) V2ListSupportedOpenshiftVersions

func (a *Client) V2ListSupportedOpenshiftVersions(ctx context.Context, params *V2ListSupportedOpenshiftVersionsParams) (*V2ListSupportedOpenshiftVersionsOK, error)

V2ListSupportedOpenshiftVersions Retrieves the list of OpenShift supported versions.

type V2ListComponentVersionsOK

type V2ListComponentVersionsOK struct {
	Payload *models.ListVersions
}

V2ListComponentVersionsOK describes a response with status code 200, with default header values.

Success.

func NewV2ListComponentVersionsOK

func NewV2ListComponentVersionsOK() *V2ListComponentVersionsOK

NewV2ListComponentVersionsOK creates a V2ListComponentVersionsOK with default headers values

func (*V2ListComponentVersionsOK) Error

func (o *V2ListComponentVersionsOK) Error() string

func (*V2ListComponentVersionsOK) GetPayload

func (*V2ListComponentVersionsOK) IsClientError

func (o *V2ListComponentVersionsOK) IsClientError() bool

IsClientError returns true when this v2 list component versions o k response has a 4xx status code

func (*V2ListComponentVersionsOK) IsCode

func (o *V2ListComponentVersionsOK) IsCode(code int) bool

IsCode returns true when this v2 list component versions o k response a status code equal to that given

func (*V2ListComponentVersionsOK) IsRedirect

func (o *V2ListComponentVersionsOK) IsRedirect() bool

IsRedirect returns true when this v2 list component versions o k response has a 3xx status code

func (*V2ListComponentVersionsOK) IsServerError

func (o *V2ListComponentVersionsOK) IsServerError() bool

IsServerError returns true when this v2 list component versions o k response has a 5xx status code

func (*V2ListComponentVersionsOK) IsSuccess

func (o *V2ListComponentVersionsOK) IsSuccess() bool

IsSuccess returns true when this v2 list component versions o k response has a 2xx status code

func (*V2ListComponentVersionsOK) String

func (o *V2ListComponentVersionsOK) String() string

type V2ListComponentVersionsParams

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

V2ListComponentVersionsParams contains all the parameters to send to the API endpoint

for the v2 list component versions operation.

Typically these are written to a http.Request.

func NewV2ListComponentVersionsParams

func NewV2ListComponentVersionsParams() *V2ListComponentVersionsParams

NewV2ListComponentVersionsParams creates a new V2ListComponentVersionsParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewV2ListComponentVersionsParamsWithContext

func NewV2ListComponentVersionsParamsWithContext(ctx context.Context) *V2ListComponentVersionsParams

NewV2ListComponentVersionsParamsWithContext creates a new V2ListComponentVersionsParams object with the ability to set a context for a request.

func NewV2ListComponentVersionsParamsWithHTTPClient

func NewV2ListComponentVersionsParamsWithHTTPClient(client *http.Client) *V2ListComponentVersionsParams

NewV2ListComponentVersionsParamsWithHTTPClient creates a new V2ListComponentVersionsParams object with the ability to set a custom HTTPClient for a request.

func NewV2ListComponentVersionsParamsWithTimeout

func NewV2ListComponentVersionsParamsWithTimeout(timeout time.Duration) *V2ListComponentVersionsParams

NewV2ListComponentVersionsParamsWithTimeout creates a new V2ListComponentVersionsParams object with the ability to set a timeout on a request.

func (*V2ListComponentVersionsParams) SetContext

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

SetContext adds the context to the v2 list component versions params

func (*V2ListComponentVersionsParams) SetDefaults

func (o *V2ListComponentVersionsParams) SetDefaults()

SetDefaults hydrates default values in the v2 list component versions params (not the query body).

All values with no default are reset to their zero value.

func (*V2ListComponentVersionsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the v2 list component versions params

func (*V2ListComponentVersionsParams) SetTimeout

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

SetTimeout adds the timeout to the v2 list component versions params

func (*V2ListComponentVersionsParams) WithContext

WithContext adds the context to the v2 list component versions params

func (*V2ListComponentVersionsParams) WithDefaults

WithDefaults hydrates default values in the v2 list component versions params (not the query body).

All values with no default are reset to their zero value.

func (*V2ListComponentVersionsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the v2 list component versions params

func (*V2ListComponentVersionsParams) WithTimeout

WithTimeout adds the timeout to the v2 list component versions params

func (*V2ListComponentVersionsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type V2ListComponentVersionsReader

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

V2ListComponentVersionsReader is a Reader for the V2ListComponentVersions structure.

func (*V2ListComponentVersionsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type V2ListReleaseSourcesOK

type V2ListReleaseSourcesOK struct {
	Payload models.ReleaseSources
}

V2ListReleaseSourcesOK describes a response with status code 200, with default header values.

Success.

func NewV2ListReleaseSourcesOK

func NewV2ListReleaseSourcesOK() *V2ListReleaseSourcesOK

NewV2ListReleaseSourcesOK creates a V2ListReleaseSourcesOK with default headers values

func (*V2ListReleaseSourcesOK) Error

func (o *V2ListReleaseSourcesOK) Error() string

func (*V2ListReleaseSourcesOK) GetPayload

func (*V2ListReleaseSourcesOK) IsClientError

func (o *V2ListReleaseSourcesOK) IsClientError() bool

IsClientError returns true when this v2 list release sources o k response has a 4xx status code

func (*V2ListReleaseSourcesOK) IsCode

func (o *V2ListReleaseSourcesOK) IsCode(code int) bool

IsCode returns true when this v2 list release sources o k response a status code equal to that given

func (*V2ListReleaseSourcesOK) IsRedirect

func (o *V2ListReleaseSourcesOK) IsRedirect() bool

IsRedirect returns true when this v2 list release sources o k response has a 3xx status code

func (*V2ListReleaseSourcesOK) IsServerError

func (o *V2ListReleaseSourcesOK) IsServerError() bool

IsServerError returns true when this v2 list release sources o k response has a 5xx status code

func (*V2ListReleaseSourcesOK) IsSuccess

func (o *V2ListReleaseSourcesOK) IsSuccess() bool

IsSuccess returns true when this v2 list release sources o k response has a 2xx status code

func (*V2ListReleaseSourcesOK) String

func (o *V2ListReleaseSourcesOK) String() string

type V2ListReleaseSourcesParams

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

V2ListReleaseSourcesParams contains all the parameters to send to the API endpoint

for the v2 list release sources operation.

Typically these are written to a http.Request.

func NewV2ListReleaseSourcesParams

func NewV2ListReleaseSourcesParams() *V2ListReleaseSourcesParams

NewV2ListReleaseSourcesParams creates a new V2ListReleaseSourcesParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewV2ListReleaseSourcesParamsWithContext

func NewV2ListReleaseSourcesParamsWithContext(ctx context.Context) *V2ListReleaseSourcesParams

NewV2ListReleaseSourcesParamsWithContext creates a new V2ListReleaseSourcesParams object with the ability to set a context for a request.

func NewV2ListReleaseSourcesParamsWithHTTPClient

func NewV2ListReleaseSourcesParamsWithHTTPClient(client *http.Client) *V2ListReleaseSourcesParams

NewV2ListReleaseSourcesParamsWithHTTPClient creates a new V2ListReleaseSourcesParams object with the ability to set a custom HTTPClient for a request.

func NewV2ListReleaseSourcesParamsWithTimeout

func NewV2ListReleaseSourcesParamsWithTimeout(timeout time.Duration) *V2ListReleaseSourcesParams

NewV2ListReleaseSourcesParamsWithTimeout creates a new V2ListReleaseSourcesParams object with the ability to set a timeout on a request.

func (*V2ListReleaseSourcesParams) SetContext

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

SetContext adds the context to the v2 list release sources params

func (*V2ListReleaseSourcesParams) SetDefaults

func (o *V2ListReleaseSourcesParams) SetDefaults()

SetDefaults hydrates default values in the v2 list release sources params (not the query body).

All values with no default are reset to their zero value.

func (*V2ListReleaseSourcesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the v2 list release sources params

func (*V2ListReleaseSourcesParams) SetTimeout

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

SetTimeout adds the timeout to the v2 list release sources params

func (*V2ListReleaseSourcesParams) WithContext

WithContext adds the context to the v2 list release sources params

func (*V2ListReleaseSourcesParams) WithDefaults

WithDefaults hydrates default values in the v2 list release sources params (not the query body).

All values with no default are reset to their zero value.

func (*V2ListReleaseSourcesParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the v2 list release sources params

func (*V2ListReleaseSourcesParams) WithTimeout

WithTimeout adds the timeout to the v2 list release sources params

func (*V2ListReleaseSourcesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type V2ListReleaseSourcesReader

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

V2ListReleaseSourcesReader is a Reader for the V2ListReleaseSources structure.

func (*V2ListReleaseSourcesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type V2ListSupportedOpenshiftVersionsBadRequest

type V2ListSupportedOpenshiftVersionsBadRequest struct {
	Payload *models.Error
}

V2ListSupportedOpenshiftVersionsBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewV2ListSupportedOpenshiftVersionsBadRequest

func NewV2ListSupportedOpenshiftVersionsBadRequest() *V2ListSupportedOpenshiftVersionsBadRequest

NewV2ListSupportedOpenshiftVersionsBadRequest creates a V2ListSupportedOpenshiftVersionsBadRequest with default headers values

func (*V2ListSupportedOpenshiftVersionsBadRequest) Error

func (*V2ListSupportedOpenshiftVersionsBadRequest) GetPayload

func (*V2ListSupportedOpenshiftVersionsBadRequest) IsClientError

IsClientError returns true when this v2 list supported openshift versions bad request response has a 4xx status code

func (*V2ListSupportedOpenshiftVersionsBadRequest) IsCode

IsCode returns true when this v2 list supported openshift versions bad request response a status code equal to that given

func (*V2ListSupportedOpenshiftVersionsBadRequest) IsRedirect

IsRedirect returns true when this v2 list supported openshift versions bad request response has a 3xx status code

func (*V2ListSupportedOpenshiftVersionsBadRequest) IsServerError

IsServerError returns true when this v2 list supported openshift versions bad request response has a 5xx status code

func (*V2ListSupportedOpenshiftVersionsBadRequest) IsSuccess

IsSuccess returns true when this v2 list supported openshift versions bad request response has a 2xx status code

func (*V2ListSupportedOpenshiftVersionsBadRequest) String

type V2ListSupportedOpenshiftVersionsInternalServerError

type V2ListSupportedOpenshiftVersionsInternalServerError struct {
	Payload *models.Error
}

V2ListSupportedOpenshiftVersionsInternalServerError describes a response with status code 500, with default header values.

Error.

func NewV2ListSupportedOpenshiftVersionsInternalServerError

func NewV2ListSupportedOpenshiftVersionsInternalServerError() *V2ListSupportedOpenshiftVersionsInternalServerError

NewV2ListSupportedOpenshiftVersionsInternalServerError creates a V2ListSupportedOpenshiftVersionsInternalServerError with default headers values

func (*V2ListSupportedOpenshiftVersionsInternalServerError) Error

func (*V2ListSupportedOpenshiftVersionsInternalServerError) GetPayload

func (*V2ListSupportedOpenshiftVersionsInternalServerError) IsClientError

IsClientError returns true when this v2 list supported openshift versions internal server error response has a 4xx status code

func (*V2ListSupportedOpenshiftVersionsInternalServerError) IsCode

IsCode returns true when this v2 list supported openshift versions internal server error response a status code equal to that given

func (*V2ListSupportedOpenshiftVersionsInternalServerError) IsRedirect

IsRedirect returns true when this v2 list supported openshift versions internal server error response has a 3xx status code

func (*V2ListSupportedOpenshiftVersionsInternalServerError) IsServerError

IsServerError returns true when this v2 list supported openshift versions internal server error response has a 5xx status code

func (*V2ListSupportedOpenshiftVersionsInternalServerError) IsSuccess

IsSuccess returns true when this v2 list supported openshift versions internal server error response has a 2xx status code

func (*V2ListSupportedOpenshiftVersionsInternalServerError) String

type V2ListSupportedOpenshiftVersionsOK

type V2ListSupportedOpenshiftVersionsOK struct {
	Payload models.OpenshiftVersions
}

V2ListSupportedOpenshiftVersionsOK describes a response with status code 200, with default header values.

Success.

func NewV2ListSupportedOpenshiftVersionsOK

func NewV2ListSupportedOpenshiftVersionsOK() *V2ListSupportedOpenshiftVersionsOK

NewV2ListSupportedOpenshiftVersionsOK creates a V2ListSupportedOpenshiftVersionsOK with default headers values

func (*V2ListSupportedOpenshiftVersionsOK) Error

func (*V2ListSupportedOpenshiftVersionsOK) GetPayload

func (*V2ListSupportedOpenshiftVersionsOK) IsClientError

func (o *V2ListSupportedOpenshiftVersionsOK) IsClientError() bool

IsClientError returns true when this v2 list supported openshift versions o k response has a 4xx status code

func (*V2ListSupportedOpenshiftVersionsOK) IsCode

IsCode returns true when this v2 list supported openshift versions o k response a status code equal to that given

func (*V2ListSupportedOpenshiftVersionsOK) IsRedirect

func (o *V2ListSupportedOpenshiftVersionsOK) IsRedirect() bool

IsRedirect returns true when this v2 list supported openshift versions o k response has a 3xx status code

func (*V2ListSupportedOpenshiftVersionsOK) IsServerError

func (o *V2ListSupportedOpenshiftVersionsOK) IsServerError() bool

IsServerError returns true when this v2 list supported openshift versions o k response has a 5xx status code

func (*V2ListSupportedOpenshiftVersionsOK) IsSuccess

IsSuccess returns true when this v2 list supported openshift versions o k response has a 2xx status code

func (*V2ListSupportedOpenshiftVersionsOK) String

type V2ListSupportedOpenshiftVersionsParams

type V2ListSupportedOpenshiftVersionsParams struct {

	/* OnlyLatest.

	   If true, returns only the latest version for each minor.
	*/
	OnlyLatest *bool

	/* Version.

	   Retrieves only the versions that contain the specified substring in their display name.
	*/
	Version *string

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

V2ListSupportedOpenshiftVersionsParams contains all the parameters to send to the API endpoint

for the v2 list supported openshift versions operation.

Typically these are written to a http.Request.

func NewV2ListSupportedOpenshiftVersionsParams

func NewV2ListSupportedOpenshiftVersionsParams() *V2ListSupportedOpenshiftVersionsParams

NewV2ListSupportedOpenshiftVersionsParams creates a new V2ListSupportedOpenshiftVersionsParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewV2ListSupportedOpenshiftVersionsParamsWithContext

func NewV2ListSupportedOpenshiftVersionsParamsWithContext(ctx context.Context) *V2ListSupportedOpenshiftVersionsParams

NewV2ListSupportedOpenshiftVersionsParamsWithContext creates a new V2ListSupportedOpenshiftVersionsParams object with the ability to set a context for a request.

func NewV2ListSupportedOpenshiftVersionsParamsWithHTTPClient

func NewV2ListSupportedOpenshiftVersionsParamsWithHTTPClient(client *http.Client) *V2ListSupportedOpenshiftVersionsParams

NewV2ListSupportedOpenshiftVersionsParamsWithHTTPClient creates a new V2ListSupportedOpenshiftVersionsParams object with the ability to set a custom HTTPClient for a request.

func NewV2ListSupportedOpenshiftVersionsParamsWithTimeout

func NewV2ListSupportedOpenshiftVersionsParamsWithTimeout(timeout time.Duration) *V2ListSupportedOpenshiftVersionsParams

NewV2ListSupportedOpenshiftVersionsParamsWithTimeout creates a new V2ListSupportedOpenshiftVersionsParams object with the ability to set a timeout on a request.

func (*V2ListSupportedOpenshiftVersionsParams) SetContext

SetContext adds the context to the v2 list supported openshift versions params

func (*V2ListSupportedOpenshiftVersionsParams) SetDefaults

func (o *V2ListSupportedOpenshiftVersionsParams) SetDefaults()

SetDefaults hydrates default values in the v2 list supported openshift versions params (not the query body).

All values with no default are reset to their zero value.

func (*V2ListSupportedOpenshiftVersionsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the v2 list supported openshift versions params

func (*V2ListSupportedOpenshiftVersionsParams) SetOnlyLatest

func (o *V2ListSupportedOpenshiftVersionsParams) SetOnlyLatest(onlyLatest *bool)

SetOnlyLatest adds the onlyLatest to the v2 list supported openshift versions params

func (*V2ListSupportedOpenshiftVersionsParams) SetTimeout

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

SetTimeout adds the timeout to the v2 list supported openshift versions params

func (*V2ListSupportedOpenshiftVersionsParams) SetVersion

func (o *V2ListSupportedOpenshiftVersionsParams) SetVersion(version *string)

SetVersion adds the version to the v2 list supported openshift versions params

func (*V2ListSupportedOpenshiftVersionsParams) WithContext

WithContext adds the context to the v2 list supported openshift versions params

func (*V2ListSupportedOpenshiftVersionsParams) WithDefaults

WithDefaults hydrates default values in the v2 list supported openshift versions params (not the query body).

All values with no default are reset to their zero value.

func (*V2ListSupportedOpenshiftVersionsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the v2 list supported openshift versions params

func (*V2ListSupportedOpenshiftVersionsParams) WithOnlyLatest

WithOnlyLatest adds the onlyLatest to the v2 list supported openshift versions params

func (*V2ListSupportedOpenshiftVersionsParams) WithTimeout

WithTimeout adds the timeout to the v2 list supported openshift versions params

func (*V2ListSupportedOpenshiftVersionsParams) WithVersion

WithVersion adds the version to the v2 list supported openshift versions params

func (*V2ListSupportedOpenshiftVersionsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type V2ListSupportedOpenshiftVersionsReader

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

V2ListSupportedOpenshiftVersionsReader is a Reader for the V2ListSupportedOpenshiftVersions structure.

func (*V2ListSupportedOpenshiftVersionsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type V2ListSupportedOpenshiftVersionsServiceUnavailable

type V2ListSupportedOpenshiftVersionsServiceUnavailable struct {
	Payload *models.Error
}

V2ListSupportedOpenshiftVersionsServiceUnavailable describes a response with status code 503, with default header values.

Unavailable.

func NewV2ListSupportedOpenshiftVersionsServiceUnavailable

func NewV2ListSupportedOpenshiftVersionsServiceUnavailable() *V2ListSupportedOpenshiftVersionsServiceUnavailable

NewV2ListSupportedOpenshiftVersionsServiceUnavailable creates a V2ListSupportedOpenshiftVersionsServiceUnavailable with default headers values

func (*V2ListSupportedOpenshiftVersionsServiceUnavailable) Error

func (*V2ListSupportedOpenshiftVersionsServiceUnavailable) GetPayload

func (*V2ListSupportedOpenshiftVersionsServiceUnavailable) IsClientError

IsClientError returns true when this v2 list supported openshift versions service unavailable response has a 4xx status code

func (*V2ListSupportedOpenshiftVersionsServiceUnavailable) IsCode

IsCode returns true when this v2 list supported openshift versions service unavailable response a status code equal to that given

func (*V2ListSupportedOpenshiftVersionsServiceUnavailable) IsRedirect

IsRedirect returns true when this v2 list supported openshift versions service unavailable response has a 3xx status code

func (*V2ListSupportedOpenshiftVersionsServiceUnavailable) IsServerError

IsServerError returns true when this v2 list supported openshift versions service unavailable response has a 5xx status code

func (*V2ListSupportedOpenshiftVersionsServiceUnavailable) IsSuccess

IsSuccess returns true when this v2 list supported openshift versions service unavailable response has a 2xx status code

func (*V2ListSupportedOpenshiftVersionsServiceUnavailable) String

Jump to

Keyboard shortcuts

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