Documentation ¶
Index ¶
- func AddFirmwarePath() string
- func BuildAddPayload(firmwareAddBody string, firmwareAddAuth string) (*firmware.AddPayload, error)
- func BuildDeletePayload(firmwareDeleteFirmwareID string, firmwareDeleteAuth string) (*firmware.DeletePayload, error)
- func BuildDownloadPayload(firmwareDownloadFirmwareID string) (*firmware.DownloadPayload, error)
- func BuildListPayload(firmwareListModule string, firmwareListProfile string, ...) (*firmware.ListPayload, error)
- func DecodeAddResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
- func DecodeDeleteResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
- func DecodeDownloadResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
- func DecodeListResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
- func DeleteFirmwarePath(firmwareID int32) string
- func DownloadFirmwarePath(firmwareID int32) string
- func EncodeAddRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
- func EncodeDeleteRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
- func EncodeListRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
- func ListFirmwarePath() string
- func NewAddBadRequest(body *AddBadRequestResponseBody) *goa.ServiceError
- func NewAddForbidden(body *AddForbiddenResponseBody) *goa.ServiceError
- func NewAddNotFound(body *AddNotFoundResponseBody) *goa.ServiceError
- func NewAddUnauthorized(body *AddUnauthorizedResponseBody) *goa.ServiceError
- func NewDeleteBadRequest(body *DeleteBadRequestResponseBody) *goa.ServiceError
- func NewDeleteForbidden(body *DeleteForbiddenResponseBody) *goa.ServiceError
- func NewDeleteNotFound(body *DeleteNotFoundResponseBody) *goa.ServiceError
- func NewDeleteUnauthorized(body *DeleteUnauthorizedResponseBody) *goa.ServiceError
- func NewDownloadBadRequest(body *DownloadBadRequestResponseBody) *goa.ServiceError
- func NewDownloadForbidden(body *DownloadForbiddenResponseBody) *goa.ServiceError
- func NewDownloadNotFound(body *DownloadNotFoundResponseBody) *goa.ServiceError
- func NewDownloadResultOK(length int64, contentType string) *firmware.DownloadResult
- func NewDownloadUnauthorized(body *DownloadUnauthorizedResponseBody) *goa.ServiceError
- func NewListBadRequest(body *ListBadRequestResponseBody) *goa.ServiceError
- func NewListFirmwaresOK(body *ListResponseBody) *firmwareviews.FirmwaresView
- func NewListForbidden(body *ListForbiddenResponseBody) *goa.ServiceError
- func NewListNotFound(body *ListNotFoundResponseBody) *goa.ServiceError
- func NewListUnauthorized(body *ListUnauthorizedResponseBody) *goa.ServiceError
- func ValidateAddBadRequestResponseBody(body *AddBadRequestResponseBody) (err error)
- func ValidateAddForbiddenResponseBody(body *AddForbiddenResponseBody) (err error)
- func ValidateAddNotFoundResponseBody(body *AddNotFoundResponseBody) (err error)
- func ValidateAddUnauthorizedResponseBody(body *AddUnauthorizedResponseBody) (err error)
- func ValidateDeleteBadRequestResponseBody(body *DeleteBadRequestResponseBody) (err error)
- func ValidateDeleteForbiddenResponseBody(body *DeleteForbiddenResponseBody) (err error)
- func ValidateDeleteNotFoundResponseBody(body *DeleteNotFoundResponseBody) (err error)
- func ValidateDeleteUnauthorizedResponseBody(body *DeleteUnauthorizedResponseBody) (err error)
- func ValidateDownloadBadRequestResponseBody(body *DownloadBadRequestResponseBody) (err error)
- func ValidateDownloadForbiddenResponseBody(body *DownloadForbiddenResponseBody) (err error)
- func ValidateDownloadNotFoundResponseBody(body *DownloadNotFoundResponseBody) (err error)
- func ValidateDownloadUnauthorizedResponseBody(body *DownloadUnauthorizedResponseBody) (err error)
- func ValidateFirmwareSummaryCollectionResponseBody(body FirmwareSummaryCollectionResponseBody) (err error)
- func ValidateFirmwareSummaryResponseBody(body *FirmwareSummaryResponseBody) (err error)
- func ValidateListBadRequestResponseBody(body *ListBadRequestResponseBody) (err error)
- func ValidateListForbiddenResponseBody(body *ListForbiddenResponseBody) (err error)
- func ValidateListNotFoundResponseBody(body *ListNotFoundResponseBody) (err error)
- func ValidateListUnauthorizedResponseBody(body *ListUnauthorizedResponseBody) (err error)
- type AddBadRequestResponseBody
- type AddForbiddenResponseBody
- type AddNotFoundResponseBody
- type AddRequestBody
- type AddUnauthorizedResponseBody
- type Client
- func (c *Client) Add() goa.Endpoint
- func (c *Client) BuildAddRequest(ctx context.Context, v interface{}) (*http.Request, error)
- func (c *Client) BuildDeleteRequest(ctx context.Context, v interface{}) (*http.Request, error)
- func (c *Client) BuildDownloadRequest(ctx context.Context, v interface{}) (*http.Request, error)
- func (c *Client) BuildListRequest(ctx context.Context, v interface{}) (*http.Request, error)
- func (c *Client) Delete() goa.Endpoint
- func (c *Client) Download() goa.Endpoint
- func (c *Client) List() goa.Endpoint
- type DeleteBadRequestResponseBody
- type DeleteForbiddenResponseBody
- type DeleteNotFoundResponseBody
- type DeleteUnauthorizedResponseBody
- type DownloadBadRequestResponseBody
- type DownloadForbiddenResponseBody
- type DownloadNotFoundResponseBody
- type DownloadUnauthorizedResponseBody
- type FirmwareSummaryCollectionResponseBody
- type FirmwareSummaryResponseBody
- type ListBadRequestResponseBody
- type ListForbiddenResponseBody
- type ListNotFoundResponseBody
- type ListResponseBody
- type ListUnauthorizedResponseBody
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddFirmwarePath ¶
func AddFirmwarePath() string
AddFirmwarePath returns the URL path to the firmware service add HTTP endpoint.
func BuildAddPayload ¶
func BuildAddPayload(firmwareAddBody string, firmwareAddAuth string) (*firmware.AddPayload, error)
BuildAddPayload builds the payload for the firmware add endpoint from CLI flags.
func BuildDeletePayload ¶
func BuildDeletePayload(firmwareDeleteFirmwareID string, firmwareDeleteAuth string) (*firmware.DeletePayload, error)
BuildDeletePayload builds the payload for the firmware delete endpoint from CLI flags.
func BuildDownloadPayload ¶
func BuildDownloadPayload(firmwareDownloadFirmwareID string) (*firmware.DownloadPayload, error)
BuildDownloadPayload builds the payload for the firmware download endpoint from CLI flags.
func BuildListPayload ¶
func BuildListPayload(firmwareListModule string, firmwareListProfile string, firmwareListPageSize string, firmwareListPage string, firmwareListAuth string) (*firmware.ListPayload, error)
BuildListPayload builds the payload for the firmware list endpoint from CLI flags.
func DecodeAddResponse ¶
func DecodeAddResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
DecodeAddResponse returns a decoder for responses returned by the firmware add endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeAddResponse may return the following errors:
- "unauthorized" (type *goa.ServiceError): http.StatusUnauthorized
- "forbidden" (type *goa.ServiceError): http.StatusForbidden
- "not-found" (type *goa.ServiceError): http.StatusNotFound
- "bad-request" (type *goa.ServiceError): http.StatusBadRequest
- error: internal error
func DecodeDeleteResponse ¶
func DecodeDeleteResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
DecodeDeleteResponse returns a decoder for responses returned by the firmware delete endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeDeleteResponse may return the following errors:
- "unauthorized" (type *goa.ServiceError): http.StatusUnauthorized
- "forbidden" (type *goa.ServiceError): http.StatusForbidden
- "not-found" (type *goa.ServiceError): http.StatusNotFound
- "bad-request" (type *goa.ServiceError): http.StatusBadRequest
- error: internal error
func DecodeDownloadResponse ¶
func DecodeDownloadResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
DecodeDownloadResponse returns a decoder for responses returned by the firmware download endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeDownloadResponse may return the following errors:
- "unauthorized" (type *goa.ServiceError): http.StatusUnauthorized
- "forbidden" (type *goa.ServiceError): http.StatusForbidden
- "not-found" (type *goa.ServiceError): http.StatusNotFound
- "bad-request" (type *goa.ServiceError): http.StatusBadRequest
- error: internal error
func DecodeListResponse ¶
func DecodeListResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
DecodeListResponse returns a decoder for responses returned by the firmware list endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeListResponse may return the following errors:
- "unauthorized" (type *goa.ServiceError): http.StatusUnauthorized
- "forbidden" (type *goa.ServiceError): http.StatusForbidden
- "not-found" (type *goa.ServiceError): http.StatusNotFound
- "bad-request" (type *goa.ServiceError): http.StatusBadRequest
- error: internal error
func DeleteFirmwarePath ¶
DeleteFirmwarePath returns the URL path to the firmware service delete HTTP endpoint.
func DownloadFirmwarePath ¶
DownloadFirmwarePath returns the URL path to the firmware service download HTTP endpoint.
func EncodeAddRequest ¶
func EncodeAddRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
EncodeAddRequest returns an encoder for requests sent to the firmware add server.
func EncodeDeleteRequest ¶
func EncodeDeleteRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
EncodeDeleteRequest returns an encoder for requests sent to the firmware delete server.
func EncodeListRequest ¶
func EncodeListRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
EncodeListRequest returns an encoder for requests sent to the firmware list server.
func ListFirmwarePath ¶
func ListFirmwarePath() string
ListFirmwarePath returns the URL path to the firmware service list HTTP endpoint.
func NewAddBadRequest ¶
func NewAddBadRequest(body *AddBadRequestResponseBody) *goa.ServiceError
NewAddBadRequest builds a firmware service add endpoint bad-request error.
func NewAddForbidden ¶
func NewAddForbidden(body *AddForbiddenResponseBody) *goa.ServiceError
NewAddForbidden builds a firmware service add endpoint forbidden error.
func NewAddNotFound ¶
func NewAddNotFound(body *AddNotFoundResponseBody) *goa.ServiceError
NewAddNotFound builds a firmware service add endpoint not-found error.
func NewAddUnauthorized ¶
func NewAddUnauthorized(body *AddUnauthorizedResponseBody) *goa.ServiceError
NewAddUnauthorized builds a firmware service add endpoint unauthorized error.
func NewDeleteBadRequest ¶
func NewDeleteBadRequest(body *DeleteBadRequestResponseBody) *goa.ServiceError
NewDeleteBadRequest builds a firmware service delete endpoint bad-request error.
func NewDeleteForbidden ¶
func NewDeleteForbidden(body *DeleteForbiddenResponseBody) *goa.ServiceError
NewDeleteForbidden builds a firmware service delete endpoint forbidden error.
func NewDeleteNotFound ¶
func NewDeleteNotFound(body *DeleteNotFoundResponseBody) *goa.ServiceError
NewDeleteNotFound builds a firmware service delete endpoint not-found error.
func NewDeleteUnauthorized ¶
func NewDeleteUnauthorized(body *DeleteUnauthorizedResponseBody) *goa.ServiceError
NewDeleteUnauthorized builds a firmware service delete endpoint unauthorized error.
func NewDownloadBadRequest ¶
func NewDownloadBadRequest(body *DownloadBadRequestResponseBody) *goa.ServiceError
NewDownloadBadRequest builds a firmware service download endpoint bad-request error.
func NewDownloadForbidden ¶
func NewDownloadForbidden(body *DownloadForbiddenResponseBody) *goa.ServiceError
NewDownloadForbidden builds a firmware service download endpoint forbidden error.
func NewDownloadNotFound ¶
func NewDownloadNotFound(body *DownloadNotFoundResponseBody) *goa.ServiceError
NewDownloadNotFound builds a firmware service download endpoint not-found error.
func NewDownloadResultOK ¶
func NewDownloadResultOK(length int64, contentType string) *firmware.DownloadResult
NewDownloadResultOK builds a "firmware" service "download" endpoint result from a HTTP "OK" response.
func NewDownloadUnauthorized ¶
func NewDownloadUnauthorized(body *DownloadUnauthorizedResponseBody) *goa.ServiceError
NewDownloadUnauthorized builds a firmware service download endpoint unauthorized error.
func NewListBadRequest ¶
func NewListBadRequest(body *ListBadRequestResponseBody) *goa.ServiceError
NewListBadRequest builds a firmware service list endpoint bad-request error.
func NewListFirmwaresOK ¶
func NewListFirmwaresOK(body *ListResponseBody) *firmwareviews.FirmwaresView
NewListFirmwaresOK builds a "firmware" service "list" endpoint result from a HTTP "OK" response.
func NewListForbidden ¶
func NewListForbidden(body *ListForbiddenResponseBody) *goa.ServiceError
NewListForbidden builds a firmware service list endpoint forbidden error.
func NewListNotFound ¶
func NewListNotFound(body *ListNotFoundResponseBody) *goa.ServiceError
NewListNotFound builds a firmware service list endpoint not-found error.
func NewListUnauthorized ¶
func NewListUnauthorized(body *ListUnauthorizedResponseBody) *goa.ServiceError
NewListUnauthorized builds a firmware service list endpoint unauthorized error.
func ValidateAddBadRequestResponseBody ¶
func ValidateAddBadRequestResponseBody(body *AddBadRequestResponseBody) (err error)
ValidateAddBadRequestResponseBody runs the validations defined on add_bad-request_response_body
func ValidateAddForbiddenResponseBody ¶
func ValidateAddForbiddenResponseBody(body *AddForbiddenResponseBody) (err error)
ValidateAddForbiddenResponseBody runs the validations defined on add_forbidden_response_body
func ValidateAddNotFoundResponseBody ¶
func ValidateAddNotFoundResponseBody(body *AddNotFoundResponseBody) (err error)
ValidateAddNotFoundResponseBody runs the validations defined on add_not-found_response_body
func ValidateAddUnauthorizedResponseBody ¶
func ValidateAddUnauthorizedResponseBody(body *AddUnauthorizedResponseBody) (err error)
ValidateAddUnauthorizedResponseBody runs the validations defined on add_unauthorized_response_body
func ValidateDeleteBadRequestResponseBody ¶
func ValidateDeleteBadRequestResponseBody(body *DeleteBadRequestResponseBody) (err error)
ValidateDeleteBadRequestResponseBody runs the validations defined on delete_bad-request_response_body
func ValidateDeleteForbiddenResponseBody ¶
func ValidateDeleteForbiddenResponseBody(body *DeleteForbiddenResponseBody) (err error)
ValidateDeleteForbiddenResponseBody runs the validations defined on delete_forbidden_response_body
func ValidateDeleteNotFoundResponseBody ¶
func ValidateDeleteNotFoundResponseBody(body *DeleteNotFoundResponseBody) (err error)
ValidateDeleteNotFoundResponseBody runs the validations defined on delete_not-found_response_body
func ValidateDeleteUnauthorizedResponseBody ¶
func ValidateDeleteUnauthorizedResponseBody(body *DeleteUnauthorizedResponseBody) (err error)
ValidateDeleteUnauthorizedResponseBody runs the validations defined on delete_unauthorized_response_body
func ValidateDownloadBadRequestResponseBody ¶
func ValidateDownloadBadRequestResponseBody(body *DownloadBadRequestResponseBody) (err error)
ValidateDownloadBadRequestResponseBody runs the validations defined on download_bad-request_response_body
func ValidateDownloadForbiddenResponseBody ¶
func ValidateDownloadForbiddenResponseBody(body *DownloadForbiddenResponseBody) (err error)
ValidateDownloadForbiddenResponseBody runs the validations defined on download_forbidden_response_body
func ValidateDownloadNotFoundResponseBody ¶
func ValidateDownloadNotFoundResponseBody(body *DownloadNotFoundResponseBody) (err error)
ValidateDownloadNotFoundResponseBody runs the validations defined on download_not-found_response_body
func ValidateDownloadUnauthorizedResponseBody ¶
func ValidateDownloadUnauthorizedResponseBody(body *DownloadUnauthorizedResponseBody) (err error)
ValidateDownloadUnauthorizedResponseBody runs the validations defined on download_unauthorized_response_body
func ValidateFirmwareSummaryCollectionResponseBody ¶
func ValidateFirmwareSummaryCollectionResponseBody(body FirmwareSummaryCollectionResponseBody) (err error)
ValidateFirmwareSummaryCollectionResponseBody runs the validations defined on FirmwareSummaryCollectionResponseBody
func ValidateFirmwareSummaryResponseBody ¶
func ValidateFirmwareSummaryResponseBody(body *FirmwareSummaryResponseBody) (err error)
ValidateFirmwareSummaryResponseBody runs the validations defined on FirmwareSummaryResponseBody
func ValidateListBadRequestResponseBody ¶
func ValidateListBadRequestResponseBody(body *ListBadRequestResponseBody) (err error)
ValidateListBadRequestResponseBody runs the validations defined on list_bad-request_response_body
func ValidateListForbiddenResponseBody ¶
func ValidateListForbiddenResponseBody(body *ListForbiddenResponseBody) (err error)
ValidateListForbiddenResponseBody runs the validations defined on list_forbidden_response_body
func ValidateListNotFoundResponseBody ¶
func ValidateListNotFoundResponseBody(body *ListNotFoundResponseBody) (err error)
ValidateListNotFoundResponseBody runs the validations defined on list_not-found_response_body
func ValidateListUnauthorizedResponseBody ¶
func ValidateListUnauthorizedResponseBody(body *ListUnauthorizedResponseBody) (err error)
ValidateListUnauthorizedResponseBody runs the validations defined on list_unauthorized_response_body
Types ¶
type AddBadRequestResponseBody ¶
type AddBadRequestResponseBody struct { // Name is the name of this class of errors. Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` // ID is a unique identifier for this particular occurrence of the problem. ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // Message is a human-readable explanation specific to this occurrence of the // problem. Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` // Is the error temporary? Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"` // Is the error a timeout? Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"` // Is the error a server-side fault? Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"` }
AddBadRequestResponseBody is the type of the "firmware" service "add" endpoint HTTP response body for the "bad-request" error.
type AddForbiddenResponseBody ¶
type AddForbiddenResponseBody struct { // Name is the name of this class of errors. Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` // ID is a unique identifier for this particular occurrence of the problem. ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // Message is a human-readable explanation specific to this occurrence of the // problem. Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` // Is the error temporary? Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"` // Is the error a timeout? Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"` // Is the error a server-side fault? Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"` }
AddForbiddenResponseBody is the type of the "firmware" service "add" endpoint HTTP response body for the "forbidden" error.
type AddNotFoundResponseBody ¶
type AddNotFoundResponseBody struct { // Name is the name of this class of errors. Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` // ID is a unique identifier for this particular occurrence of the problem. ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // Message is a human-readable explanation specific to this occurrence of the // problem. Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` // Is the error temporary? Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"` // Is the error a timeout? Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"` // Is the error a server-side fault? Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"` }
AddNotFoundResponseBody is the type of the "firmware" service "add" endpoint HTTP response body for the "not-found" error.
type AddRequestBody ¶
type AddRequestBody struct { Etag string `form:"etag" json:"etag" xml:"etag"` Module string `form:"module" json:"module" xml:"module"` Profile string `form:"profile" json:"profile" xml:"profile"` Version string `form:"version" json:"version" xml:"version"` URL string `form:"url" json:"url" xml:"url"` Meta string `form:"meta" json:"meta" xml:"meta"` LogicalAddress *int64 `form:"logicalAddress,omitempty" json:"logicalAddress,omitempty" xml:"logicalAddress,omitempty"` }
AddRequestBody is the type of the "firmware" service "add" endpoint HTTP request body.
func NewAddRequestBody ¶
func NewAddRequestBody(p *firmware.AddPayload) *AddRequestBody
NewAddRequestBody builds the HTTP request body from the payload of the "add" endpoint of the "firmware" service.
type AddUnauthorizedResponseBody ¶
type AddUnauthorizedResponseBody struct { string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // problem. Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"` Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"` Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"` }Name *
AddUnauthorizedResponseBody is the type of the "firmware" service "add" endpoint HTTP response body for the "unauthorized" error.
type Client ¶
type Client struct { // Download Doer is the HTTP client used to make requests to the download // endpoint. DownloadDoer goahttp.Doer // Add Doer is the HTTP client used to make requests to the add endpoint. AddDoer goahttp.Doer // List Doer is the HTTP client used to make requests to the list endpoint. ListDoer goahttp.Doer // Delete Doer is the HTTP client used to make requests to the delete endpoint. DeleteDoer goahttp.Doer // CORS Doer is the HTTP client used to make requests to the endpoint. CORSDoer goahttp.Doer // RestoreResponseBody controls whether the response bodies are reset after // decoding so they can be read again. RestoreResponseBody bool // contains filtered or unexported fields }
Client lists the firmware service endpoint HTTP clients.
func NewClient ¶
func NewClient( scheme string, host string, doer goahttp.Doer, enc func(*http.Request) goahttp.Encoder, dec func(*http.Response) goahttp.Decoder, restoreBody bool, ) *Client
NewClient instantiates HTTP clients for all the firmware service servers.
func (*Client) Add ¶
Add returns an endpoint that makes HTTP requests to the firmware service add server.
func (*Client) BuildAddRequest ¶
BuildAddRequest instantiates a HTTP request object with method and path set to call the "firmware" service "add" endpoint
func (*Client) BuildDeleteRequest ¶
BuildDeleteRequest instantiates a HTTP request object with method and path set to call the "firmware" service "delete" endpoint
func (*Client) BuildDownloadRequest ¶
BuildDownloadRequest instantiates a HTTP request object with method and path set to call the "firmware" service "download" endpoint
func (*Client) BuildListRequest ¶
BuildListRequest instantiates a HTTP request object with method and path set to call the "firmware" service "list" endpoint
func (*Client) Delete ¶
Delete returns an endpoint that makes HTTP requests to the firmware service delete server.
type DeleteBadRequestResponseBody ¶
type DeleteBadRequestResponseBody struct { // Name is the name of this class of errors. Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` // ID is a unique identifier for this particular occurrence of the problem. ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // Message is a human-readable explanation specific to this occurrence of the // problem. Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` // Is the error temporary? Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"` // Is the error a timeout? Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"` // Is the error a server-side fault? Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"` }
DeleteBadRequestResponseBody is the type of the "firmware" service "delete" endpoint HTTP response body for the "bad-request" error.
type DeleteForbiddenResponseBody ¶
type DeleteForbiddenResponseBody struct { // Name is the name of this class of errors. Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` // ID is a unique identifier for this particular occurrence of the problem. ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // Message is a human-readable explanation specific to this occurrence of the // problem. Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` // Is the error temporary? Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"` // Is the error a timeout? Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"` // Is the error a server-side fault? Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"` }
DeleteForbiddenResponseBody is the type of the "firmware" service "delete" endpoint HTTP response body for the "forbidden" error.
type DeleteNotFoundResponseBody ¶
type DeleteNotFoundResponseBody struct { // Name is the name of this class of errors. Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` // ID is a unique identifier for this particular occurrence of the problem. ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // Message is a human-readable explanation specific to this occurrence of the // problem. Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` // Is the error temporary? Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"` // Is the error a timeout? Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"` // Is the error a server-side fault? Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"` }
DeleteNotFoundResponseBody is the type of the "firmware" service "delete" endpoint HTTP response body for the "not-found" error.
type DeleteUnauthorizedResponseBody ¶
type DeleteUnauthorizedResponseBody struct { string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // problem. Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"` Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"` Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"` }Name *
DeleteUnauthorizedResponseBody is the type of the "firmware" service "delete" endpoint HTTP response body for the "unauthorized" error.
type DownloadBadRequestResponseBody ¶
type DownloadBadRequestResponseBody struct { // Name is the name of this class of errors. Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` // ID is a unique identifier for this particular occurrence of the problem. ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // Message is a human-readable explanation specific to this occurrence of the // problem. Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` // Is the error temporary? Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"` // Is the error a timeout? Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"` // Is the error a server-side fault? Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"` }
DownloadBadRequestResponseBody is the type of the "firmware" service "download" endpoint HTTP response body for the "bad-request" error.
type DownloadForbiddenResponseBody ¶
type DownloadForbiddenResponseBody struct { // Name is the name of this class of errors. Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` // ID is a unique identifier for this particular occurrence of the problem. ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // Message is a human-readable explanation specific to this occurrence of the // problem. Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` // Is the error temporary? Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"` // Is the error a timeout? Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"` // Is the error a server-side fault? Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"` }
DownloadForbiddenResponseBody is the type of the "firmware" service "download" endpoint HTTP response body for the "forbidden" error.
type DownloadNotFoundResponseBody ¶
type DownloadNotFoundResponseBody struct { // Name is the name of this class of errors. Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` // ID is a unique identifier for this particular occurrence of the problem. ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // Message is a human-readable explanation specific to this occurrence of the // problem. Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` // Is the error temporary? Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"` // Is the error a timeout? Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"` // Is the error a server-side fault? Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"` }
DownloadNotFoundResponseBody is the type of the "firmware" service "download" endpoint HTTP response body for the "not-found" error.
type DownloadUnauthorizedResponseBody ¶
type DownloadUnauthorizedResponseBody struct { string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // problem. Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"` Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"` Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"` }Name *
DownloadUnauthorizedResponseBody is the type of the "firmware" service "download" endpoint HTTP response body for the "unauthorized" error.
type FirmwareSummaryCollectionResponseBody ¶
type FirmwareSummaryCollectionResponseBody []*FirmwareSummaryResponseBody
FirmwareSummaryCollectionResponseBody is used to define fields on response body types.
type FirmwareSummaryResponseBody ¶
type FirmwareSummaryResponseBody struct { ID *int32 `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` Time *string `form:"time,omitempty" json:"time,omitempty" xml:"time,omitempty"` Etag *string `form:"etag,omitempty" json:"etag,omitempty" xml:"etag,omitempty"` Module *string `form:"module,omitempty" json:"module,omitempty" xml:"module,omitempty"` Profile *string `form:"profile,omitempty" json:"profile,omitempty" xml:"profile,omitempty"` Version *string `form:"version,omitempty" json:"version,omitempty" xml:"version,omitempty"` URL *string `form:"url,omitempty" json:"url,omitempty" xml:"url,omitempty"` Meta map[string]interface{} `form:"meta,omitempty" json:"meta,omitempty" xml:"meta,omitempty"` BuildNumber *int32 `form:"buildNumber,omitempty" json:"buildNumber,omitempty" xml:"buildNumber,omitempty"` BuildTime *int64 `form:"buildTime,omitempty" json:"buildTime,omitempty" xml:"buildTime,omitempty"` LogicalAddress *int64 `form:"logicalAddress,omitempty" json:"logicalAddress,omitempty" xml:"logicalAddress,omitempty"` }
FirmwareSummaryResponseBody is used to define fields on response body types.
type ListBadRequestResponseBody ¶
type ListBadRequestResponseBody struct { // Name is the name of this class of errors. Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` // ID is a unique identifier for this particular occurrence of the problem. ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // Message is a human-readable explanation specific to this occurrence of the // problem. Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` // Is the error temporary? Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"` // Is the error a timeout? Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"` // Is the error a server-side fault? Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"` }
ListBadRequestResponseBody is the type of the "firmware" service "list" endpoint HTTP response body for the "bad-request" error.
type ListForbiddenResponseBody ¶
type ListForbiddenResponseBody struct { // Name is the name of this class of errors. Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` // ID is a unique identifier for this particular occurrence of the problem. ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // Message is a human-readable explanation specific to this occurrence of the // problem. Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` // Is the error temporary? Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"` // Is the error a timeout? Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"` // Is the error a server-side fault? Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"` }
ListForbiddenResponseBody is the type of the "firmware" service "list" endpoint HTTP response body for the "forbidden" error.
type ListNotFoundResponseBody ¶
type ListNotFoundResponseBody struct { // Name is the name of this class of errors. Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` // ID is a unique identifier for this particular occurrence of the problem. ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // Message is a human-readable explanation specific to this occurrence of the // problem. Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` // Is the error temporary? Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"` // Is the error a timeout? Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"` // Is the error a server-side fault? Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"` }
ListNotFoundResponseBody is the type of the "firmware" service "list" endpoint HTTP response body for the "not-found" error.
type ListResponseBody ¶
type ListResponseBody struct {
Firmwares FirmwareSummaryCollectionResponseBody `form:"firmwares,omitempty" json:"firmwares,omitempty" xml:"firmwares,omitempty"`
}
ListResponseBody is the type of the "firmware" service "list" endpoint HTTP response body.
type ListUnauthorizedResponseBody ¶
type ListUnauthorizedResponseBody struct { string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // problem. Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"` Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"` Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"` }Name *
ListUnauthorizedResponseBody is the type of the "firmware" service "list" endpoint HTTP response body for the "unauthorized" error.