Documentation
¶
Index ¶
- type API
- type Client
- func (a *Client) V2ListComponentVersions(ctx context.Context, params *V2ListComponentVersionsParams) (*V2ListComponentVersionsOK, error)
- func (a *Client) V2ListReleaseSources(ctx context.Context, params *V2ListReleaseSourcesParams) (*V2ListReleaseSourcesOK, error)
- func (a *Client) V2ListSupportedOpenshiftVersions(ctx context.Context, params *V2ListSupportedOpenshiftVersionsParams) (*V2ListSupportedOpenshiftVersionsOK, error)
- type V2ListComponentVersionsOK
- func (o *V2ListComponentVersionsOK) Error() string
- func (o *V2ListComponentVersionsOK) GetPayload() *models.ListVersions
- func (o *V2ListComponentVersionsOK) IsClientError() bool
- func (o *V2ListComponentVersionsOK) IsCode(code int) bool
- func (o *V2ListComponentVersionsOK) IsRedirect() bool
- func (o *V2ListComponentVersionsOK) IsServerError() bool
- func (o *V2ListComponentVersionsOK) IsSuccess() bool
- func (o *V2ListComponentVersionsOK) String() string
- type V2ListComponentVersionsParams
- func NewV2ListComponentVersionsParams() *V2ListComponentVersionsParams
- func NewV2ListComponentVersionsParamsWithContext(ctx context.Context) *V2ListComponentVersionsParams
- func NewV2ListComponentVersionsParamsWithHTTPClient(client *http.Client) *V2ListComponentVersionsParams
- func NewV2ListComponentVersionsParamsWithTimeout(timeout time.Duration) *V2ListComponentVersionsParams
- func (o *V2ListComponentVersionsParams) SetContext(ctx context.Context)
- func (o *V2ListComponentVersionsParams) SetDefaults()
- func (o *V2ListComponentVersionsParams) SetHTTPClient(client *http.Client)
- func (o *V2ListComponentVersionsParams) SetTimeout(timeout time.Duration)
- func (o *V2ListComponentVersionsParams) WithContext(ctx context.Context) *V2ListComponentVersionsParams
- func (o *V2ListComponentVersionsParams) WithDefaults() *V2ListComponentVersionsParams
- func (o *V2ListComponentVersionsParams) WithHTTPClient(client *http.Client) *V2ListComponentVersionsParams
- func (o *V2ListComponentVersionsParams) WithTimeout(timeout time.Duration) *V2ListComponentVersionsParams
- func (o *V2ListComponentVersionsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type V2ListComponentVersionsReader
- type V2ListReleaseSourcesOK
- func (o *V2ListReleaseSourcesOK) Error() string
- func (o *V2ListReleaseSourcesOK) GetPayload() models.ReleaseSources
- func (o *V2ListReleaseSourcesOK) IsClientError() bool
- func (o *V2ListReleaseSourcesOK) IsCode(code int) bool
- func (o *V2ListReleaseSourcesOK) IsRedirect() bool
- func (o *V2ListReleaseSourcesOK) IsServerError() bool
- func (o *V2ListReleaseSourcesOK) IsSuccess() bool
- func (o *V2ListReleaseSourcesOK) String() string
- type V2ListReleaseSourcesParams
- func NewV2ListReleaseSourcesParams() *V2ListReleaseSourcesParams
- func NewV2ListReleaseSourcesParamsWithContext(ctx context.Context) *V2ListReleaseSourcesParams
- func NewV2ListReleaseSourcesParamsWithHTTPClient(client *http.Client) *V2ListReleaseSourcesParams
- func NewV2ListReleaseSourcesParamsWithTimeout(timeout time.Duration) *V2ListReleaseSourcesParams
- func (o *V2ListReleaseSourcesParams) SetContext(ctx context.Context)
- func (o *V2ListReleaseSourcesParams) SetDefaults()
- func (o *V2ListReleaseSourcesParams) SetHTTPClient(client *http.Client)
- func (o *V2ListReleaseSourcesParams) SetTimeout(timeout time.Duration)
- func (o *V2ListReleaseSourcesParams) WithContext(ctx context.Context) *V2ListReleaseSourcesParams
- func (o *V2ListReleaseSourcesParams) WithDefaults() *V2ListReleaseSourcesParams
- func (o *V2ListReleaseSourcesParams) WithHTTPClient(client *http.Client) *V2ListReleaseSourcesParams
- func (o *V2ListReleaseSourcesParams) WithTimeout(timeout time.Duration) *V2ListReleaseSourcesParams
- func (o *V2ListReleaseSourcesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type V2ListReleaseSourcesReader
- type V2ListSupportedOpenshiftVersionsBadRequest
- func (o *V2ListSupportedOpenshiftVersionsBadRequest) Error() string
- func (o *V2ListSupportedOpenshiftVersionsBadRequest) GetPayload() *models.Error
- func (o *V2ListSupportedOpenshiftVersionsBadRequest) IsClientError() bool
- func (o *V2ListSupportedOpenshiftVersionsBadRequest) IsCode(code int) bool
- func (o *V2ListSupportedOpenshiftVersionsBadRequest) IsRedirect() bool
- func (o *V2ListSupportedOpenshiftVersionsBadRequest) IsServerError() bool
- func (o *V2ListSupportedOpenshiftVersionsBadRequest) IsSuccess() bool
- func (o *V2ListSupportedOpenshiftVersionsBadRequest) String() string
- type V2ListSupportedOpenshiftVersionsInternalServerError
- func (o *V2ListSupportedOpenshiftVersionsInternalServerError) Error() string
- func (o *V2ListSupportedOpenshiftVersionsInternalServerError) GetPayload() *models.Error
- func (o *V2ListSupportedOpenshiftVersionsInternalServerError) IsClientError() bool
- func (o *V2ListSupportedOpenshiftVersionsInternalServerError) IsCode(code int) bool
- func (o *V2ListSupportedOpenshiftVersionsInternalServerError) IsRedirect() bool
- func (o *V2ListSupportedOpenshiftVersionsInternalServerError) IsServerError() bool
- func (o *V2ListSupportedOpenshiftVersionsInternalServerError) IsSuccess() bool
- func (o *V2ListSupportedOpenshiftVersionsInternalServerError) String() string
- type V2ListSupportedOpenshiftVersionsOK
- func (o *V2ListSupportedOpenshiftVersionsOK) Error() string
- func (o *V2ListSupportedOpenshiftVersionsOK) GetPayload() models.OpenshiftVersions
- func (o *V2ListSupportedOpenshiftVersionsOK) IsClientError() bool
- func (o *V2ListSupportedOpenshiftVersionsOK) IsCode(code int) bool
- func (o *V2ListSupportedOpenshiftVersionsOK) IsRedirect() bool
- func (o *V2ListSupportedOpenshiftVersionsOK) IsServerError() bool
- func (o *V2ListSupportedOpenshiftVersionsOK) IsSuccess() bool
- func (o *V2ListSupportedOpenshiftVersionsOK) String() string
- type V2ListSupportedOpenshiftVersionsParams
- func NewV2ListSupportedOpenshiftVersionsParams() *V2ListSupportedOpenshiftVersionsParams
- func NewV2ListSupportedOpenshiftVersionsParamsWithContext(ctx context.Context) *V2ListSupportedOpenshiftVersionsParams
- func NewV2ListSupportedOpenshiftVersionsParamsWithHTTPClient(client *http.Client) *V2ListSupportedOpenshiftVersionsParams
- func NewV2ListSupportedOpenshiftVersionsParamsWithTimeout(timeout time.Duration) *V2ListSupportedOpenshiftVersionsParams
- func (o *V2ListSupportedOpenshiftVersionsParams) SetContext(ctx context.Context)
- func (o *V2ListSupportedOpenshiftVersionsParams) SetDefaults()
- func (o *V2ListSupportedOpenshiftVersionsParams) SetHTTPClient(client *http.Client)
- func (o *V2ListSupportedOpenshiftVersionsParams) SetOnlyLatest(onlyLatest *bool)
- func (o *V2ListSupportedOpenshiftVersionsParams) SetTimeout(timeout time.Duration)
- func (o *V2ListSupportedOpenshiftVersionsParams) SetVersion(version *string)
- func (o *V2ListSupportedOpenshiftVersionsParams) WithContext(ctx context.Context) *V2ListSupportedOpenshiftVersionsParams
- func (o *V2ListSupportedOpenshiftVersionsParams) WithDefaults() *V2ListSupportedOpenshiftVersionsParams
- func (o *V2ListSupportedOpenshiftVersionsParams) WithHTTPClient(client *http.Client) *V2ListSupportedOpenshiftVersionsParams
- func (o *V2ListSupportedOpenshiftVersionsParams) WithOnlyLatest(onlyLatest *bool) *V2ListSupportedOpenshiftVersionsParams
- func (o *V2ListSupportedOpenshiftVersionsParams) WithTimeout(timeout time.Duration) *V2ListSupportedOpenshiftVersionsParams
- func (o *V2ListSupportedOpenshiftVersionsParams) WithVersion(version *string) *V2ListSupportedOpenshiftVersionsParams
- func (o *V2ListSupportedOpenshiftVersionsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type V2ListSupportedOpenshiftVersionsReader
- type V2ListSupportedOpenshiftVersionsServiceUnavailable
- func (o *V2ListSupportedOpenshiftVersionsServiceUnavailable) Error() string
- func (o *V2ListSupportedOpenshiftVersionsServiceUnavailable) GetPayload() *models.Error
- func (o *V2ListSupportedOpenshiftVersionsServiceUnavailable) IsClientError() bool
- func (o *V2ListSupportedOpenshiftVersionsServiceUnavailable) IsCode(code int) bool
- func (o *V2ListSupportedOpenshiftVersionsServiceUnavailable) IsRedirect() bool
- func (o *V2ListSupportedOpenshiftVersionsServiceUnavailable) IsServerError() bool
- func (o *V2ListSupportedOpenshiftVersionsServiceUnavailable) IsSuccess() bool
- func (o *V2ListSupportedOpenshiftVersionsServiceUnavailable) String() string
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 (o *V2ListComponentVersionsOK) GetPayload() *models.ListVersions
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 ¶
func (o *V2ListComponentVersionsParams) WithContext(ctx context.Context) *V2ListComponentVersionsParams
WithContext adds the context to the v2 list component versions params
func (*V2ListComponentVersionsParams) WithDefaults ¶
func (o *V2ListComponentVersionsParams) WithDefaults() *V2ListComponentVersionsParams
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 ¶
func (o *V2ListComponentVersionsParams) WithHTTPClient(client *http.Client) *V2ListComponentVersionsParams
WithHTTPClient adds the HTTPClient to the v2 list component versions params
func (*V2ListComponentVersionsParams) WithTimeout ¶
func (o *V2ListComponentVersionsParams) WithTimeout(timeout time.Duration) *V2ListComponentVersionsParams
WithTimeout adds the timeout to the v2 list component versions params
func (*V2ListComponentVersionsParams) WriteToRequest ¶
func (o *V2ListComponentVersionsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 (o *V2ListReleaseSourcesOK) GetPayload() models.ReleaseSources
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 ¶
func (o *V2ListReleaseSourcesParams) WithContext(ctx context.Context) *V2ListReleaseSourcesParams
WithContext adds the context to the v2 list release sources params
func (*V2ListReleaseSourcesParams) WithDefaults ¶
func (o *V2ListReleaseSourcesParams) WithDefaults() *V2ListReleaseSourcesParams
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 ¶
func (o *V2ListReleaseSourcesParams) WithHTTPClient(client *http.Client) *V2ListReleaseSourcesParams
WithHTTPClient adds the HTTPClient to the v2 list release sources params
func (*V2ListReleaseSourcesParams) WithTimeout ¶
func (o *V2ListReleaseSourcesParams) WithTimeout(timeout time.Duration) *V2ListReleaseSourcesParams
WithTimeout adds the timeout to the v2 list release sources params
func (*V2ListReleaseSourcesParams) WriteToRequest ¶
func (o *V2ListReleaseSourcesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
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 (o *V2ListSupportedOpenshiftVersionsBadRequest) Error() string
func (*V2ListSupportedOpenshiftVersionsBadRequest) GetPayload ¶
func (o *V2ListSupportedOpenshiftVersionsBadRequest) GetPayload() *models.Error
func (*V2ListSupportedOpenshiftVersionsBadRequest) IsClientError ¶
func (o *V2ListSupportedOpenshiftVersionsBadRequest) IsClientError() bool
IsClientError returns true when this v2 list supported openshift versions bad request response has a 4xx status code
func (*V2ListSupportedOpenshiftVersionsBadRequest) IsCode ¶
func (o *V2ListSupportedOpenshiftVersionsBadRequest) IsCode(code int) bool
IsCode returns true when this v2 list supported openshift versions bad request response a status code equal to that given
func (*V2ListSupportedOpenshiftVersionsBadRequest) IsRedirect ¶
func (o *V2ListSupportedOpenshiftVersionsBadRequest) IsRedirect() bool
IsRedirect returns true when this v2 list supported openshift versions bad request response has a 3xx status code
func (*V2ListSupportedOpenshiftVersionsBadRequest) IsServerError ¶
func (o *V2ListSupportedOpenshiftVersionsBadRequest) IsServerError() bool
IsServerError returns true when this v2 list supported openshift versions bad request response has a 5xx status code
func (*V2ListSupportedOpenshiftVersionsBadRequest) IsSuccess ¶
func (o *V2ListSupportedOpenshiftVersionsBadRequest) IsSuccess() bool
IsSuccess returns true when this v2 list supported openshift versions bad request response has a 2xx status code
func (*V2ListSupportedOpenshiftVersionsBadRequest) String ¶
func (o *V2ListSupportedOpenshiftVersionsBadRequest) String() string
type V2ListSupportedOpenshiftVersionsInternalServerError ¶
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 (o *V2ListSupportedOpenshiftVersionsInternalServerError) Error() string
func (*V2ListSupportedOpenshiftVersionsInternalServerError) GetPayload ¶
func (o *V2ListSupportedOpenshiftVersionsInternalServerError) GetPayload() *models.Error
func (*V2ListSupportedOpenshiftVersionsInternalServerError) IsClientError ¶
func (o *V2ListSupportedOpenshiftVersionsInternalServerError) IsClientError() bool
IsClientError returns true when this v2 list supported openshift versions internal server error response has a 4xx status code
func (*V2ListSupportedOpenshiftVersionsInternalServerError) IsCode ¶
func (o *V2ListSupportedOpenshiftVersionsInternalServerError) IsCode(code int) bool
IsCode returns true when this v2 list supported openshift versions internal server error response a status code equal to that given
func (*V2ListSupportedOpenshiftVersionsInternalServerError) IsRedirect ¶
func (o *V2ListSupportedOpenshiftVersionsInternalServerError) IsRedirect() bool
IsRedirect returns true when this v2 list supported openshift versions internal server error response has a 3xx status code
func (*V2ListSupportedOpenshiftVersionsInternalServerError) IsServerError ¶
func (o *V2ListSupportedOpenshiftVersionsInternalServerError) IsServerError() bool
IsServerError returns true when this v2 list supported openshift versions internal server error response has a 5xx status code
func (*V2ListSupportedOpenshiftVersionsInternalServerError) IsSuccess ¶
func (o *V2ListSupportedOpenshiftVersionsInternalServerError) IsSuccess() bool
IsSuccess returns true when this v2 list supported openshift versions internal server error response has a 2xx status code
func (*V2ListSupportedOpenshiftVersionsInternalServerError) String ¶
func (o *V2ListSupportedOpenshiftVersionsInternalServerError) String() 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 (o *V2ListSupportedOpenshiftVersionsOK) Error() string
func (*V2ListSupportedOpenshiftVersionsOK) GetPayload ¶
func (o *V2ListSupportedOpenshiftVersionsOK) GetPayload() models.OpenshiftVersions
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 ¶
func (o *V2ListSupportedOpenshiftVersionsOK) IsCode(code int) bool
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 ¶
func (o *V2ListSupportedOpenshiftVersionsOK) IsSuccess() bool
IsSuccess returns true when this v2 list supported openshift versions o k response has a 2xx status code
func (*V2ListSupportedOpenshiftVersionsOK) String ¶
func (o *V2ListSupportedOpenshiftVersionsOK) String() 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 ¶
func (o *V2ListSupportedOpenshiftVersionsParams) SetContext(ctx context.Context)
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 ¶
func (o *V2ListSupportedOpenshiftVersionsParams) WithContext(ctx context.Context) *V2ListSupportedOpenshiftVersionsParams
WithContext adds the context to the v2 list supported openshift versions params
func (*V2ListSupportedOpenshiftVersionsParams) WithDefaults ¶
func (o *V2ListSupportedOpenshiftVersionsParams) WithDefaults() *V2ListSupportedOpenshiftVersionsParams
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 ¶
func (o *V2ListSupportedOpenshiftVersionsParams) WithHTTPClient(client *http.Client) *V2ListSupportedOpenshiftVersionsParams
WithHTTPClient adds the HTTPClient to the v2 list supported openshift versions params
func (*V2ListSupportedOpenshiftVersionsParams) WithOnlyLatest ¶
func (o *V2ListSupportedOpenshiftVersionsParams) WithOnlyLatest(onlyLatest *bool) *V2ListSupportedOpenshiftVersionsParams
WithOnlyLatest adds the onlyLatest to the v2 list supported openshift versions params
func (*V2ListSupportedOpenshiftVersionsParams) WithTimeout ¶
func (o *V2ListSupportedOpenshiftVersionsParams) WithTimeout(timeout time.Duration) *V2ListSupportedOpenshiftVersionsParams
WithTimeout adds the timeout to the v2 list supported openshift versions params
func (*V2ListSupportedOpenshiftVersionsParams) WithVersion ¶
func (o *V2ListSupportedOpenshiftVersionsParams) WithVersion(version *string) *V2ListSupportedOpenshiftVersionsParams
WithVersion adds the version to the v2 list supported openshift versions params
func (*V2ListSupportedOpenshiftVersionsParams) WriteToRequest ¶
func (o *V2ListSupportedOpenshiftVersionsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 {
}
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 (o *V2ListSupportedOpenshiftVersionsServiceUnavailable) Error() string
func (*V2ListSupportedOpenshiftVersionsServiceUnavailable) GetPayload ¶
func (o *V2ListSupportedOpenshiftVersionsServiceUnavailable) GetPayload() *models.Error
func (*V2ListSupportedOpenshiftVersionsServiceUnavailable) IsClientError ¶
func (o *V2ListSupportedOpenshiftVersionsServiceUnavailable) IsClientError() bool
IsClientError returns true when this v2 list supported openshift versions service unavailable response has a 4xx status code
func (*V2ListSupportedOpenshiftVersionsServiceUnavailable) IsCode ¶
func (o *V2ListSupportedOpenshiftVersionsServiceUnavailable) IsCode(code int) bool
IsCode returns true when this v2 list supported openshift versions service unavailable response a status code equal to that given
func (*V2ListSupportedOpenshiftVersionsServiceUnavailable) IsRedirect ¶
func (o *V2ListSupportedOpenshiftVersionsServiceUnavailable) IsRedirect() bool
IsRedirect returns true when this v2 list supported openshift versions service unavailable response has a 3xx status code
func (*V2ListSupportedOpenshiftVersionsServiceUnavailable) IsServerError ¶
func (o *V2ListSupportedOpenshiftVersionsServiceUnavailable) IsServerError() bool
IsServerError returns true when this v2 list supported openshift versions service unavailable response has a 5xx status code
func (*V2ListSupportedOpenshiftVersionsServiceUnavailable) IsSuccess ¶
func (o *V2ListSupportedOpenshiftVersionsServiceUnavailable) IsSuccess() bool
IsSuccess returns true when this v2 list supported openshift versions service unavailable response has a 2xx status code
func (*V2ListSupportedOpenshiftVersionsServiceUnavailable) String ¶
func (o *V2ListSupportedOpenshiftVersionsServiceUnavailable) String() string