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

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client

New creates a new catalog API client.

func (*Client) GetCatalogs

func (a *Client) GetCatalogs(params *GetCatalogsParams, authInfo runtime.ClientAuthInfoWriter) (*GetCatalogsOK, error)

GetCatalogs gets list of all catalogs

The catalogs endpoint returns json data that represent the catalogs of all hardware in the system.

func (*Client) GetCatalogsIdentifier

func (a *Client) GetCatalogsIdentifier(params *GetCatalogsIdentifierParams, authInfo runtime.ClientAuthInfoWriter) (*GetCatalogsIdentifierOK, error)

GetCatalogsIdentifier gets list of all catalogs

The catalogs endpoint returns json data that represent the catalogs of all hardware in the system.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type GetCatalogsDefault

type GetCatalogsDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}

GetCatalogsDefault handles this case with default header values.

Unexpected error

func NewGetCatalogsDefault

func NewGetCatalogsDefault(code int) *GetCatalogsDefault

NewGetCatalogsDefault creates a GetCatalogsDefault with default headers values

func (*GetCatalogsDefault) Code

func (o *GetCatalogsDefault) Code() int

Code gets the status code for the get catalogs default response

func (*GetCatalogsDefault) Error

func (o *GetCatalogsDefault) Error() string

type GetCatalogsIdentifierDefault

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

GetCatalogsIdentifierDefault handles this case with default header values.

NotFound error

func NewGetCatalogsIdentifierDefault

func NewGetCatalogsIdentifierDefault(code int) *GetCatalogsIdentifierDefault

NewGetCatalogsIdentifierDefault creates a GetCatalogsIdentifierDefault with default headers values

func (*GetCatalogsIdentifierDefault) Code

func (o *GetCatalogsIdentifierDefault) Code() int

Code gets the status code for the get catalogs identifier default response

func (*GetCatalogsIdentifierDefault) Error

func (o *GetCatalogsIdentifierDefault) Error() string

type GetCatalogsIdentifierOK

type GetCatalogsIdentifierOK struct {
	Payload *models.Catalog
}

GetCatalogsIdentifierOK handles this case with default header values.

A single catalog

func NewGetCatalogsIdentifierOK

func NewGetCatalogsIdentifierOK() *GetCatalogsIdentifierOK

NewGetCatalogsIdentifierOK creates a GetCatalogsIdentifierOK with default headers values

func (*GetCatalogsIdentifierOK) Error

func (o *GetCatalogsIdentifierOK) Error() string

type GetCatalogsIdentifierParams

type GetCatalogsIdentifierParams struct {

	/*Identifier
	  identifier of a catalog

	*/
	Identifier string
}

GetCatalogsIdentifierParams contains all the parameters to send to the API endpoint for the get catalogs identifier operation typically these are written to a http.Request

func NewGetCatalogsIdentifierParams

func NewGetCatalogsIdentifierParams() *GetCatalogsIdentifierParams

NewGetCatalogsIdentifierParams creates a new GetCatalogsIdentifierParams object with the default values initialized.

func (*GetCatalogsIdentifierParams) WithIdentifier

func (o *GetCatalogsIdentifierParams) WithIdentifier(Identifier string) *GetCatalogsIdentifierParams

WithIdentifier adds the identifier to the get catalogs identifier params

func (*GetCatalogsIdentifierParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetCatalogsIdentifierReader

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

GetCatalogsIdentifierReader is a Reader for the GetCatalogsIdentifier structure.

func (*GetCatalogsIdentifierReader) ReadResponse

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

ReadResponse reads a server response into the recieved o.

type GetCatalogsOK

type GetCatalogsOK struct {
	Payload []*models.Catalog
}

GetCatalogsOK handles this case with default header values.

An array of catalogs

func NewGetCatalogsOK

func NewGetCatalogsOK() *GetCatalogsOK

NewGetCatalogsOK creates a GetCatalogsOK with default headers values

func (*GetCatalogsOK) Error

func (o *GetCatalogsOK) Error() string

type GetCatalogsParams

type GetCatalogsParams struct {

	/*Query
	  query object to pass through to waterline.

	*/
	Query *string
}

GetCatalogsParams contains all the parameters to send to the API endpoint for the get catalogs operation typically these are written to a http.Request

func NewGetCatalogsParams

func NewGetCatalogsParams() *GetCatalogsParams

NewGetCatalogsParams creates a new GetCatalogsParams object with the default values initialized.

func (*GetCatalogsParams) WithQuery

func (o *GetCatalogsParams) WithQuery(Query *string) *GetCatalogsParams

WithQuery adds the query to the get catalogs params

func (*GetCatalogsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetCatalogsReader

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

GetCatalogsReader is a Reader for the GetCatalogs structure.

func (*GetCatalogsReader) ReadResponse

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

ReadResponse reads a server response into the recieved o.