Documentation ¶
Index ¶
- type Client
- type GetPlatformOK
- type GetPlatformParams
- func (o *GetPlatformParams) SetContext(ctx context.Context)
- func (o *GetPlatformParams) SetHTTPClient(client *http.Client)
- func (o *GetPlatformParams) SetTimeout(timeout time.Duration)
- func (o *GetPlatformParams) WithContext(ctx context.Context) *GetPlatformParams
- func (o *GetPlatformParams) WithHTTPClient(client *http.Client) *GetPlatformParams
- func (o *GetPlatformParams) WithTimeout(timeout time.Duration) *GetPlatformParams
- func (o *GetPlatformParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetPlatformReader
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 platform API
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client
New creates a new platform API client.
func (*Client) GetPlatform ¶
func (a *Client) GetPlatform(params *GetPlatformParams, authInfo runtime.ClientAuthInfoWriter) (*GetPlatformOK, error)
GetPlatform gets platform
Retrieves information about the active platform.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type GetPlatformOK ¶
type GetPlatformOK struct {
Payload *models.PlatformInfo
}
GetPlatformOK handles this case with default header values.
The platform information is retrieved.
func NewGetPlatformOK ¶
func NewGetPlatformOK() *GetPlatformOK
NewGetPlatformOK creates a GetPlatformOK with default headers values
func (*GetPlatformOK) Error ¶
func (o *GetPlatformOK) Error() string
type GetPlatformParams ¶
type GetPlatformParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetPlatformParams contains all the parameters to send to the API endpoint for the get platform operation typically these are written to a http.Request
func NewGetPlatformParams ¶
func NewGetPlatformParams() *GetPlatformParams
NewGetPlatformParams creates a new GetPlatformParams object with the default values initialized.
func NewGetPlatformParamsWithContext ¶
func NewGetPlatformParamsWithContext(ctx context.Context) *GetPlatformParams
NewGetPlatformParamsWithContext creates a new GetPlatformParams object with the default values initialized, and the ability to set a context for a request
func NewGetPlatformParamsWithHTTPClient ¶
func NewGetPlatformParamsWithHTTPClient(client *http.Client) *GetPlatformParams
NewGetPlatformParamsWithHTTPClient creates a new GetPlatformParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetPlatformParamsWithTimeout ¶
func NewGetPlatformParamsWithTimeout(timeout time.Duration) *GetPlatformParams
NewGetPlatformParamsWithTimeout creates a new GetPlatformParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetPlatformParams) SetContext ¶
func (o *GetPlatformParams) SetContext(ctx context.Context)
SetContext adds the context to the get platform params
func (*GetPlatformParams) SetHTTPClient ¶
func (o *GetPlatformParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get platform params
func (*GetPlatformParams) SetTimeout ¶
func (o *GetPlatformParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get platform params
func (*GetPlatformParams) WithContext ¶
func (o *GetPlatformParams) WithContext(ctx context.Context) *GetPlatformParams
WithContext adds the context to the get platform params
func (*GetPlatformParams) WithHTTPClient ¶
func (o *GetPlatformParams) WithHTTPClient(client *http.Client) *GetPlatformParams
WithHTTPClient adds the HTTPClient to the get platform params
func (*GetPlatformParams) WithTimeout ¶
func (o *GetPlatformParams) WithTimeout(timeout time.Duration) *GetPlatformParams
WithTimeout adds the timeout to the get platform params
func (*GetPlatformParams) WriteToRequest ¶
func (o *GetPlatformParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetPlatformReader ¶
type GetPlatformReader struct {
// contains filtered or unexported fields
}
GetPlatformReader is a Reader for the GetPlatform structure.
func (*GetPlatformReader) ReadResponse ¶
func (o *GetPlatformReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.