ipmi

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2022 License: ISC 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 ipmi API

func (*Client) GetIpmis

func (a *Client) GetIpmis(params *GetIpmisParams, opts ...ClientOption) (*GetIpmisOK, error)

GetIpmis get ipmis API

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 {
	GetIpmis(params *GetIpmisParams, opts ...ClientOption) (*GetIpmisOK, 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 ipmi API client.

type GetIpmisBadRequest

type GetIpmisBadRequest struct {
	Payload *models.ErrorBody
}
GetIpmisBadRequest describes a response with status code 400, with default header values.

Bad request

func NewGetIpmisBadRequest

func NewGetIpmisBadRequest() *GetIpmisBadRequest

NewGetIpmisBadRequest creates a GetIpmisBadRequest with default headers values

func (*GetIpmisBadRequest) Error

func (o *GetIpmisBadRequest) Error() string

func (*GetIpmisBadRequest) GetPayload

func (o *GetIpmisBadRequest) GetPayload() *models.ErrorBody

type GetIpmisInternalServerError added in v1.10.0

type GetIpmisInternalServerError struct {
	Payload *models.ErrorBody
}
GetIpmisInternalServerError describes a response with status code 500, with default header values.

Server error

func NewGetIpmisInternalServerError added in v1.10.0

func NewGetIpmisInternalServerError() *GetIpmisInternalServerError

NewGetIpmisInternalServerError creates a GetIpmisInternalServerError with default headers values

func (*GetIpmisInternalServerError) Error added in v1.10.0

func (*GetIpmisInternalServerError) GetPayload added in v1.10.0

func (o *GetIpmisInternalServerError) GetPayload() *models.ErrorBody

type GetIpmisNotFound added in v1.10.0

type GetIpmisNotFound struct {
	Payload *models.ErrorBody
}
GetIpmisNotFound describes a response with status code 404, with default header values.

Not found

func NewGetIpmisNotFound added in v1.10.0

func NewGetIpmisNotFound() *GetIpmisNotFound

NewGetIpmisNotFound creates a GetIpmisNotFound with default headers values

func (*GetIpmisNotFound) Error added in v1.10.0

func (o *GetIpmisNotFound) Error() string

func (*GetIpmisNotFound) GetPayload added in v1.10.0

func (o *GetIpmisNotFound) GetPayload() *models.ErrorBody

type GetIpmisOK

type GetIpmisOK struct {
	Payload []*models.Ipmi
}
GetIpmisOK describes a response with status code 200, with default header values.

Ok

func NewGetIpmisOK

func NewGetIpmisOK() *GetIpmisOK

NewGetIpmisOK creates a GetIpmisOK with default headers values

func (*GetIpmisOK) Error

func (o *GetIpmisOK) Error() string

func (*GetIpmisOK) GetPayload

func (o *GetIpmisOK) GetPayload() []*models.Ipmi

type GetIpmisParams

type GetIpmisParams struct {

	// ContentLanguage.
	//
	// Default: "en-US"
	ContentLanguage *string

	// RequestBody.
	RequestBody *models.GetIpmisRequestBody

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetIpmisParams contains all the parameters to send to the API endpoint

for the get ipmis operation.

Typically these are written to a http.Request.

func NewGetIpmisParams

func NewGetIpmisParams() *GetIpmisParams

NewGetIpmisParams creates a new GetIpmisParams 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 NewGetIpmisParamsWithContext

func NewGetIpmisParamsWithContext(ctx context.Context) *GetIpmisParams

NewGetIpmisParamsWithContext creates a new GetIpmisParams object with the ability to set a context for a request.

func NewGetIpmisParamsWithHTTPClient

func NewGetIpmisParamsWithHTTPClient(client *http.Client) *GetIpmisParams

NewGetIpmisParamsWithHTTPClient creates a new GetIpmisParams object with the ability to set a custom HTTPClient for a request.

func NewGetIpmisParamsWithTimeout

func NewGetIpmisParamsWithTimeout(timeout time.Duration) *GetIpmisParams

NewGetIpmisParamsWithTimeout creates a new GetIpmisParams object with the ability to set a timeout on a request.

func (*GetIpmisParams) SetContentLanguage

func (o *GetIpmisParams) SetContentLanguage(contentLanguage *string)

SetContentLanguage adds the contentLanguage to the get ipmis params

func (*GetIpmisParams) SetContext

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

SetContext adds the context to the get ipmis params

func (*GetIpmisParams) SetDefaults

func (o *GetIpmisParams) SetDefaults()

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

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

func (*GetIpmisParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get ipmis params

func (*GetIpmisParams) SetRequestBody

func (o *GetIpmisParams) SetRequestBody(requestBody *models.GetIpmisRequestBody)

SetRequestBody adds the requestBody to the get ipmis params

func (*GetIpmisParams) SetTimeout

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

SetTimeout adds the timeout to the get ipmis params

func (*GetIpmisParams) WithContentLanguage

func (o *GetIpmisParams) WithContentLanguage(contentLanguage *string) *GetIpmisParams

WithContentLanguage adds the contentLanguage to the get ipmis params

func (*GetIpmisParams) WithContext

func (o *GetIpmisParams) WithContext(ctx context.Context) *GetIpmisParams

WithContext adds the context to the get ipmis params

func (*GetIpmisParams) WithDefaults

func (o *GetIpmisParams) WithDefaults() *GetIpmisParams

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

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

func (*GetIpmisParams) WithHTTPClient

func (o *GetIpmisParams) WithHTTPClient(client *http.Client) *GetIpmisParams

WithHTTPClient adds the HTTPClient to the get ipmis params

func (*GetIpmisParams) WithRequestBody

func (o *GetIpmisParams) WithRequestBody(requestBody *models.GetIpmisRequestBody) *GetIpmisParams

WithRequestBody adds the requestBody to the get ipmis params

func (*GetIpmisParams) WithTimeout

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

WithTimeout adds the timeout to the get ipmis params

func (*GetIpmisParams) WriteToRequest

func (o *GetIpmisParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetIpmisReader

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

GetIpmisReader is a Reader for the GetIpmis structure.

func (*GetIpmisReader) ReadResponse

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

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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