systeminfo

package
v0.0.0-...-fde7ecd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 4, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

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) GetSysteminfo

func (a *Client) GetSysteminfo(params *GetSysteminfoParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*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) GetSysteminfoGetcert

func (a *Client) GetSysteminfoGetcert(params *GetSysteminfoGetcertParams, authInfo runtime.ClientAuthInfoWriter, writer io.Writer, opts ...ClientOption) (*GetSysteminfoGetcertOK, error)

GetSysteminfoGetcert gets default root certificate

This endpoint is for downloading a default root certificate.

func (*Client) GetSysteminfoVolumes

func (a *Client) GetSysteminfoVolumes(params *GetSysteminfoVolumesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetSysteminfoVolumesOK, error)

GetSysteminfoVolumes 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 ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	GetSysteminfo(params *GetSysteminfoParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetSysteminfoOK, error)

	GetSysteminfoGetcert(params *GetSysteminfoGetcertParams, authInfo runtime.ClientAuthInfoWriter, writer io.Writer, opts ...ClientOption) (*GetSysteminfoGetcertOK, error)

	GetSysteminfoVolumes(params *GetSysteminfoVolumesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetSysteminfoVolumesOK, 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 GetSysteminfoGetcertInternalServerError

type GetSysteminfoGetcertInternalServerError struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}
GetSysteminfoGetcertInternalServerError describes a response with status code 500, with default header values.

Internal server error

func NewGetSysteminfoGetcertInternalServerError

func NewGetSysteminfoGetcertInternalServerError() *GetSysteminfoGetcertInternalServerError

NewGetSysteminfoGetcertInternalServerError creates a GetSysteminfoGetcertInternalServerError with default headers values

func (*GetSysteminfoGetcertInternalServerError) Error

func (*GetSysteminfoGetcertInternalServerError) GetPayload

type GetSysteminfoGetcertNotFound

type GetSysteminfoGetcertNotFound struct {
}
GetSysteminfoGetcertNotFound describes a response with status code 404, with default header values.

Not found the default root certificate.

func NewGetSysteminfoGetcertNotFound

func NewGetSysteminfoGetcertNotFound() *GetSysteminfoGetcertNotFound

NewGetSysteminfoGetcertNotFound creates a GetSysteminfoGetcertNotFound with default headers values

func (*GetSysteminfoGetcertNotFound) Error

type GetSysteminfoGetcertOK

type GetSysteminfoGetcertOK struct {

	/* To set the filename of the downloaded file.
	 */
	ContentDisposition string

	Payload io.Writer
}
GetSysteminfoGetcertOK describes a response with status code 200, with default header values.

Get default root certificate successfully.

func NewGetSysteminfoGetcertOK

func NewGetSysteminfoGetcertOK(writer io.Writer) *GetSysteminfoGetcertOK

NewGetSysteminfoGetcertOK creates a GetSysteminfoGetcertOK with default headers values

func (*GetSysteminfoGetcertOK) Error

func (o *GetSysteminfoGetcertOK) Error() string

func (*GetSysteminfoGetcertOK) GetPayload

func (o *GetSysteminfoGetcertOK) GetPayload() io.Writer

type GetSysteminfoGetcertParams

type GetSysteminfoGetcertParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetSysteminfoGetcertParams contains all the parameters to send to the API endpoint

for the get systeminfo getcert operation.

Typically these are written to a http.Request.

func NewGetSysteminfoGetcertParams

func NewGetSysteminfoGetcertParams() *GetSysteminfoGetcertParams

NewGetSysteminfoGetcertParams creates a new GetSysteminfoGetcertParams 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 NewGetSysteminfoGetcertParamsWithContext

func NewGetSysteminfoGetcertParamsWithContext(ctx context.Context) *GetSysteminfoGetcertParams

NewGetSysteminfoGetcertParamsWithContext creates a new GetSysteminfoGetcertParams object with the ability to set a context for a request.

func NewGetSysteminfoGetcertParamsWithHTTPClient

func NewGetSysteminfoGetcertParamsWithHTTPClient(client *http.Client) *GetSysteminfoGetcertParams

NewGetSysteminfoGetcertParamsWithHTTPClient creates a new GetSysteminfoGetcertParams object with the ability to set a custom HTTPClient for a request.

func NewGetSysteminfoGetcertParamsWithTimeout

func NewGetSysteminfoGetcertParamsWithTimeout(timeout time.Duration) *GetSysteminfoGetcertParams

