component

package
v2.7.2 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for component API

func (*Client) DeleteComponent

func (a *Client) DeleteComponent(params *DeleteComponentParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) error

DeleteComponent deletes a component

func (*Client) GetComponentByUUID

func (a *Client) GetComponentByUUID(params *GetComponentByUUIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetComponentByUUIDOK, error)

GetComponentByUUID returns a specific component

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	DeleteComponent(params *DeleteComponentParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) error

	GetComponentByUUID(params *GetComponentByUUIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetComponentByUUIDOK, 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 component API client.

type DeleteComponentForbidden

type DeleteComponentForbidden struct {
}
DeleteComponentForbidden describes a response with status code 403, with default header values.

Access to the specified component is forbidden

func NewDeleteComponentForbidden

func NewDeleteComponentForbidden() *DeleteComponentForbidden

NewDeleteComponentForbidden creates a DeleteComponentForbidden with default headers values

func (*DeleteComponentForbidden) Error

func (o *DeleteComponentForbidden) Error() string

type DeleteComponentNotFound

type DeleteComponentNotFound struct {
}
DeleteComponentNotFound describes a response with status code 404, with default header values.

The UUID of the component could not be found

func NewDeleteComponentNotFound

func NewDeleteComponentNotFound() *DeleteComponentNotFound

NewDeleteComponentNotFound creates a DeleteComponentNotFound with default headers values

func (*DeleteComponentNotFound) Error

func (o *DeleteComponentNotFound) Error() string

type DeleteComponentParams

type DeleteComponentParams struct {

	/* UUID.

	   The UUID of the component to delete
	*/
	UUID string

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

DeleteComponentParams contains all the parameters to send to the API endpoint

for the delete component operation.

Typically these are written to a http.Request.

func NewDeleteComponentParams

func NewDeleteComponentParams() *DeleteComponentParams

NewDeleteComponentParams creates a new DeleteComponentParams 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 NewDeleteComponentParamsWithContext

func NewDeleteComponentParamsWithContext(ctx context.Context) *DeleteComponentParams

NewDeleteComponentParamsWithContext creates a new DeleteComponentParams object with the ability to set a context for a request.

func NewDeleteComponentParamsWithHTTPClient

func NewDeleteComponentParamsWithHTTPClient(client *http.Client) *DeleteComponentParams

NewDeleteComponentParamsWithHTTPClient creates a new DeleteComponentParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteComponentParamsWithTimeout

func NewDeleteComponentParamsWithTimeout(timeout time.Duration) *DeleteComponentParams

NewDeleteComponentParamsWithTimeout creates a new DeleteComponentParams object with the ability to set a timeout on a request.

func (*DeleteComponentParams) SetContext

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

SetContext adds the context to the delete component params

func (*DeleteComponentParams) SetDefaults

func (o *DeleteComponentParams) SetDefaults()

SetDefaults hydrates default values in the delete component params (not the query body).

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

func (*DeleteComponentParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete component params

func (*DeleteComponentParams) SetTimeout

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

SetTimeout adds the timeout to the delete component params

func (*DeleteComponentParams) SetUUID

func (o *DeleteComponentParams) SetUUID(uuid string)

SetUUID adds the uuid to the delete component params

func (*DeleteComponentParams) WithContext

WithContext adds the context to the delete component params

func (*DeleteComponentParams) WithDefaults

func (o *DeleteComponentParams) WithDefaults() *DeleteComponentParams

WithDefaults hydrates default values in the delete component params (not the query body).

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

func (*DeleteComponentParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete component params

func (*DeleteComponentParams) WithTimeout

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

WithTimeout adds the timeout to the delete component params

func (*DeleteComponentParams) WithUUID

WithUUID adds the uuid to the delete component params

func (*DeleteComponentParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteComponentReader

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

DeleteComponentReader is a Reader for the DeleteComponent structure.

func (*DeleteComponentReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteComponentUnauthorized

type DeleteComponentUnauthorized struct {
}
DeleteComponentUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewDeleteComponentUnauthorized

func NewDeleteComponentUnauthorized() *DeleteComponentUnauthorized

NewDeleteComponentUnauthorized creates a DeleteComponentUnauthorized with default headers values

func (*DeleteComponentUnauthorized) Error

type GetComponentByUUIDForbidden

type GetComponentByUUIDForbidden struct {
}
GetComponentByUUIDForbidden describes a response with status code 403, with default header values.

Access to the specified component is forbidden

func NewGetComponentByUUIDForbidden

func NewGetComponentByUUIDForbidden() *GetComponentByUUIDForbidden

NewGetComponentByUUIDForbidden creates a GetComponentByUUIDForbidden with default headers values

func (*GetComponentByUUIDForbidden) Error

type GetComponentByUUIDNotFound

type GetComponentByUUIDNotFound struct {
}
GetComponentByUUIDNotFound describes a response with status code 404, with default header values.

The component could not be found

func NewGetComponentByUUIDNotFound

func NewGetComponentByUUIDNotFound() *GetComponentByUUIDNotFound

NewGetComponentByUUIDNotFound creates a GetComponentByUUIDNotFound with default headers values

func (*GetComponentByUUIDNotFound) Error

type GetComponentByUUIDOK

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

successful operation

func NewGetComponentByUUIDOK

func NewGetComponentByUUIDOK() *GetComponentByUUIDOK

NewGetComponentByUUIDOK creates a GetComponentByUUIDOK with default headers values

func (*GetComponentByUUIDOK) Error

func (o *GetComponentByUUIDOK) Error() string

func (*GetComponentByUUIDOK) GetPayload

func (o *GetComponentByUUIDOK) GetPayload() *models.Component

type GetComponentByUUIDParams

type GetComponentByUUIDParams struct {

	/* UUID.

	   The UUID of the component to retrieve
	*/
	UUID string

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

GetComponentByUUIDParams contains all the parameters to send to the API endpoint

for the get component by Uuid operation.

Typically these are written to a http.Request.

func NewGetComponentByUUIDParams

func NewGetComponentByUUIDParams() *GetComponentByUUIDParams

NewGetComponentByUUIDParams creates a new GetComponentByUUIDParams 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 NewGetComponentByUUIDParamsWithContext

func NewGetComponentByUUIDParamsWithContext(ctx context.Context) *GetComponentByUUIDParams

NewGetComponentByUUIDParamsWithContext creates a new GetComponentByUUIDParams object with the ability to set a context for a request.

func NewGetComponentByUUIDParamsWithHTTPClient

func NewGetComponentByUUIDParamsWithHTTPClient(client *http.Client) *GetComponentByUUIDParams

NewGetComponentByUUIDParamsWithHTTPClient creates a new GetComponentByUUIDParams object with the ability to set a custom HTTPClient for a request.

func NewGetComponentByUUIDParamsWithTimeout

func NewGetComponentByUUIDParamsWithTimeout(timeout time.Duration) *GetComponentByUUIDParams

NewGetComponentByUUIDParamsWithTimeout creates a new GetComponentByUUIDParams object with the ability to set a timeout on a request.

func (*GetComponentByUUIDParams) SetContext

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

SetContext adds the context to the get component by Uuid params

func (*GetComponentByUUIDParams) SetDefaults

func (o *GetComponentByUUIDParams) SetDefaults()

SetDefaults hydrates default values in the get component by Uuid params (not the query body).

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

func (*GetComponentByUUIDParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get component by Uuid params

func (*GetComponentByUUIDParams) SetTimeout

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

SetTimeout adds the timeout to the get component by Uuid params

func (*GetComponentByUUIDParams) SetUUID

func (o *GetComponentByUUIDParams) SetUUID(uuid string)

SetUUID adds the uuid to the get component by Uuid params

func (*GetComponentByUUIDParams) WithContext

WithContext adds the context to the get component by Uuid params

func (*GetComponentByUUIDParams) WithDefaults

WithDefaults hydrates default values in the get component by Uuid params (not the query body).

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

func (*GetComponentByUUIDParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get component by Uuid params

func (*GetComponentByUUIDParams) WithTimeout

WithTimeout adds the timeout to the get component by Uuid params

func (*GetComponentByUUIDParams) WithUUID

WithUUID adds the uuid to the get component by Uuid params

func (*GetComponentByUUIDParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetComponentByUUIDReader

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

GetComponentByUUIDReader is a Reader for the GetComponentByUUID structure.

func (*GetComponentByUUIDReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetComponentByUUIDUnauthorized

type GetComponentByUUIDUnauthorized struct {
}
GetComponentByUUIDUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewGetComponentByUUIDUnauthorized

func NewGetComponentByUUIDUnauthorized() *GetComponentByUUIDUnauthorized

NewGetComponentByUUIDUnauthorized creates a GetComponentByUUIDUnauthorized with default headers values

func (*GetComponentByUUIDUnauthorized) Error

Jump to

Keyboard shortcuts

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