Documentation
¶
Index ¶
- type Client
- type GetReleasesOK
- type GetReleasesParams
- func (o *GetReleasesParams) SetContext(ctx context.Context)
- func (o *GetReleasesParams) SetHTTPClient(client *http.Client)
- func (o *GetReleasesParams) SetTimeout(timeout time.Duration)
- func (o *GetReleasesParams) SetXGiantSwarmActivity(xGiantSwarmActivity *string)
- func (o *GetReleasesParams) SetXGiantSwarmCmdLine(xGiantSwarmCmdLine *string)
- func (o *GetReleasesParams) SetXRequestID(xRequestID *string)
- func (o *GetReleasesParams) WithContext(ctx context.Context) *GetReleasesParams
- func (o *GetReleasesParams) WithHTTPClient(client *http.Client) *GetReleasesParams
- func (o *GetReleasesParams) WithTimeout(timeout time.Duration) *GetReleasesParams
- func (o *GetReleasesParams) WithXGiantSwarmActivity(xGiantSwarmActivity *string) *GetReleasesParams
- func (o *GetReleasesParams) WithXGiantSwarmCmdLine(xGiantSwarmCmdLine *string) *GetReleasesParams
- func (o *GetReleasesParams) WithXRequestID(xRequestID *string) *GetReleasesParams
- func (o *GetReleasesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetReleasesReader
- type GetReleasesUnauthorized
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 releases API
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client
New creates a new releases API client.
func (*Client) GetReleases ¶
func (a *Client) GetReleases(params *GetReleasesParams, authInfo runtime.ClientAuthInfoWriter) (*GetReleasesOK, error)
GetReleases gets releases
Lists all releases available for new clusters or for upgrading existing clusters. Might also serve as an archive to obtain details on older releases.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type GetReleasesOK ¶
type GetReleasesOK struct {
Payload []*models.V4ReleaseListItem
}
GetReleasesOK handles this case with default header values.
Releases list
func NewGetReleasesOK ¶
func NewGetReleasesOK() *GetReleasesOK
NewGetReleasesOK creates a GetReleasesOK with default headers values
func (*GetReleasesOK) Error ¶
func (o *GetReleasesOK) Error() string
type GetReleasesParams ¶
type GetReleasesParams struct { /*XGiantSwarmActivity Name of an activity to track, like "list-clusters". This allows to analyze several API requests sent in context and gives an idea on the purpose. */ XGiantSwarmActivity *string /*XGiantSwarmCmdLine If activity has been issued by a CLI, this header can contain the command line */ XGiantSwarmCmdLine *string /*XRequestID A randomly generated key that can be used to track a request throughout services of Giant Swarm. */ XRequestID *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetReleasesParams contains all the parameters to send to the API endpoint for the get releases operation typically these are written to a http.Request
func NewGetReleasesParams ¶
func NewGetReleasesParams() *GetReleasesParams
NewGetReleasesParams creates a new GetReleasesParams object with the default values initialized.
func NewGetReleasesParamsWithContext ¶
func NewGetReleasesParamsWithContext(ctx context.Context) *GetReleasesParams
NewGetReleasesParamsWithContext creates a new GetReleasesParams object with the default values initialized, and the ability to set a context for a request
func NewGetReleasesParamsWithHTTPClient ¶
func NewGetReleasesParamsWithHTTPClient(client *http.Client) *GetReleasesParams
NewGetReleasesParamsWithHTTPClient creates a new GetReleasesParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetReleasesParamsWithTimeout ¶
func NewGetReleasesParamsWithTimeout(timeout time.Duration) *GetReleasesParams
NewGetReleasesParamsWithTimeout creates a new GetReleasesParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetReleasesParams) SetContext ¶
func (o *GetReleasesParams) SetContext(ctx context.Context)
SetContext adds the context to the get releases params
func (*GetReleasesParams) SetHTTPClient ¶
func (o *GetReleasesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get releases params
func (*GetReleasesParams) SetTimeout ¶
func (o *GetReleasesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get releases params
func (*GetReleasesParams) SetXGiantSwarmActivity ¶
func (o *GetReleasesParams) SetXGiantSwarmActivity(xGiantSwarmActivity *string)
SetXGiantSwarmActivity adds the xGiantSwarmActivity to the get releases params
func (*GetReleasesParams) SetXGiantSwarmCmdLine ¶
func (o *GetReleasesParams) SetXGiantSwarmCmdLine(xGiantSwarmCmdLine *string)
SetXGiantSwarmCmdLine adds the xGiantSwarmCmdLine to the get releases params
func (*GetReleasesParams) SetXRequestID ¶
func (o *GetReleasesParams) SetXRequestID(xRequestID *string)
SetXRequestID adds the xRequestId to the get releases params
func (*GetReleasesParams) WithContext ¶
func (o *GetReleasesParams) WithContext(ctx context.Context) *GetReleasesParams
WithContext adds the context to the get releases params
func (*GetReleasesParams) WithHTTPClient ¶
func (o *GetReleasesParams) WithHTTPClient(client *http.Client) *GetReleasesParams
WithHTTPClient adds the HTTPClient to the get releases params
func (*GetReleasesParams) WithTimeout ¶
func (o *GetReleasesParams) WithTimeout(timeout time.Duration) *GetReleasesParams
WithTimeout adds the timeout to the get releases params
func (*GetReleasesParams) WithXGiantSwarmActivity ¶
func (o *GetReleasesParams) WithXGiantSwarmActivity(xGiantSwarmActivity *string) *GetReleasesParams
WithXGiantSwarmActivity adds the xGiantSwarmActivity to the get releases params
func (*GetReleasesParams) WithXGiantSwarmCmdLine ¶
func (o *GetReleasesParams) WithXGiantSwarmCmdLine(xGiantSwarmCmdLine *string) *GetReleasesParams
WithXGiantSwarmCmdLine adds the xGiantSwarmCmdLine to the get releases params
func (*GetReleasesParams) WithXRequestID ¶
func (o *GetReleasesParams) WithXRequestID(xRequestID *string) *GetReleasesParams
WithXRequestID adds the xRequestID to the get releases params
func (*GetReleasesParams) WriteToRequest ¶
func (o *GetReleasesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetReleasesReader ¶
type GetReleasesReader struct {
// contains filtered or unexported fields
}
GetReleasesReader is a Reader for the GetReleases structure.
func (*GetReleasesReader) ReadResponse ¶
func (o *GetReleasesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetReleasesUnauthorized ¶
type GetReleasesUnauthorized struct {
}GetReleasesUnauthorized handles this case with default header values.
Permission denied
func NewGetReleasesUnauthorized ¶
func NewGetReleasesUnauthorized() *GetReleasesUnauthorized
NewGetReleasesUnauthorized creates a GetReleasesUnauthorized with default headers values
func (*GetReleasesUnauthorized) Error ¶
func (o *GetReleasesUnauthorized) Error() string