NewGetSysteminfoGetcertParamsWithTimeout creates a new GetSysteminfoGetcertParams object with the ability to set a timeout on a request.

func (*GetSysteminfoGetcertParams) SetContext

func (o *GetSysteminfoGetcertParams) SetContext(ctx context.Context)

SetContext adds the context to the get systeminfo getcert params

func (*GetSysteminfoGetcertParams) SetDefaults

func (o *GetSysteminfoGetcertParams) SetDefaults()

SetDefaults hydrates default values in the get systeminfo getcert params (not the query body).

All values with no default are reset to their zero value.

func (*GetSysteminfoGetcertParams) SetHTTPClient

func (o *GetSysteminfoGetcertParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get systeminfo getcert params

func (*GetSysteminfoGetcertParams) SetTimeout

func (o *GetSysteminfoGetcertParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get systeminfo getcert params

func (*GetSysteminfoGetcertParams) WithContext

WithContext adds the context to the get systeminfo getcert params

func (*GetSysteminfoGetcertParams) WithDefaults

WithDefaults hydrates default values in the get systeminfo getcert params (not the query body).

All values with no default are reset to their zero value.

func (*GetSysteminfoGetcertParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get systeminfo getcert params

func (*GetSysteminfoGetcertParams) WithTimeout

WithTimeout adds the timeout to the get systeminfo getcert params

func (*GetSysteminfoGetcertParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetSysteminfoGetcertReader

type GetSysteminfoGetcertReader struct {
	// contains filtered or unexported fields
}

GetSysteminfoGetcertReader is a Reader for the GetSysteminfoGetcert structure.

func (*GetSysteminfoGetcertReader) ReadResponse

func (o *GetSysteminfoGetcertReader) 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 (*GetSysteminfoInternalServerError) GetPayload

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

type GetSysteminfoParams

type GetSysteminfoParams struct {
	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 systeminfo 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 systeminfo params

func (*GetSysteminfoParams) SetDefaults

func (o *GetSysteminfoParams) SetDefaults()

SetDefaults hydrates default values in the get systeminfo 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 systeminfo params

func (*GetSysteminfoParams) SetTimeout

func (o *GetSysteminfoParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get systeminfo params

func (*GetSysteminfoParams) WithContext

WithContext adds the context to the get systeminfo params

func (*GetSysteminfoParams) WithDefaults

func (o *GetSysteminfoParams) WithDefaults() *GetSysteminfoParams

WithDefaults hydrates default values in the get systeminfo 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 systeminfo params

func (*GetSysteminfoParams) WithTimeout

func (o *GetSysteminfoParams) WithTimeout(timeout time.Duration) *GetSysteminfoParams

WithTimeout adds the timeout to the get systeminfo 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 GetSysteminfoVolumesForbidden

type GetSysteminfoVolumesForbidden struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}
GetSysteminfoVolumesForbidden describes a response with status code 403, with default header values.

Forbidden

func NewGetSysteminfoVolumesForbidden

func NewGetSysteminfoVolumesForbidden() *GetSysteminfoVolumesForbidden

NewGetSysteminfoVolumesForbidden creates a GetSysteminfoVolumesForbidden with default headers values

func (*GetSysteminfoVolumesForbidden) Error

func (*GetSysteminfoVolumesForbidden) GetPayload

func (o *GetSysteminfoVolumesForbidden) GetPayload() *models.Errors

type GetSysteminfoVolumesInternalServerError

type GetSysteminfoVolumesInternalServerError struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}
GetSysteminfoVolumesInternalServerError describes a response with status code 500, with default header values.

Internal server error

func NewGetSysteminfoVolumesInternalServerError

func NewGetSysteminfoVolumesInternalServerError() *GetSysteminfoVolumesInternalServerError

NewGetSysteminfoVolumesInternalServerError creates a GetSysteminfoVolumesInternalServerError with default headers values

func (*GetSysteminfoVolumesInternalServerError) Error

func (*GetSysteminfoVolumesInternalServerError) GetPayload

type GetSysteminfoVolumesNotFound

type GetSysteminfoVolumesNotFound struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}
GetSysteminfoVolumesNotFound describes a response with status code 404, with default header values.

Not found

func NewGetSysteminfoVolumesNotFound

func NewGetSysteminfoVolumesNotFound() *GetSysteminfoVolumesNotFound

NewGetSysteminfoVolumesNotFound creates a GetSysteminfoVolumesNotFound with default headers values

func (*GetSysteminfoVolumesNotFound) Error

func (*GetSysteminfoVolumesNotFound) GetPayload

func (o *GetSysteminfoVolumesNotFound) GetPayload() *models.Errors

type GetSysteminfoVolumesOK

type GetSysteminfoVolumesOK struct {
	Payload *models.SystemInfo
}
GetSysteminfoVolumesOK describes a response with status code 200, with default header values.

Get system volumes successfully.

func NewGetSysteminfoVolumesOK

func NewGetSysteminfoVolumesOK() *GetSysteminfoVolumesOK

NewGetSysteminfoVolumesOK creates a GetSysteminfoVolumesOK with default headers values

func (*GetSysteminfoVolumesOK) Error

func (o *GetSysteminfoVolumesOK) Error() string

func (*GetSysteminfoVolumesOK) GetPayload

func (o *GetSysteminfoVolumesOK) GetPayload() *models.SystemInfo

type GetSysteminfoVolumesParams

type GetSysteminfoVolumesParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetSysteminfoVolumesParams contains all the parameters to send to the API endpoint

for the get systeminfo volumes operation.

Typically these are written to a http.Request.

func NewGetSysteminfoVolumesParams

func NewGetSysteminfoVolumesParams() *GetSysteminfoVolumesParams

NewGetSysteminfoVolumesParams creates a new GetSysteminfoVolumesParams 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 NewGetSysteminfoVolumesParamsWithContext

func NewGetSysteminfoVolumesParamsWithContext(ctx context.Context) *GetSysteminfoVolumesParams

NewGetSysteminfoVolumesParamsWithContext creates a new GetSysteminfoVolumesParams object with the ability to set a context for a request.

func NewGetSysteminfoVolumesParamsWithHTTPClient

func NewGetSysteminfoVolumesParamsWithHTTPClient(client *http.Client) *GetSysteminfoVolumesParams

NewGetSysteminfoVolumesParamsWithHTTPClient creates a new GetSysteminfoVolumesParams object with the ability to set a custom HTTPClient for a request.

func NewGetSysteminfoVolumesParamsWithTimeout

func NewGetSysteminfoVolumesParamsWithTimeout(timeout time.Duration) *GetSysteminfoVolumesParams

NewGetSysteminfoVolumesParamsWithTimeout creates a new GetSysteminfoVolumesParams object with the ability to set a timeout on a request.

func (*GetSysteminfoVolumesParams) SetContext

func (o *GetSysteminfoVolumesParams) SetContext(ctx context.Context)

SetContext adds the context to the get systeminfo volumes params

func (*GetSysteminfoVolumesParams) SetDefaults

func (o *GetSysteminfoVolumesParams) SetDefaults()

SetDefaults hydrates default values in the get systeminfo volumes params (not the query body).

All values with no default are reset to their zero value.

func (*GetSysteminfoVolumesParams) SetHTTPClient

func (o *GetSysteminfoVolumesParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get systeminfo volumes params

func (*GetSysteminfoVolumesParams) SetTimeout

func (o *GetSysteminfoVolumesParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get systeminfo volumes params

func (*GetSysteminfoVolumesParams) WithContext

WithContext adds the context to the get systeminfo volumes params

func (*GetSysteminfoVolumesParams) WithDefaults

WithDefaults hydrates default values in the get systeminfo volumes params (not the query body).

All values with no default are reset to their zero value.

func (*GetSysteminfoVolumesParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get systeminfo volumes params

func (*GetSysteminfoVolumesParams) WithTimeout

WithTimeout adds the timeout to the get systeminfo volumes params

func (*GetSysteminfoVolumesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetSysteminfoVolumesReader

type GetSysteminfoVolumesReader struct {
	// contains filtered or unexported fields
}

GetSysteminfoVolumesReader is a Reader for the GetSysteminfoVolumes structure.

func (*GetSysteminfoVolumesReader) ReadResponse

func (o *GetSysteminfoVolumesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetSysteminfoVolumesUnauthorized

type GetSysteminfoVolumesUnauthorized struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}
GetSysteminfoVolumesUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewGetSysteminfoVolumesUnauthorized

func NewGetSysteminfoVolumesUnauthorized() *GetSysteminfoVolumesUnauthorized

NewGetSysteminfoVolumesUnauthorized creates a GetSysteminfoVolumesUnauthorized with default headers values

func (*GetSysteminfoVolumesUnauthorized) Error

func (*GetSysteminfoVolumesUnauthorized) GetPayload

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL