Documentation ¶
Index ¶
- type API
- type Client
- func (a *Client) GetCert(ctx context.Context, params *GetCertParams, writer io.Writer) (*GetCertOK, error)
- func (a *Client) GetSystemInfo(ctx context.Context, params *GetSystemInfoParams) (*GetSystemInfoOK, error)
- func (a *Client) GetVolumes(ctx context.Context, params *GetVolumesParams) (*GetVolumesOK, error)
- type GetCertInternalServerError
- func (o *GetCertInternalServerError) Error() string
- func (o *GetCertInternalServerError) GetPayload() *models.Errors
- func (o *GetCertInternalServerError) IsClientError() bool
- func (o *GetCertInternalServerError) IsCode(code int) bool
- func (o *GetCertInternalServerError) IsRedirect() bool
- func (o *GetCertInternalServerError) IsServerError() bool
- func (o *GetCertInternalServerError) IsSuccess() bool
- func (o *GetCertInternalServerError) String() string
- type GetCertNotFound
- func (o *GetCertNotFound) Error() string
- func (o *GetCertNotFound) IsClientError() bool
- func (o *GetCertNotFound) IsCode(code int) bool
- func (o *GetCertNotFound) IsRedirect() bool
- func (o *GetCertNotFound) IsServerError() bool
- func (o *GetCertNotFound) IsSuccess() bool
- func (o *GetCertNotFound) String() string
- type GetCertOK
- func (o *GetCertOK) Error() string
- func (o *GetCertOK) GetPayload() io.Writer
- func (o *GetCertOK) IsClientError() bool
- func (o *GetCertOK) IsCode(code int) bool
- func (o *GetCertOK) IsRedirect() bool
- func (o *GetCertOK) IsServerError() bool
- func (o *GetCertOK) IsSuccess() bool
- func (o *GetCertOK) String() string
- type GetCertParams
- func (o *GetCertParams) SetContext(ctx context.Context)
- func (o *GetCertParams) SetDefaults()
- 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) WithDefaults() *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
- func (o *GetSystemInfoInternalServerError) Error() string
- func (o *GetSystemInfoInternalServerError) GetPayload() *models.Errors
- func (o *GetSystemInfoInternalServerError) IsClientError() bool
- func (o *GetSystemInfoInternalServerError) IsCode(code int) bool
- func (o *GetSystemInfoInternalServerError) IsRedirect() bool
- func (o *GetSystemInfoInternalServerError) IsServerError() bool
- func (o *GetSystemInfoInternalServerError) IsSuccess() bool
- func (o *GetSystemInfoInternalServerError) String() string
- type GetSystemInfoOK
- func (o *GetSystemInfoOK) Error() string
- func (o *GetSystemInfoOK) GetPayload() *models.GeneralInfo
- func (o *GetSystemInfoOK) IsClientError() bool
- func (o *GetSystemInfoOK) IsCode(code int) bool
- func (o *GetSystemInfoOK) IsRedirect() bool
- func (o *GetSystemInfoOK) IsServerError() bool
- func (o *GetSystemInfoOK) IsSuccess() bool
- func (o *GetSystemInfoOK) String() string
- type GetSystemInfoParams
- func (o *GetSystemInfoParams) SetContext(ctx context.Context)
- func (o *GetSystemInfoParams) SetDefaults()
- 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) WithDefaults() *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
- func (o *GetVolumesForbidden) Error() string
- func (o *GetVolumesForbidden) GetPayload() *models.Errors
- func (o *GetVolumesForbidden) IsClientError() bool
- func (o *GetVolumesForbidden) IsCode(code int) bool
- func (o *GetVolumesForbidden) IsRedirect() bool
- func (o *GetVolumesForbidden) IsServerError() bool
- func (o *GetVolumesForbidden) IsSuccess() bool
- func (o *GetVolumesForbidden) String() string
- type GetVolumesInternalServerError
- func (o *GetVolumesInternalServerError) Error() string
- func (o *GetVolumesInternalServerError) GetPayload() *models.Errors
- func (o *GetVolumesInternalServerError) IsClientError() bool
- func (o *GetVolumesInternalServerError) IsCode(code int) bool
- func (o *GetVolumesInternalServerError) IsRedirect() bool
- func (o *GetVolumesInternalServerError) IsServerError() bool
- func (o *GetVolumesInternalServerError) IsSuccess() bool
- func (o *GetVolumesInternalServerError) String() string
- type GetVolumesNotFound
- func (o *GetVolumesNotFound) Error() string
- func (o *GetVolumesNotFound) GetPayload() *models.Errors
- func (o *GetVolumesNotFound) IsClientError() bool
- func (o *GetVolumesNotFound) IsCode(code int) bool
- func (o *GetVolumesNotFound) IsRedirect() bool
- func (o *GetVolumesNotFound) IsServerError() bool
- func (o *GetVolumesNotFound) IsSuccess() bool
- func (o *GetVolumesNotFound) String() string
- type GetVolumesOK
- func (o *GetVolumesOK) Error() string
- func (o *GetVolumesOK) GetPayload() *models.SystemInfo
- func (o *GetVolumesOK) IsClientError() bool
- func (o *GetVolumesOK) IsCode(code int) bool
- func (o *GetVolumesOK) IsRedirect() bool
- func (o *GetVolumesOK) IsServerError() bool
- func (o *GetVolumesOK) IsSuccess() bool
- func (o *GetVolumesOK) String() string
- type GetVolumesParams
- func (o *GetVolumesParams) SetContext(ctx context.Context)
- func (o *GetVolumesParams) SetDefaults()
- 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) WithDefaults() *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
- func (o *GetVolumesUnauthorized) Error() string
- func (o *GetVolumesUnauthorized) GetPayload() *models.Errors
- func (o *GetVolumesUnauthorized) IsClientError() bool
- func (o *GetVolumesUnauthorized) IsCode(code int) bool
- func (o *GetVolumesUnauthorized) IsRedirect() bool
- func (o *GetVolumesUnauthorized) IsServerError() bool
- func (o *GetVolumesUnauthorized) IsSuccess() bool
- func (o *GetVolumesUnauthorized) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API interface { /* GetCert gets default root certificate This endpoint is for downloading a default root certificate. */ GetCert(ctx context.Context, params *GetCertParams, writer io.Writer) (*GetCertOK, 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. */ GetSystemInfo(ctx context.Context, params *GetSystemInfoParams) (*GetSystemInfoOK, 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. */ GetVolumes(ctx context.Context, params *GetVolumesParams) (*GetVolumesOK, error) }
API is the interface of the systeminfo client
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for systeminfo API
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry, authInfo runtime.ClientAuthInfoWriter) *Client
New creates a new systeminfo API client.
func (*Client) GetCert ¶
func (a *Client) GetCert(ctx context.Context, params *GetCertParams, 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(ctx context.Context, params *GetSystemInfoParams) (*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(ctx context.Context, params *GetVolumesParams) (*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.
type GetCertInternalServerError ¶
type GetCertInternalServerError struct { /* The ID of the corresponding request for the response */ XRequestID string Payload *models.Errors }
GetCertInternalServerError describes a response with status code 500, 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() *models.Errors
func (*GetCertInternalServerError) IsClientError ¶
func (o *GetCertInternalServerError) IsClientError() bool
IsClientError returns true when this get cert internal server error response has a 4xx status code
func (*GetCertInternalServerError) IsCode ¶
func (o *GetCertInternalServerError) IsCode(code int) bool
IsCode returns true when this get cert internal server error response a status code equal to that given
func (*GetCertInternalServerError) IsRedirect ¶
func (o *GetCertInternalServerError) IsRedirect() bool
IsRedirect returns true when this get cert internal server error response has a 3xx status code
func (*GetCertInternalServerError) IsServerError ¶
func (o *GetCertInternalServerError) IsServerError() bool
IsServerError returns true when this get cert internal server error response has a 5xx status code
func (*GetCertInternalServerError) IsSuccess ¶
func (o *GetCertInternalServerError) IsSuccess() bool
IsSuccess returns true when this get cert internal server error response has a 2xx status code
func (*GetCertInternalServerError) String ¶
func (o *GetCertInternalServerError) String() string
type GetCertNotFound ¶
type GetCertNotFound struct { }
GetCertNotFound describes a response with status code 404, 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
func (*GetCertNotFound) IsClientError ¶
func (o *GetCertNotFound) IsClientError() bool
IsClientError returns true when this get cert not found response has a 4xx status code
func (*GetCertNotFound) IsCode ¶
func (o *GetCertNotFound) IsCode(code int) bool
IsCode returns true when this get cert not found response a status code equal to that given
func (*GetCertNotFound) IsRedirect ¶
func (o *GetCertNotFound) IsRedirect() bool
IsRedirect returns true when this get cert not found response has a 3xx status code
func (*GetCertNotFound) IsServerError ¶
func (o *GetCertNotFound) IsServerError() bool
IsServerError returns true when this get cert not found response has a 5xx status code
func (*GetCertNotFound) IsSuccess ¶
func (o *GetCertNotFound) IsSuccess() bool
IsSuccess returns true when this get cert not found response has a 2xx status code
func (*GetCertNotFound) String ¶
func (o *GetCertNotFound) String() string
type GetCertOK ¶
type GetCertOK struct { /* To set the filename of the downloaded file. */ ContentDisposition string Payload io.Writer }
GetCertOK describes a response with status code 200, with default header values.
Get default root certificate successfully.
func NewGetCertOK ¶
NewGetCertOK creates a GetCertOK with default headers values
func (*GetCertOK) GetPayload ¶
func (*GetCertOK) IsClientError ¶
IsClientError returns true when this get cert o k response has a 4xx status code
func (*GetCertOK) IsCode ¶
IsCode returns true when this get cert o k response a status code equal to that given
func (*GetCertOK) IsRedirect ¶
IsRedirect returns true when this get cert o k response has a 3xx status code
func (*GetCertOK) IsServerError ¶
IsServerError returns true when this get cert o k response has a 5xx status code
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 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 NewGetCertParamsWithContext ¶
func NewGetCertParamsWithContext(ctx context.Context) *GetCertParams
NewGetCertParamsWithContext creates a new GetCertParams object with 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 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 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) SetDefaults ¶
func (o *GetCertParams) SetDefaults()
SetDefaults hydrates default values in the get cert params (not the query body).
All values with no default are reset to their zero value.
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) WithDefaults ¶
func (o *GetCertParams) WithDefaults() *GetCertParams
WithDefaults hydrates default values in the get cert params (not the query body).
All values with no default are reset to their zero value.
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 *models.Errors }
GetSystemInfoInternalServerError describes a response with status code 500, 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() *models.Errors
func (*GetSystemInfoInternalServerError) IsClientError ¶
func (o *GetSystemInfoInternalServerError) IsClientError() bool
IsClientError returns true when this get system info internal server error response has a 4xx status code
func (*GetSystemInfoInternalServerError) IsCode ¶
func (o *GetSystemInfoInternalServerError) IsCode(code int) bool
IsCode returns true when this get system info internal server error response a status code equal to that given
func (*GetSystemInfoInternalServerError) IsRedirect ¶
func (o *GetSystemInfoInternalServerError) IsRedirect() bool
IsRedirect returns true when this get system info internal server error response has a 3xx status code
func (*GetSystemInfoInternalServerError) IsServerError ¶
func (o *GetSystemInfoInternalServerError) IsServerError() bool
IsServerError returns true when this get system info internal server error response has a 5xx status code
func (*GetSystemInfoInternalServerError) IsSuccess ¶
func (o *GetSystemInfoInternalServerError) IsSuccess() bool
IsSuccess returns true when this get system info internal server error response has a 2xx status code
func (*GetSystemInfoInternalServerError) String ¶
func (o *GetSystemInfoInternalServerError) String() string
type GetSystemInfoOK ¶
type GetSystemInfoOK struct {
Payload *models.GeneralInfo
}
GetSystemInfoOK describes a response with status code 200, 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() *models.GeneralInfo
func (*GetSystemInfoOK) IsClientError ¶
func (o *GetSystemInfoOK) IsClientError() bool
IsClientError returns true when this get system info o k response has a 4xx status code
func (*GetSystemInfoOK) IsCode ¶
func (o *GetSystemInfoOK) IsCode(code int) bool
IsCode returns true when this get system info o k response a status code equal to that given
func (*GetSystemInfoOK) IsRedirect ¶
func (o *GetSystemInfoOK) IsRedirect() bool
IsRedirect returns true when this get system info o k response has a 3xx status code
func (*GetSystemInfoOK) IsServerError ¶
func (o *GetSystemInfoOK) IsServerError() bool
IsServerError returns true when this get system info o k response has a 5xx status code
func (*GetSystemInfoOK) IsSuccess ¶
func (o *GetSystemInfoOK) IsSuccess() bool
IsSuccess returns true when this get system info o k response has a 2xx status code
func (*GetSystemInfoOK) String ¶
func (o *GetSystemInfoOK) String() string
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 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 NewGetSystemInfoParamsWithContext ¶
func NewGetSystemInfoParamsWithContext(ctx context.Context) *GetSystemInfoParams
NewGetSystemInfoParamsWithContext creates a new GetSystemInfoParams object with 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 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 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) SetDefaults ¶
func (o *GetSystemInfoParams) SetDefaults()
SetDefaults hydrates default values in the get system info params (not the query body).
All values with no default are reset to their zero value.
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) WithDefaults ¶
func (o *GetSystemInfoParams) WithDefaults() *GetSystemInfoParams
WithDefaults hydrates default values in the get system info params (not the query body).
All values with no default are reset to their zero value.
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 *models.Errors }
GetVolumesForbidden describes a response with status code 403, 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() *models.Errors
func (*GetVolumesForbidden) IsClientError ¶
func (o *GetVolumesForbidden) IsClientError() bool
IsClientError returns true when this get volumes forbidden response has a 4xx status code
func (*GetVolumesForbidden) IsCode ¶
func (o *GetVolumesForbidden) IsCode(code int) bool
IsCode returns true when this get volumes forbidden response a status code equal to that given
func (*GetVolumesForbidden) IsRedirect ¶
func (o *GetVolumesForbidden) IsRedirect() bool
IsRedirect returns true when this get volumes forbidden response has a 3xx status code
func (*GetVolumesForbidden) IsServerError ¶
func (o *GetVolumesForbidden) IsServerError() bool
IsServerError returns true when this get volumes forbidden response has a 5xx status code
func (*GetVolumesForbidden) IsSuccess ¶
func (o *GetVolumesForbidden) IsSuccess() bool
IsSuccess returns true when this get volumes forbidden response has a 2xx status code
func (*GetVolumesForbidden) String ¶
func (o *GetVolumesForbidden) String() string
type GetVolumesInternalServerError ¶
type GetVolumesInternalServerError struct { /* The ID of the corresponding request for the response */ XRequestID string Payload *models.Errors }
GetVolumesInternalServerError describes a response with status code 500, 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() *models.Errors
func (*GetVolumesInternalServerError) IsClientError ¶
func (o *GetVolumesInternalServerError) IsClientError() bool
IsClientError returns true when this get volumes internal server error response has a 4xx status code
func (*GetVolumesInternalServerError) IsCode ¶
func (o *GetVolumesInternalServerError) IsCode(code int) bool
IsCode returns true when this get volumes internal server error response a status code equal to that given
func (*GetVolumesInternalServerError) IsRedirect ¶
func (o *GetVolumesInternalServerError) IsRedirect() bool
IsRedirect returns true when this get volumes internal server error response has a 3xx status code
func (*GetVolumesInternalServerError) IsServerError ¶
func (o *GetVolumesInternalServerError) IsServerError() bool
IsServerError returns true when this get volumes internal server error response has a 5xx status code
func (*GetVolumesInternalServerError) IsSuccess ¶
func (o *GetVolumesInternalServerError) IsSuccess() bool
IsSuccess returns true when this get volumes internal server error response has a 2xx status code
func (*GetVolumesInternalServerError) String ¶
func (o *GetVolumesInternalServerError) String() string
type GetVolumesNotFound ¶
type GetVolumesNotFound struct { /* The ID of the corresponding request for the response */ XRequestID string Payload *models.Errors }
GetVolumesNotFound describes a response with status code 404, 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() *models.Errors
func (*GetVolumesNotFound) IsClientError ¶
func (o *GetVolumesNotFound) IsClientError() bool
IsClientError returns true when this get volumes not found response has a 4xx status code
func (*GetVolumesNotFound) IsCode ¶
func (o *GetVolumesNotFound) IsCode(code int) bool
IsCode returns true when this get volumes not found response a status code equal to that given
func (*GetVolumesNotFound) IsRedirect ¶
func (o *GetVolumesNotFound) IsRedirect() bool
IsRedirect returns true when this get volumes not found response has a 3xx status code
func (*GetVolumesNotFound) IsServerError ¶
func (o *GetVolumesNotFound) IsServerError() bool
IsServerError returns true when this get volumes not found response has a 5xx status code
func (*GetVolumesNotFound) IsSuccess ¶
func (o *GetVolumesNotFound) IsSuccess() bool
IsSuccess returns true when this get volumes not found response has a 2xx status code
func (*GetVolumesNotFound) String ¶
func (o *GetVolumesNotFound) String() string
type GetVolumesOK ¶
type GetVolumesOK struct {
Payload *models.SystemInfo
}
GetVolumesOK describes a response with status code 200, 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() *models.SystemInfo
func (*GetVolumesOK) IsClientError ¶
func (o *GetVolumesOK) IsClientError() bool
IsClientError returns true when this get volumes o k response has a 4xx status code
func (*GetVolumesOK) IsCode ¶
func (o *GetVolumesOK) IsCode(code int) bool
IsCode returns true when this get volumes o k response a status code equal to that given
func (*GetVolumesOK) IsRedirect ¶
func (o *GetVolumesOK) IsRedirect() bool
IsRedirect returns true when this get volumes o k response has a 3xx status code
func (*GetVolumesOK) IsServerError ¶
func (o *GetVolumesOK) IsServerError() bool
IsServerError returns true when this get volumes o k response has a 5xx status code
func (*GetVolumesOK) IsSuccess ¶
func (o *GetVolumesOK) IsSuccess() bool
IsSuccess returns true when this get volumes o k response has a 2xx status code
func (*GetVolumesOK) String ¶
func (o *GetVolumesOK) String() string
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 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 NewGetVolumesParamsWithContext ¶
func NewGetVolumesParamsWithContext(ctx context.Context) *GetVolumesParams
NewGetVolumesParamsWithContext creates a new GetVolumesParams object with 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 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 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) SetDefaults ¶
func (o *GetVolumesParams) SetDefaults()
SetDefaults hydrates default values in the get volumes params (not the query body).
All values with no default are reset to their zero value.
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) WithDefaults ¶
func (o *GetVolumesParams) WithDefaults() *GetVolumesParams
WithDefaults hydrates default values in the get volumes params (not the query body).
All values with no default are reset to their zero value.
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 describes a response with status code 401, 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() *models.Errors
func (*GetVolumesUnauthorized) IsClientError ¶
func (o *GetVolumesUnauthorized) IsClientError() bool
IsClientError returns true when this get volumes unauthorized response has a 4xx status code
func (*GetVolumesUnauthorized) IsCode ¶
func (o *GetVolumesUnauthorized) IsCode(code int) bool
IsCode returns true when this get volumes unauthorized response a status code equal to that given
func (*GetVolumesUnauthorized) IsRedirect ¶
func (o *GetVolumesUnauthorized) IsRedirect() bool
IsRedirect returns true when this get volumes unauthorized response has a 3xx status code
func (*GetVolumesUnauthorized) IsServerError ¶
func (o *GetVolumesUnauthorized) IsServerError() bool
IsServerError returns true when this get volumes unauthorized response has a 5xx status code
func (*GetVolumesUnauthorized) IsSuccess ¶
func (o *GetVolumesUnauthorized) IsSuccess() bool
IsSuccess returns true when this get volumes unauthorized response has a 2xx status code
func (*GetVolumesUnauthorized) String ¶
func (o *GetVolumesUnauthorized) String() string