Documentation ¶
Index ¶
- type Client
- func (a *Client) GetCert(params *GetCertParams, authInfo runtime.ClientAuthInfoWriter, writer io.Writer) (*GetCertOK, error)
- func (a *Client) GetSystemInfo(params *GetSystemInfoParams, authInfo runtime.ClientAuthInfoWriter) (*GetSystemInfoOK, error)
- func (a *Client) GetVolumes(params *GetVolumesParams, authInfo runtime.ClientAuthInfoWriter) (*GetVolumesOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientService
- type GetCertInternalServerError
- type GetCertNotFound
- type GetCertOK
- type GetCertParams
- func (o *GetCertParams) SetContext(ctx context.Context)
- func (o *GetCertParams) SetHTTPClient(client *http.Client)
- func (o *GetCertParams) SetTimeout(timeout time.Duration)
- func (o *GetCertParams) SetXRequestID(xRequestID *string)
- func (o *GetCertParams) WithContext(ctx context.Context) *GetCertParams
- func (o *GetCertParams) WithHTTPClient(client *http.Client) *GetCertParams
- func (o *GetCertParams) WithTimeout(timeout time.Duration) *GetCertParams
- func (o *GetCertParams) WithXRequestID(xRequestID *string) *GetCertParams
- func (o *GetCertParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetCertReader
- type GetSystemInfoInternalServerError
- type GetSystemInfoOK
- type GetSystemInfoParams
- func (o *GetSystemInfoParams) SetContext(ctx context.Context)
- func (o *GetSystemInfoParams) SetHTTPClient(client *http.Client)
- func (o *GetSystemInfoParams) SetTimeout(timeout time.Duration)
- func (o *GetSystemInfoParams) SetXRequestID(xRequestID *string)
- func (o *GetSystemInfoParams) WithContext(ctx context.Context) *GetSystemInfoParams
- func (o *GetSystemInfoParams) WithHTTPClient(client *http.Client) *GetSystemInfoParams
- func (o *GetSystemInfoParams) WithTimeout(timeout time.Duration) *GetSystemInfoParams
- func (o *GetSystemInfoParams) WithXRequestID(xRequestID *string) *GetSystemInfoParams
- func (o *GetSystemInfoParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetSystemInfoReader
- type GetVolumesForbidden
- type GetVolumesInternalServerError
- type GetVolumesNotFound
- type GetVolumesOK
- type GetVolumesParams
- func (o *GetVolumesParams) SetContext(ctx context.Context)
- func (o *GetVolumesParams) SetHTTPClient(client *http.Client)
- func (o *GetVolumesParams) SetTimeout(timeout time.Duration)
- func (o *GetVolumesParams) SetXRequestID(xRequestID *string)
- func (o *GetVolumesParams) WithContext(ctx context.Context) *GetVolumesParams
- func (o *GetVolumesParams) WithHTTPClient(client *http.Client) *GetVolumesParams
- func (o *GetVolumesParams) WithTimeout(timeout time.Duration) *GetVolumesParams
- func (o *GetVolumesParams) WithXRequestID(xRequestID *string) *GetVolumesParams
- func (o *GetVolumesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetVolumesReader
- type GetVolumesUnauthorized
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 systeminfo API
func (*Client) GetCert ¶
func (a *Client) GetCert(params *GetCertParams, authInfo runtime.ClientAuthInfoWriter, writer io.Writer) (*GetCertOK, error)
GetCert gets default root certificate
This endpoint is for downloading a default root certificate.
func (*Client) GetSystemInfo ¶
func (a *Client) GetSystemInfo(params *GetSystemInfoParams, authInfo runtime.ClientAuthInfoWriter) (*GetSystemInfoOK, error)
GetSystemInfo gets general system info
This API is for retrieving general system info, this can be called by anonymous request. Some attributes will be omitted in the response when this API is called by anonymous request.
func (*Client) GetVolumes ¶
func (a *Client) GetVolumes(params *GetVolumesParams, authInfo runtime.ClientAuthInfoWriter) (*GetVolumesOK, error)
GetVolumes gets system volume info total free size
This endpoint is for retrieving system volume info that only provides for admin user. Note that the response only reflects the storage status of local disk.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientService ¶
type ClientService interface { GetCert(params *GetCertParams, authInfo runtime.ClientAuthInfoWriter, writer io.Writer) (*GetCertOK, error) GetSystemInfo(params *GetSystemInfoParams, authInfo runtime.ClientAuthInfoWriter) (*GetSystemInfoOK, error) GetVolumes(params *GetVolumesParams, authInfo runtime.ClientAuthInfoWriter) (*GetVolumesOK, 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 systeminfo API client.
type GetCertInternalServerError ¶
type GetCertInternalServerError struct { /*The ID of the corresponding request for the response */ XRequestID string Payload *model.Errors }
GetCertInternalServerError handles this case with default header values.
Internal server error
func NewGetCertInternalServerError ¶
func NewGetCertInternalServerError() *GetCertInternalServerError
NewGetCertInternalServerError creates a GetCertInternalServerError with default headers values
func (*GetCertInternalServerError) Error ¶
func (o *GetCertInternalServerError) Error() string
func (*GetCertInternalServerError) GetPayload ¶
func (o *GetCertInternalServerError) GetPayload() *model.Errors
type GetCertNotFound ¶
type GetCertNotFound struct { }
GetCertNotFound handles this case with default header values.
Not found the default root certificate.
func NewGetCertNotFound ¶
func NewGetCertNotFound() *GetCertNotFound
NewGetCertNotFound creates a GetCertNotFound with default headers values
func (*GetCertNotFound) Error ¶
func (o *GetCertNotFound) Error() string
type GetCertOK ¶
type GetCertOK struct { /*To set the filename of the downloaded file. */ ContentDisposition string Payload io.Writer }
GetCertOK handles this case with default header values.
Get default root certificate successfully.
func NewGetCertOK ¶
NewGetCertOK creates a GetCertOK with default headers values
func (*GetCertOK) GetPayload ¶
type GetCertParams ¶
type GetCertParams struct { /*XRequestID An unique ID for the request */ XRequestID *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetCertParams contains all the parameters to send to the API endpoint for the get cert operation typically these are written to a http.Request
func NewGetCertParams ¶
func NewGetCertParams() *GetCertParams
NewGetCertParams creates a new GetCertParams object with the default values initialized.
func NewGetCertParamsWithContext ¶
func NewGetCertParamsWithContext(ctx context.Context) *GetCertParams
NewGetCertParamsWithContext creates a new GetCertParams object with the default values initialized, and the ability to set a context for a request
func NewGetCertParamsWithHTTPClient ¶
func NewGetCertParamsWithHTTPClient(client *http.Client) *GetCertParams
NewGetCertParamsWithHTTPClient creates a new GetCertParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetCertParamsWithTimeout ¶
func NewGetCertParamsWithTimeout(timeout time.Duration) *GetCertParams
NewGetCertParamsWithTimeout creates a new GetCertParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetCertParams) SetContext ¶
func (o *GetCertParams) SetContext(ctx context.Context)
SetContext adds the context to the get cert params
func (*GetCertParams) SetHTTPClient ¶
func (o *GetCertParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get cert params
func (*GetCertParams) SetTimeout ¶
func (o *GetCertParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get cert params
func (*GetCertParams) SetXRequestID ¶
func (o *GetCertParams) SetXRequestID(xRequestID *string)
SetXRequestID adds the xRequestId to the get cert params
func (*GetCertParams) WithContext ¶
func (o *GetCertParams) WithContext(ctx context.Context) *GetCertParams
WithContext adds the context to the get cert params
func (*GetCertParams) WithHTTPClient ¶
func (o *GetCertParams) WithHTTPClient(client *http.Client) *GetCertParams
WithHTTPClient adds the HTTPClient to the get cert params
func (*GetCertParams) WithTimeout ¶
func (o *GetCertParams) WithTimeout(timeout time.Duration) *GetCertParams
WithTimeout adds the timeout to the get cert params
func (*GetCertParams) WithXRequestID ¶
func (o *GetCertParams) WithXRequestID(xRequestID *string) *GetCertParams
WithXRequestID adds the xRequestID to the get cert params
func (*GetCertParams) WriteToRequest ¶
func (o *GetCertParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetCertReader ¶
type GetCertReader struct {
// contains filtered or unexported fields
}
GetCertReader is a Reader for the GetCert structure.
func (*GetCertReader) ReadResponse ¶
func (o *GetCertReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetSystemInfoInternalServerError ¶
type GetSystemInfoInternalServerError struct { /*The ID of the corresponding request for the response */ XRequestID string Payload *model.Errors }
GetSystemInfoInternalServerError handles this case with default header values.
Internal server error
func NewGetSystemInfoInternalServerError ¶
func NewGetSystemInfoInternalServerError() *GetSystemInfoInternalServerError
NewGetSystemInfoInternalServerError creates a GetSystemInfoInternalServerError with default headers values
func (*GetSystemInfoInternalServerError) Error ¶
func (o *GetSystemInfoInternalServerError) Error() string
func (*GetSystemInfoInternalServerError) GetPayload ¶
func (o *GetSystemInfoInternalServerError) GetPayload() *model.Errors
type GetSystemInfoOK ¶
type GetSystemInfoOK struct {
Payload *model.GeneralInfo
}
GetSystemInfoOK handles this case with default header values.
Get general info successfully.
func NewGetSystemInfoOK ¶
func NewGetSystemInfoOK() *GetSystemInfoOK
NewGetSystemInfoOK creates a GetSystemInfoOK with default headers values
func (*GetSystemInfoOK) Error ¶
func (o *GetSystemInfoOK) Error() string
func (*GetSystemInfoOK) GetPayload ¶
func (o *GetSystemInfoOK) GetPayload() *model.GeneralInfo
type GetSystemInfoParams ¶
type GetSystemInfoParams struct { /*XRequestID An unique ID for the request */ XRequestID *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetSystemInfoParams contains all the parameters to send to the API endpoint for the get system info operation typically these are written to a http.Request
func NewGetSystemInfoParams ¶
func NewGetSystemInfoParams() *GetSystemInfoParams
NewGetSystemInfoParams creates a new GetSystemInfoParams object with the default values initialized.
func NewGetSystemInfoParamsWithContext ¶
func NewGetSystemInfoParamsWithContext(ctx context.Context) *GetSystemInfoParams
NewGetSystemInfoParamsWithContext creates a new GetSystemInfoParams object with the default values initialized, and the ability to set a context for a request
func NewGetSystemInfoParamsWithHTTPClient ¶
func NewGetSystemInfoParamsWithHTTPClient(client *http.Client) *GetSystemInfoParams
NewGetSystemInfoParamsWithHTTPClient creates a new GetSystemInfoParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetSystemInfoParamsWithTimeout ¶
func NewGetSystemInfoParamsWithTimeout(timeout time.Duration) *GetSystemInfoParams
NewGetSystemInfoParamsWithTimeout creates a new GetSystemInfoParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetSystemInfoParams) SetContext ¶
func (o *GetSystemInfoParams) SetContext(ctx context.Context)
SetContext adds the context to the get system info params
func (*GetSystemInfoParams) SetHTTPClient ¶
func (o *GetSystemInfoParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get system info params
func (*GetSystemInfoParams) SetTimeout ¶
func (o *GetSystemInfoParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get system info params
func (*GetSystemInfoParams) SetXRequestID ¶
func (o *GetSystemInfoParams) SetXRequestID(xRequestID *string)
SetXRequestID adds the xRequestId to the get system info params
func (*GetSystemInfoParams) WithContext ¶
func (o *GetSystemInfoParams) WithContext(ctx context.Context) *GetSystemInfoParams
WithContext adds the context to the get system info params
func (*GetSystemInfoParams) WithHTTPClient ¶
func (o *GetSystemInfoParams) WithHTTPClient(client *http.Client) *GetSystemInfoParams
WithHTTPClient adds the HTTPClient to the get system info params
func (*GetSystemInfoParams) WithTimeout ¶
func (o *GetSystemInfoParams) WithTimeout(timeout time.Duration) *GetSystemInfoParams
WithTimeout adds the timeout to the get system info params
func (*GetSystemInfoParams) WithXRequestID ¶
func (o *GetSystemInfoParams) WithXRequestID(xRequestID *string) *GetSystemInfoParams
WithXRequestID adds the xRequestID to the get system info params
func (*GetSystemInfoParams) WriteToRequest ¶
func (o *GetSystemInfoParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetSystemInfoReader ¶
type GetSystemInfoReader struct {
// contains filtered or unexported fields
}
GetSystemInfoReader is a Reader for the GetSystemInfo structure.
func (*GetSystemInfoReader) ReadResponse ¶
func (o *GetSystemInfoReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetVolumesForbidden ¶
type GetVolumesForbidden struct { /*The ID of the corresponding request for the response */ XRequestID string Payload *model.Errors }
GetVolumesForbidden handles this case with default header values.
Forbidden
func NewGetVolumesForbidden ¶
func NewGetVolumesForbidden() *GetVolumesForbidden
NewGetVolumesForbidden creates a GetVolumesForbidden with default headers values
func (*GetVolumesForbidden) Error ¶
func (o *GetVolumesForbidden) Error() string
func (*GetVolumesForbidden) GetPayload ¶
func (o *GetVolumesForbidden) GetPayload() *model.Errors
type GetVolumesInternalServerError ¶
type GetVolumesInternalServerError struct { /*The ID of the corresponding request for the response */ XRequestID string Payload *model.Errors }
GetVolumesInternalServerError handles this case with default header values.
Internal server error
func NewGetVolumesInternalServerError ¶
func NewGetVolumesInternalServerError() *GetVolumesInternalServerError
NewGetVolumesInternalServerError creates a GetVolumesInternalServerError with default headers values
func (*GetVolumesInternalServerError) Error ¶
func (o *GetVolumesInternalServerError) Error() string
func (*GetVolumesInternalServerError) GetPayload ¶
func (o *GetVolumesInternalServerError) GetPayload() *model.Errors
type GetVolumesNotFound ¶
type GetVolumesNotFound struct { /*The ID of the corresponding request for the response */ XRequestID string Payload *model.Errors }
GetVolumesNotFound handles this case with default header values.
Not found
func NewGetVolumesNotFound ¶
func NewGetVolumesNotFound() *GetVolumesNotFound
NewGetVolumesNotFound creates a GetVolumesNotFound with default headers values
func (*GetVolumesNotFound) Error ¶
func (o *GetVolumesNotFound) Error() string
func (*GetVolumesNotFound) GetPayload ¶
func (o *GetVolumesNotFound) GetPayload() *model.Errors
type GetVolumesOK ¶
type GetVolumesOK struct {
Payload *model.SystemInfo
}
GetVolumesOK handles this case with default header values.
Get system volumes successfully.
func NewGetVolumesOK ¶
func NewGetVolumesOK() *GetVolumesOK
NewGetVolumesOK creates a GetVolumesOK with default headers values
func (*GetVolumesOK) Error ¶
func (o *GetVolumesOK) Error() string
func (*GetVolumesOK) GetPayload ¶
func (o *GetVolumesOK) GetPayload() *model.SystemInfo
type GetVolumesParams ¶
type GetVolumesParams struct { /*XRequestID An unique ID for the request */ XRequestID *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetVolumesParams contains all the parameters to send to the API endpoint for the get volumes operation typically these are written to a http.Request
func NewGetVolumesParams ¶
func NewGetVolumesParams() *GetVolumesParams
NewGetVolumesParams creates a new GetVolumesParams object with the default values initialized.
func NewGetVolumesParamsWithContext ¶
func NewGetVolumesParamsWithContext(ctx context.Context) *GetVolumesParams
NewGetVolumesParamsWithContext creates a new GetVolumesParams object with the default values initialized, and the ability to set a context for a request
func NewGetVolumesParamsWithHTTPClient ¶
func NewGetVolumesParamsWithHTTPClient(client *http.Client) *GetVolumesParams
NewGetVolumesParamsWithHTTPClient creates a new GetVolumesParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetVolumesParamsWithTimeout ¶
func NewGetVolumesParamsWithTimeout(timeout time.Duration) *GetVolumesParams
NewGetVolumesParamsWithTimeout creates a new GetVolumesParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetVolumesParams) SetContext ¶
func (o *GetVolumesParams) SetContext(ctx context.Context)
SetContext adds the context to the get volumes params
func (*GetVolumesParams) SetHTTPClient ¶
func (o *GetVolumesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get volumes params
func (*GetVolumesParams) SetTimeout ¶
func (o *GetVolumesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get volumes params
func (*GetVolumesParams) SetXRequestID ¶
func (o *GetVolumesParams) SetXRequestID(xRequestID *string)
SetXRequestID adds the xRequestId to the get volumes params
func (*GetVolumesParams) WithContext ¶
func (o *GetVolumesParams) WithContext(ctx context.Context) *GetVolumesParams
WithContext adds the context to the get volumes params
func (*GetVolumesParams) WithHTTPClient ¶
func (o *GetVolumesParams) WithHTTPClient(client *http.Client) *GetVolumesParams
WithHTTPClient adds the HTTPClient to the get volumes params
func (*GetVolumesParams) WithTimeout ¶
func (o *GetVolumesParams) WithTimeout(timeout time.Duration) *GetVolumesParams
WithTimeout adds the timeout to the get volumes params
func (*GetVolumesParams) WithXRequestID ¶
func (o *GetVolumesParams) WithXRequestID(xRequestID *string) *GetVolumesParams
WithXRequestID adds the xRequestID to the get volumes params
func (*GetVolumesParams) WriteToRequest ¶
func (o *GetVolumesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetVolumesReader ¶
type GetVolumesReader struct {
// contains filtered or unexported fields
}
GetVolumesReader is a Reader for the GetVolumes structure.
func (*GetVolumesReader) ReadResponse ¶
func (o *GetVolumesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetVolumesUnauthorized ¶
type GetVolumesUnauthorized struct { string }XRequestID
GetVolumesUnauthorized handles this case with default header values.
Unauthorized
func NewGetVolumesUnauthorized ¶
func NewGetVolumesUnauthorized() *GetVolumesUnauthorized
NewGetVolumesUnauthorized creates a GetVolumesUnauthorized with default headers values
func (*GetVolumesUnauthorized) Error ¶
func (o *GetVolumesUnauthorized) Error() string
func (*GetVolumesUnauthorized) GetPayload ¶
func (o *GetVolumesUnauthorized) GetPayload() *model.Errors