firmware

package
v0.16.3 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2022 License: MIT Imports: 11 Imported by: 2

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 firmware API

func (*Client) ListFirmwares

func (a *Client) ListFirmwares(params *ListFirmwaresParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListFirmwaresOK, error)

ListFirmwares returns all firmwares for a specific machine

func (*Client) RemoveFirmware

func (a *Client) RemoveFirmware(params *RemoveFirmwareParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RemoveFirmwareOK, error)

RemoveFirmware removes given firmware

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

func (*Client) UploadFirmware

func (a *Client) UploadFirmware(params *UploadFirmwareParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UploadFirmwareOK, error)

UploadFirmware uploads given firmware

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	ListFirmwares(params *ListFirmwaresParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListFirmwaresOK, error)

	RemoveFirmware(params *RemoveFirmwareParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RemoveFirmwareOK, error)

	UploadFirmware(params *UploadFirmwareParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UploadFirmwareOK, 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 firmware API client.

type ListFirmwaresDefault

type ListFirmwaresDefault struct {
	Payload *httperrors.HTTPErrorResponse
	// contains filtered or unexported fields
}
ListFirmwaresDefault describes a response with status code -1, with default header values.

Error

func NewListFirmwaresDefault

func NewListFirmwaresDefault(code int) *ListFirmwaresDefault

NewListFirmwaresDefault creates a ListFirmwaresDefault with default headers values

func (*ListFirmwaresDefault) Code

func (o *ListFirmwaresDefault) Code() int

Code gets the status code for the list firmwares default response

func (*ListFirmwaresDefault) Error

func (o *ListFirmwaresDefault) Error() string

func (*ListFirmwaresDefault) GetPayload

type ListFirmwaresOK

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

OK

func NewListFirmwaresOK

func NewListFirmwaresOK() *ListFirmwaresOK

NewListFirmwaresOK creates a ListFirmwaresOK with default headers values

func (*ListFirmwaresOK) Error

func (o *ListFirmwaresOK) Error() string

func (*ListFirmwaresOK) GetPayload

func (o *ListFirmwaresOK) GetPayload() *models.V1FirmwaresResponse

type ListFirmwaresParams

type ListFirmwaresParams struct {

	/* Board.

	   the board
	*/
	Board *string

	/* Kind.

	   the firmware kind [bios|bmc]
	*/
	Kind *string

	/* MachineID.

	   restrict firmwares to the given machine
	*/
	MachineID *string

	/* Vendor.

	   the vendor
	*/
	Vendor *string

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

ListFirmwaresParams contains all the parameters to send to the API endpoint

for the list firmwares operation.

Typically these are written to a http.Request.

func NewListFirmwaresParams

func NewListFirmwaresParams() *ListFirmwaresParams

NewListFirmwaresParams creates a new ListFirmwaresParams 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 NewListFirmwaresParamsWithContext

func NewListFirmwaresParamsWithContext(ctx context.Context) *ListFirmwaresParams

NewListFirmwaresParamsWithContext creates a new ListFirmwaresParams object with the ability to set a context for a request.

func NewListFirmwaresParamsWithHTTPClient

func NewListFirmwaresParamsWithHTTPClient(client *http.Client) *ListFirmwaresParams

NewListFirmwaresParamsWithHTTPClient creates a new ListFirmwaresParams object with the ability to set a custom HTTPClient for a request.

func NewListFirmwaresParamsWithTimeout

func NewListFirmwaresParamsWithTimeout(timeout time.Duration) *ListFirmwaresParams

NewListFirmwaresParamsWithTimeout creates a new ListFirmwaresParams object with the ability to set a timeout on a request.

func (*ListFirmwaresParams) SetBoard

func (o *ListFirmwaresParams) SetBoard(board *string)

SetBoard adds the board to the list firmwares params

func (*ListFirmwaresParams) SetContext

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

SetContext adds the context to the list firmwares params

func (*ListFirmwaresParams) SetDefaults

func (o *ListFirmwaresParams) SetDefaults()

SetDefaults hydrates default values in the list firmwares params (not the query body).

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

func (*ListFirmwaresParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list firmwares params

func (*ListFirmwaresParams) SetKind

func (o *ListFirmwaresParams) SetKind(kind *string)

SetKind adds the kind to the list firmwares params

func (*ListFirmwaresParams) SetMachineID

func (o *ListFirmwaresParams) SetMachineID(machineID *string)

SetMachineID adds the machineId to the list firmwares params

func (*ListFirmwaresParams) SetTimeout

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

SetTimeout adds the timeout to the list firmwares params

func (*ListFirmwaresParams) SetVendor

func (o *ListFirmwaresParams) SetVendor(vendor *string)

SetVendor adds the vendor to the list firmwares params

func (*ListFirmwaresParams) WithBoard

func (o *ListFirmwaresParams) WithBoard(board *string) *ListFirmwaresParams

WithBoard adds the board to the list firmwares params

func (*ListFirmwaresParams) WithContext

WithContext adds the context to the list firmwares params

func (*ListFirmwaresParams) WithDefaults

func (o *ListFirmwaresParams) WithDefaults() *ListFirmwaresParams

WithDefaults hydrates default values in the list firmwares params (not the query body).

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

func (*ListFirmwaresParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list firmwares params

func (*ListFirmwaresParams) WithKind

func (o *ListFirmwaresParams) WithKind(kind *string) *ListFirmwaresParams

WithKind adds the kind to the list firmwares params

func (*ListFirmwaresParams) WithMachineID

func (o *ListFirmwaresParams) WithMachineID(machineID *string) *ListFirmwaresParams

WithMachineID adds the machineID to the list firmwares params

func (*ListFirmwaresParams) WithTimeout

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

WithTimeout adds the timeout to the list firmwares params

func (*ListFirmwaresParams) WithVendor

func (o *ListFirmwaresParams) WithVendor(vendor *string) *ListFirmwaresParams

WithVendor adds the vendor to the list firmwares params

func (*ListFirmwaresParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ListFirmwaresReader

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

ListFirmwaresReader is a Reader for the ListFirmwares structure.

func (*ListFirmwaresReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type RemoveFirmwareDefault

type RemoveFirmwareDefault struct {
	Payload *httperrors.HTTPErrorResponse
	// contains filtered or unexported fields
}
RemoveFirmwareDefault describes a response with status code -1, with default header values.

Error

func NewRemoveFirmwareDefault

func NewRemoveFirmwareDefault(code int) *RemoveFirmwareDefault

NewRemoveFirmwareDefault creates a RemoveFirmwareDefault with default headers values

func (*RemoveFirmwareDefault) Code

func (o *RemoveFirmwareDefault) Code() int

Code gets the status code for the remove firmware default response

func (*RemoveFirmwareDefault) Error

func (o *RemoveFirmwareDefault) Error() string

func (*RemoveFirmwareDefault) GetPayload

type RemoveFirmwareOK

type RemoveFirmwareOK struct {
}
RemoveFirmwareOK describes a response with status code 200, with default header values.

OK

func NewRemoveFirmwareOK

func NewRemoveFirmwareOK() *RemoveFirmwareOK

NewRemoveFirmwareOK creates a RemoveFirmwareOK with default headers values

func (*RemoveFirmwareOK) Error

func (o *RemoveFirmwareOK) Error() string

type RemoveFirmwareParams

type RemoveFirmwareParams struct {

	/* Board.

	   the board
	*/
	Board string

	// Body.
	Body models.V1EmptyBody

	/* Kind.

	   the firmware kind [bios|bmc]
	*/
	Kind string

	/* Revision.

	   the firmware revision
	*/
	Revision string

	/* Vendor.

	   the vendor
	*/
	Vendor string

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

RemoveFirmwareParams contains all the parameters to send to the API endpoint

for the remove firmware operation.

Typically these are written to a http.Request.

func NewRemoveFirmwareParams

func NewRemoveFirmwareParams() *RemoveFirmwareParams

NewRemoveFirmwareParams creates a new RemoveFirmwareParams 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 NewRemoveFirmwareParamsWithContext

func NewRemoveFirmwareParamsWithContext(ctx context.Context) *RemoveFirmwareParams

NewRemoveFirmwareParamsWithContext creates a new RemoveFirmwareParams object with the ability to set a context for a request.

func NewRemoveFirmwareParamsWithHTTPClient

func NewRemoveFirmwareParamsWithHTTPClient(client *http.Client) *RemoveFirmwareParams

NewRemoveFirmwareParamsWithHTTPClient creates a new RemoveFirmwareParams object with the ability to set a custom HTTPClient for a request.

func NewRemoveFirmwareParamsWithTimeout

func NewRemoveFirmwareParamsWithTimeout(timeout time.Duration) *RemoveFirmwareParams

NewRemoveFirmwareParamsWithTimeout creates a new RemoveFirmwareParams object with the ability to set a timeout on a request.

func (*RemoveFirmwareParams) SetBoard

func (o *RemoveFirmwareParams) SetBoard(board string)

SetBoard adds the board to the remove firmware params

func (*RemoveFirmwareParams) SetBody

func (o *RemoveFirmwareParams) SetBody(body models.V1EmptyBody)

SetBody adds the body to the remove firmware params

func (*RemoveFirmwareParams) SetContext

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

SetContext adds the context to the remove firmware params

func (*RemoveFirmwareParams) SetDefaults

func (o *RemoveFirmwareParams) SetDefaults()

SetDefaults hydrates default values in the remove firmware params (not the query body).

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

func (*RemoveFirmwareParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the remove firmware params

func (*RemoveFirmwareParams) SetKind

func (o *RemoveFirmwareParams) SetKind(kind string)

SetKind adds the kind to the remove firmware params

func (*RemoveFirmwareParams) SetRevision

func (o *RemoveFirmwareParams) SetRevision(revision string)

SetRevision adds the revision to the remove firmware params

func (*RemoveFirmwareParams) SetTimeout

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

SetTimeout adds the timeout to the remove firmware params

func (*RemoveFirmwareParams) SetVendor

func (o *RemoveFirmwareParams) SetVendor(vendor string)

SetVendor adds the vendor to the remove firmware params

func (*RemoveFirmwareParams) WithBoard

func (o *RemoveFirmwareParams) WithBoard(board string) *RemoveFirmwareParams

WithBoard adds the board to the remove firmware params

func (*RemoveFirmwareParams) WithBody

WithBody adds the body to the remove firmware params

func (*RemoveFirmwareParams) WithContext

WithContext adds the context to the remove firmware params

func (*RemoveFirmwareParams) WithDefaults

func (o *RemoveFirmwareParams) WithDefaults() *RemoveFirmwareParams

WithDefaults hydrates default values in the remove firmware params (not the query body).

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

func (*RemoveFirmwareParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the remove firmware params

func (*RemoveFirmwareParams) WithKind

WithKind adds the kind to the remove firmware params

func (*RemoveFirmwareParams) WithRevision

func (o *RemoveFirmwareParams) WithRevision(revision string) *RemoveFirmwareParams

WithRevision adds the revision to the remove firmware params

func (*RemoveFirmwareParams) WithTimeout

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

WithTimeout adds the timeout to the remove firmware params

func (*RemoveFirmwareParams) WithVendor

func (o *RemoveFirmwareParams) WithVendor(vendor string) *RemoveFirmwareParams

WithVendor adds the vendor to the remove firmware params

func (*RemoveFirmwareParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type RemoveFirmwareReader

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

RemoveFirmwareReader is a Reader for the RemoveFirmware structure.

func (*RemoveFirmwareReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UploadFirmwareDefault

type UploadFirmwareDefault struct {
	Payload *httperrors.HTTPErrorResponse
	// contains filtered or unexported fields
}
UploadFirmwareDefault describes a response with status code -1, with default header values.

Error

func NewUploadFirmwareDefault

func NewUploadFirmwareDefault(code int) *UploadFirmwareDefault

NewUploadFirmwareDefault creates a UploadFirmwareDefault with default headers values

func (*UploadFirmwareDefault) Code

func (o *UploadFirmwareDefault) Code() int

Code gets the status code for the upload firmware default response

func (*UploadFirmwareDefault) Error

func (o *UploadFirmwareDefault) Error() string

func (*UploadFirmwareDefault) GetPayload

type UploadFirmwareOK

type UploadFirmwareOK struct {
}
UploadFirmwareOK describes a response with status code 200, with default header values.

OK

func NewUploadFirmwareOK

func NewUploadFirmwareOK() *UploadFirmwareOK

NewUploadFirmwareOK creates a UploadFirmwareOK with default headers values

func (*UploadFirmwareOK) Error

func (o *UploadFirmwareOK) Error() string

type UploadFirmwareParams

type UploadFirmwareParams struct {

	/* Board.

	   the board
	*/
	Board string

	/* File.

	   the firmware file
	*/
	File runtime.NamedReadCloser

	/* Kind.

	   the firmware kind [bios|bmc]
	*/
	Kind string

	/* Revision.

	   the firmware revision
	*/
	Revision string

	/* Vendor.

	   the vendor
	*/
	Vendor string

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

UploadFirmwareParams contains all the parameters to send to the API endpoint

for the upload firmware operation.

Typically these are written to a http.Request.

func NewUploadFirmwareParams

func NewUploadFirmwareParams() *UploadFirmwareParams

NewUploadFirmwareParams creates a new UploadFirmwareParams 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 NewUploadFirmwareParamsWithContext

func NewUploadFirmwareParamsWithContext(ctx context.Context) *UploadFirmwareParams

NewUploadFirmwareParamsWithContext creates a new UploadFirmwareParams object with the ability to set a context for a request.

func NewUploadFirmwareParamsWithHTTPClient

func NewUploadFirmwareParamsWithHTTPClient(client *http.Client) *UploadFirmwareParams

NewUploadFirmwareParamsWithHTTPClient creates a new UploadFirmwareParams object with the ability to set a custom HTTPClient for a request.

func NewUploadFirmwareParamsWithTimeout

func NewUploadFirmwareParamsWithTimeout(timeout time.Duration) *UploadFirmwareParams

NewUploadFirmwareParamsWithTimeout creates a new UploadFirmwareParams object with the ability to set a timeout on a request.

func (*UploadFirmwareParams) SetBoard

func (o *UploadFirmwareParams) SetBoard(board string)

SetBoard adds the board to the upload firmware params

func (*UploadFirmwareParams) SetContext

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

SetContext adds the context to the upload firmware params

func (*UploadFirmwareParams) SetDefaults

func (o *UploadFirmwareParams) SetDefaults()

SetDefaults hydrates default values in the upload firmware params (not the query body).

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

func (*UploadFirmwareParams) SetFile

func (o *UploadFirmwareParams) SetFile(file runtime.NamedReadCloser)

SetFile adds the file to the upload firmware params

func (*UploadFirmwareParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the upload firmware params

func (*UploadFirmwareParams) SetKind

func (o *UploadFirmwareParams) SetKind(kind string)

SetKind adds the kind to the upload firmware params

func (*UploadFirmwareParams) SetRevision

func (o *UploadFirmwareParams) SetRevision(revision string)

SetRevision adds the revision to the upload firmware params

func (*UploadFirmwareParams) SetTimeout

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

SetTimeout adds the timeout to the upload firmware params

func (*UploadFirmwareParams) SetVendor

func (o *UploadFirmwareParams) SetVendor(vendor string)

SetVendor adds the vendor to the upload firmware params

func (*UploadFirmwareParams) WithBoard

func (o *UploadFirmwareParams) WithBoard(board string) *UploadFirmwareParams

WithBoard adds the board to the upload firmware params

func (*UploadFirmwareParams) WithContext

WithContext adds the context to the upload firmware params

func (*UploadFirmwareParams) WithDefaults

func (o *UploadFirmwareParams) WithDefaults() *UploadFirmwareParams

WithDefaults hydrates default values in the upload firmware params (not the query body).

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

func (*UploadFirmwareParams) WithFile

WithFile adds the file to the upload firmware params

func (*UploadFirmwareParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the upload firmware params

func (*UploadFirmwareParams) WithKind

WithKind adds the kind to the upload firmware params

func (*UploadFirmwareParams) WithRevision

func (o *UploadFirmwareParams) WithRevision(revision string) *UploadFirmwareParams

WithRevision adds the revision to the upload firmware params

func (*UploadFirmwareParams) WithTimeout

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

WithTimeout adds the timeout to the upload firmware params

func (*UploadFirmwareParams) WithVendor

func (o *UploadFirmwareParams) WithVendor(vendor string) *UploadFirmwareParams

WithVendor adds the vendor to the upload firmware params

func (*UploadFirmwareParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UploadFirmwareReader

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

UploadFirmwareReader is a Reader for the UploadFirmware structure.

func (*UploadFirmwareReader) ReadResponse

func (o *UploadFirmwareReader) 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