Documentation ¶
Index ¶
- type Client
- func (a *Client) DeleteComponent(params *DeleteComponentParams, authInfo runtime.ClientAuthInfoWriter, ...) error
- func (a *Client) GetComponentByUUID(params *GetComponentByUUIDParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetComponentByUUIDOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type DeleteComponentForbidden
- type DeleteComponentNotFound
- type DeleteComponentParams
- func NewDeleteComponentParams() *DeleteComponentParams
- func NewDeleteComponentParamsWithContext(ctx context.Context) *DeleteComponentParams
- func NewDeleteComponentParamsWithHTTPClient(client *http.Client) *DeleteComponentParams
- func NewDeleteComponentParamsWithTimeout(timeout time.Duration) *DeleteComponentParams
- func (o *DeleteComponentParams) SetContext(ctx context.Context)
- func (o *DeleteComponentParams) SetDefaults()
- func (o *DeleteComponentParams) SetHTTPClient(client *http.Client)
- func (o *DeleteComponentParams) SetTimeout(timeout time.Duration)
- func (o *DeleteComponentParams) SetUUID(uuid string)
- func (o *DeleteComponentParams) WithContext(ctx context.Context) *DeleteComponentParams
- func (o *DeleteComponentParams) WithDefaults() *DeleteComponentParams
- func (o *DeleteComponentParams) WithHTTPClient(client *http.Client) *DeleteComponentParams
- func (o *DeleteComponentParams) WithTimeout(timeout time.Duration) *DeleteComponentParams
- func (o *DeleteComponentParams) WithUUID(uuid string) *DeleteComponentParams
- func (o *DeleteComponentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteComponentReader
- type DeleteComponentUnauthorized
- type GetComponentByUUIDForbidden
- type GetComponentByUUIDNotFound
- type GetComponentByUUIDOK
- type GetComponentByUUIDParams
- func NewGetComponentByUUIDParams() *GetComponentByUUIDParams
- func NewGetComponentByUUIDParamsWithContext(ctx context.Context) *GetComponentByUUIDParams
- func NewGetComponentByUUIDParamsWithHTTPClient(client *http.Client) *GetComponentByUUIDParams
- func NewGetComponentByUUIDParamsWithTimeout(timeout time.Duration) *GetComponentByUUIDParams
- func (o *GetComponentByUUIDParams) SetContext(ctx context.Context)
- func (o *GetComponentByUUIDParams) SetDefaults()
- func (o *GetComponentByUUIDParams) SetHTTPClient(client *http.Client)
- func (o *GetComponentByUUIDParams) SetTimeout(timeout time.Duration)
- func (o *GetComponentByUUIDParams) SetUUID(uuid string)
- func (o *GetComponentByUUIDParams) WithContext(ctx context.Context) *GetComponentByUUIDParams
- func (o *GetComponentByUUIDParams) WithDefaults() *GetComponentByUUIDParams
- func (o *GetComponentByUUIDParams) WithHTTPClient(client *http.Client) *GetComponentByUUIDParams
- func (o *GetComponentByUUIDParams) WithTimeout(timeout time.Duration) *GetComponentByUUIDParams
- func (o *GetComponentByUUIDParams) WithUUID(uuid string) *GetComponentByUUIDParams
- func (o *GetComponentByUUIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetComponentByUUIDReader
- type GetComponentByUUIDUnauthorized
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 ¶
func (o *DeleteComponentParams) WithContext(ctx context.Context) *DeleteComponentParams
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 ¶
func (o *DeleteComponentParams) WithUUID(uuid string) *DeleteComponentParams
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 ¶
func (o *DeleteComponentUnauthorized) Error() string
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 ¶
func (o *GetComponentByUUIDForbidden) Error() string
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 ¶
func (o *GetComponentByUUIDNotFound) Error() string
type GetComponentByUUIDOK ¶
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 ¶
func (o *GetComponentByUUIDParams) WithContext(ctx context.Context) *GetComponentByUUIDParams
WithContext adds the context to the get component by Uuid params
func (*GetComponentByUUIDParams) WithDefaults ¶
func (o *GetComponentByUUIDParams) WithDefaults() *GetComponentByUUIDParams
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 ¶
func (o *GetComponentByUUIDParams) WithTimeout(timeout time.Duration) *GetComponentByUUIDParams
WithTimeout adds the timeout to the get component by Uuid params
func (*GetComponentByUUIDParams) WithUUID ¶
func (o *GetComponentByUUIDParams) WithUUID(uuid string) *GetComponentByUUIDParams
WithUUID adds the uuid to the get component by Uuid params
func (*GetComponentByUUIDParams) WriteToRequest ¶
func (o *GetComponentByUUIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *GetComponentByUUIDUnauthorized) Error() string