firmware

package
v0.21.3 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 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

func (*ListFirmwaresDefault) IsClientError added in v0.19.3

func (o *ListFirmwaresDefault) IsClientError() bool

IsClientError returns true when this list firmwares default response has a 4xx status code

func (*ListFirmwaresDefault) IsCode added in v0.19.3

func (o *ListFirmwaresDefault) IsCode(code int) bool

IsCode returns true when this list firmwares default response a status code equal to that given

func (*ListFirmwaresDefault) IsRedirect added in v0.19.3

func (o *ListFirmwaresDefault) IsRedirect() bool

IsRedirect returns true when this list firmwares default response has a 3xx status code

func (*ListFirmwaresDefault) IsServerError added in v0.19.3

func (o *ListFirmwaresDefault) IsServerError() bool

IsServerError returns true when this list firmwares default response has a 5xx status code

func (*ListFirmwaresDefault) IsSuccess added in v0.19.3

func (o *ListFirmwaresDefault) IsSuccess() bool

IsSuccess returns true when this list firmwares default response has a 2xx status code

func (*ListFirmwaresDefault) String added in v0.19.3

func (o *ListFirmwaresDefault) String() string

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

func (*ListFirmwaresOK) IsClientError added in v0.19.3

func (o *ListFirmwaresOK) IsClientError() bool

IsClientError returns true when this list firmwares o k response has a 4xx status code

func (*ListFirmwaresOK) IsCode added in v0.19.3

func (o *ListFirmwaresOK) IsCode(code int) bool

IsCode returns true when this list firmwares o k response a status code equal to that given

func (*ListFirmwaresOK) IsRedirect added in v0.19.3

func (o *ListFirmwaresOK) IsRedirect() bool

IsRedirect returns true when this list firmwares o k response has a 3xx status code

func (*ListFirmwaresOK) IsServerError added in v0.19.3

func (o *ListFirmwaresOK) IsServerError() bool

IsServerError returns true when this list firmwares o k response has a 5xx status code

func (*ListFirmwaresOK) IsSuccess added in v0.19.3

func (o *ListFirmwaresOK) IsSuccess() bool

IsSuccess returns true when this list firmwares o k response has a 2xx status code

func (*ListFirmwaresOK) String added in v0.19.3

func (o *ListFirmwaresOK) String() string

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

func (*RemoveFirmwareDefault) IsClientError added in v0.19.3

func (o *RemoveFirmwareDefault) IsClientError() bool

IsClientError returns true when this remove firmware default response has a 4xx status code

func (*RemoveFirmwareDefault) IsCode added in v0.19.3

func (o *RemoveFirmwareDefault) IsCode(code int) bool

IsCode returns true when this remove firmware default response a status code equal to that given

func (*RemoveFirmwareDefault) IsRedirect added in v0.19.3

func (o *RemoveFirmwareDefault) IsRedirect() bool

IsRedirect returns true when this remove firmware default response has a 3xx status code

func (*RemoveFirmwareDefault) IsServerError added in v0.19.3

func (o *RemoveFirmwareDefault) IsServerError() bool

IsServerError returns true when this remove firmware default response has a 5xx status code

func (*RemoveFirmwareDefault) IsSuccess added in v0.19.3

func (o *RemoveFirmwareDefault) IsSuccess() bool

IsSuccess returns true when this remove firmware default response has a 2xx status code

func (*RemoveFirmwareDefault) String added in v0.19.3

func (o *RemoveFirmwareDefault) String() string

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

func (*RemoveFirmwareOK) IsClientError added in v0.19.3

func (o *RemoveFirmwareOK) IsClientError() bool

IsClientError returns true when this remove firmware o k response has a 4xx status code

func (*RemoveFirmwareOK) IsCode added in v0.19.3

func (o *RemoveFirmwareOK) IsCode(code int) bool

IsCode returns true when this remove firmware o k response a status code equal to that given

func (*RemoveFirmwareOK) IsRedirect added in v0.19.3

func (o *RemoveFirmwareOK) IsRedirect() bool

IsRedirect returns true when this remove firmware o k response has a 3xx status code

func (*RemoveFirmwareOK) IsServerError added in v0.19.3

func (o *RemoveFirmwareOK) IsServerError() bool

IsServerError returns true when this remove firmware o k response has a 5xx status code

func (*RemoveFirmwareOK) IsSuccess added in v0.19.3

func (o *RemoveFirmwareOK) IsSuccess() bool

IsSuccess returns true when this remove firmware o k response has a 2xx status code

func (*RemoveFirmwareOK) String added in v0.19.3

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

func (*UploadFirmwareDefault) IsClientError added in v0.19.3

func (o *UploadFirmwareDefault) IsClientError() bool

IsClientError returns true when this upload firmware default response has a 4xx status code

func (*UploadFirmwareDefault) IsCode added in v0.19.3

func (o *UploadFirmwareDefault) IsCode(code int) bool

IsCode returns true when this upload firmware default response a status code equal to that given

func (*UploadFirmwareDefault) IsRedirect added in v0.19.3

func (o *UploadFirmwareDefault) IsRedirect() bool

IsRedirect returns true when this upload firmware default response has a 3xx status code

func (*UploadFirmwareDefault) IsServerError added in v0.19.3

func (o *UploadFirmwareDefault) IsServerError() bool

IsServerError returns true when this upload firmware default response has a 5xx status code

func (*UploadFirmwareDefault) IsSuccess added in v0.19.3

func (o *UploadFirmwareDefault) IsSuccess() bool

IsSuccess returns true when this upload firmware default response has a 2xx status code

func (*UploadFirmwareDefault) String added in v0.19.3

func (o *UploadFirmwareDefault) String() string

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

func (*UploadFirmwareOK) IsClientError added in v0.19.3

func (o *UploadFirmwareOK) IsClientError() bool

IsClientError returns true when this upload firmware o k response has a 4xx status code

func (*UploadFirmwareOK) IsCode added in v0.19.3

func (o *UploadFirmwareOK) IsCode(code int) bool

IsCode returns true when this upload firmware o k response a status code equal to that given

func (*UploadFirmwareOK) IsRedirect added in v0.19.3

func (o *UploadFirmwareOK) IsRedirect() bool

IsRedirect returns true when this upload firmware o k response has a 3xx status code

func (*UploadFirmwareOK) IsServerError added in v0.19.3

func (o *UploadFirmwareOK) IsServerError() bool

IsServerError returns true when this upload firmware o k response has a 5xx status code

func (*UploadFirmwareOK) IsSuccess added in v0.19.3

func (o *UploadFirmwareOK) IsSuccess() bool

IsSuccess returns true when this upload firmware o k response has a 2xx status code

func (*UploadFirmwareOK) String added in v0.19.3

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