Documentation
¶
Index ¶
- type ClassificationsGetForbidden
- type ClassificationsGetInternalServerError
- type ClassificationsGetNotFound
- type ClassificationsGetOK
- type ClassificationsGetParams
- func NewClassificationsGetParams() *ClassificationsGetParams
- func NewClassificationsGetParamsWithContext(ctx context.Context) *ClassificationsGetParams
- func NewClassificationsGetParamsWithHTTPClient(client *http.Client) *ClassificationsGetParams
- func NewClassificationsGetParamsWithTimeout(timeout time.Duration) *ClassificationsGetParams
- func (o *ClassificationsGetParams) SetContext(ctx context.Context)
- func (o *ClassificationsGetParams) SetHTTPClient(client *http.Client)
- func (o *ClassificationsGetParams) SetID(id string)
- func (o *ClassificationsGetParams) SetTimeout(timeout time.Duration)
- func (o *ClassificationsGetParams) WithContext(ctx context.Context) *ClassificationsGetParams
- func (o *ClassificationsGetParams) WithHTTPClient(client *http.Client) *ClassificationsGetParams
- func (o *ClassificationsGetParams) WithID(id string) *ClassificationsGetParams
- func (o *ClassificationsGetParams) WithTimeout(timeout time.Duration) *ClassificationsGetParams
- func (o *ClassificationsGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ClassificationsGetReader
- type ClassificationsGetUnauthorized
- type ClassificationsPostBadRequest
- type ClassificationsPostCreated
- type ClassificationsPostForbidden
- type ClassificationsPostInternalServerError
- type ClassificationsPostParams
- func NewClassificationsPostParams() *ClassificationsPostParams
- func NewClassificationsPostParamsWithContext(ctx context.Context) *ClassificationsPostParams
- func NewClassificationsPostParamsWithHTTPClient(client *http.Client) *ClassificationsPostParams
- func NewClassificationsPostParamsWithTimeout(timeout time.Duration) *ClassificationsPostParams
- func (o *ClassificationsPostParams) SetContext(ctx context.Context)
- func (o *ClassificationsPostParams) SetHTTPClient(client *http.Client)
- func (o *ClassificationsPostParams) SetParams(params *models.Classification)
- func (o *ClassificationsPostParams) SetTimeout(timeout time.Duration)
- func (o *ClassificationsPostParams) WithContext(ctx context.Context) *ClassificationsPostParams
- func (o *ClassificationsPostParams) WithHTTPClient(client *http.Client) *ClassificationsPostParams
- func (o *ClassificationsPostParams) WithParams(params *models.Classification) *ClassificationsPostParams
- func (o *ClassificationsPostParams) WithTimeout(timeout time.Duration) *ClassificationsPostParams
- func (o *ClassificationsPostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ClassificationsPostReader
- type ClassificationsPostUnauthorized
- type Client
- func (a *Client) ClassificationsGet(params *ClassificationsGetParams, authInfo runtime.ClientAuthInfoWriter) (*ClassificationsGetOK, error)
- func (a *Client) ClassificationsPost(params *ClassificationsPostParams, authInfo runtime.ClientAuthInfoWriter) (*ClassificationsPostCreated, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClassificationsGetForbidden ¶
type ClassificationsGetForbidden struct {
Payload *models.ErrorResponse
}
ClassificationsGetForbidden handles this case with default header values.
Forbidden
func NewClassificationsGetForbidden ¶
func NewClassificationsGetForbidden() *ClassificationsGetForbidden
NewClassificationsGetForbidden creates a ClassificationsGetForbidden with default headers values
func (*ClassificationsGetForbidden) Error ¶
func (o *ClassificationsGetForbidden) Error() string
func (*ClassificationsGetForbidden) GetPayload ¶
func (o *ClassificationsGetForbidden) GetPayload() *models.ErrorResponse
type ClassificationsGetInternalServerError ¶
type ClassificationsGetInternalServerError struct {
Payload *models.ErrorResponse
}
ClassificationsGetInternalServerError handles this case with default header values.
An error has occurred while trying to fulfill the request. Most likely the ErrorResponse will contain more information about the error.
func NewClassificationsGetInternalServerError ¶
func NewClassificationsGetInternalServerError() *ClassificationsGetInternalServerError
NewClassificationsGetInternalServerError creates a ClassificationsGetInternalServerError with default headers values
func (*ClassificationsGetInternalServerError) Error ¶
func (o *ClassificationsGetInternalServerError) Error() string
func (*ClassificationsGetInternalServerError) GetPayload ¶
func (o *ClassificationsGetInternalServerError) GetPayload() *models.ErrorResponse
type ClassificationsGetNotFound ¶
type ClassificationsGetNotFound struct { }
ClassificationsGetNotFound handles this case with default header values.
Not Found - Classification does not exist
func NewClassificationsGetNotFound ¶
func NewClassificationsGetNotFound() *ClassificationsGetNotFound
NewClassificationsGetNotFound creates a ClassificationsGetNotFound with default headers values
func (*ClassificationsGetNotFound) Error ¶
func (o *ClassificationsGetNotFound) Error() string
type ClassificationsGetOK ¶
type ClassificationsGetOK struct {
Payload *models.Classification
}
ClassificationsGetOK handles this case with default header values.
Found the classification, returned as body
func NewClassificationsGetOK ¶
func NewClassificationsGetOK() *ClassificationsGetOK
NewClassificationsGetOK creates a ClassificationsGetOK with default headers values
func (*ClassificationsGetOK) Error ¶
func (o *ClassificationsGetOK) Error() string
func (*ClassificationsGetOK) GetPayload ¶
func (o *ClassificationsGetOK) GetPayload() *models.Classification
type ClassificationsGetParams ¶
type ClassificationsGetParams struct { /*ID classification id */ ID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ClassificationsGetParams contains all the parameters to send to the API endpoint for the classifications get operation typically these are written to a http.Request
func NewClassificationsGetParams ¶
func NewClassificationsGetParams() *ClassificationsGetParams
NewClassificationsGetParams creates a new ClassificationsGetParams object with the default values initialized.
func NewClassificationsGetParamsWithContext ¶
func NewClassificationsGetParamsWithContext(ctx context.Context) *ClassificationsGetParams
NewClassificationsGetParamsWithContext creates a new ClassificationsGetParams object with the default values initialized, and the ability to set a context for a request
func NewClassificationsGetParamsWithHTTPClient ¶
func NewClassificationsGetParamsWithHTTPClient(client *http.Client) *ClassificationsGetParams
NewClassificationsGetParamsWithHTTPClient creates a new ClassificationsGetParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewClassificationsGetParamsWithTimeout ¶
func NewClassificationsGetParamsWithTimeout(timeout time.Duration) *ClassificationsGetParams
NewClassificationsGetParamsWithTimeout creates a new ClassificationsGetParams object with the default values initialized, and the ability to set a timeout on a request
func (*ClassificationsGetParams) SetContext ¶
func (o *ClassificationsGetParams) SetContext(ctx context.Context)
SetContext adds the context to the classifications get params
func (*ClassificationsGetParams) SetHTTPClient ¶
func (o *ClassificationsGetParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the classifications get params
func (*ClassificationsGetParams) SetID ¶
func (o *ClassificationsGetParams) SetID(id string)
SetID adds the id to the classifications get params
func (*ClassificationsGetParams) SetTimeout ¶
func (o *ClassificationsGetParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the classifications get params
func (*ClassificationsGetParams) WithContext ¶
func (o *ClassificationsGetParams) WithContext(ctx context.Context) *ClassificationsGetParams
WithContext adds the context to the classifications get params
func (*ClassificationsGetParams) WithHTTPClient ¶
func (o *ClassificationsGetParams) WithHTTPClient(client *http.Client) *ClassificationsGetParams
WithHTTPClient adds the HTTPClient to the classifications get params
func (*ClassificationsGetParams) WithID ¶
func (o *ClassificationsGetParams) WithID(id string) *ClassificationsGetParams
WithID adds the id to the classifications get params
func (*ClassificationsGetParams) WithTimeout ¶
func (o *ClassificationsGetParams) WithTimeout(timeout time.Duration) *ClassificationsGetParams
WithTimeout adds the timeout to the classifications get params
func (*ClassificationsGetParams) WriteToRequest ¶
func (o *ClassificationsGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ClassificationsGetReader ¶
type ClassificationsGetReader struct {
// contains filtered or unexported fields
}
ClassificationsGetReader is a Reader for the ClassificationsGet structure.
func (*ClassificationsGetReader) ReadResponse ¶
func (o *ClassificationsGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ClassificationsGetUnauthorized ¶
type ClassificationsGetUnauthorized struct { }
ClassificationsGetUnauthorized handles this case with default header values.
Unauthorized or invalid credentials.
func NewClassificationsGetUnauthorized ¶
func NewClassificationsGetUnauthorized() *ClassificationsGetUnauthorized
NewClassificationsGetUnauthorized creates a ClassificationsGetUnauthorized with default headers values
func (*ClassificationsGetUnauthorized) Error ¶
func (o *ClassificationsGetUnauthorized) Error() string
type ClassificationsPostBadRequest ¶
type ClassificationsPostBadRequest struct {
Payload *models.ErrorResponse
}
ClassificationsPostBadRequest handles this case with default header values.
Incorrect request
func NewClassificationsPostBadRequest ¶
func NewClassificationsPostBadRequest() *ClassificationsPostBadRequest
NewClassificationsPostBadRequest creates a ClassificationsPostBadRequest with default headers values
func (*ClassificationsPostBadRequest) Error ¶
func (o *ClassificationsPostBadRequest) Error() string
func (*ClassificationsPostBadRequest) GetPayload ¶
func (o *ClassificationsPostBadRequest) GetPayload() *models.ErrorResponse
type ClassificationsPostCreated ¶
type ClassificationsPostCreated struct {
Payload *models.Classification
}
ClassificationsPostCreated handles this case with default header values.
Successfully started classification.
func NewClassificationsPostCreated ¶
func NewClassificationsPostCreated() *ClassificationsPostCreated
NewClassificationsPostCreated creates a ClassificationsPostCreated with default headers values
func (*ClassificationsPostCreated) Error ¶
func (o *ClassificationsPostCreated) Error() string
func (*ClassificationsPostCreated) GetPayload ¶
func (o *ClassificationsPostCreated) GetPayload() *models.Classification
type ClassificationsPostForbidden ¶
type ClassificationsPostForbidden struct {
Payload *models.ErrorResponse
}
ClassificationsPostForbidden handles this case with default header values.
Forbidden
func NewClassificationsPostForbidden ¶
func NewClassificationsPostForbidden() *ClassificationsPostForbidden
NewClassificationsPostForbidden creates a ClassificationsPostForbidden with default headers values
func (*ClassificationsPostForbidden) Error ¶
func (o *ClassificationsPostForbidden) Error() string
func (*ClassificationsPostForbidden) GetPayload ¶
func (o *ClassificationsPostForbidden) GetPayload() *models.ErrorResponse
type ClassificationsPostInternalServerError ¶
type ClassificationsPostInternalServerError struct {
Payload *models.ErrorResponse
}
ClassificationsPostInternalServerError handles this case with default header values.
An error has occurred while trying to fulfill the request. Most likely the ErrorResponse will contain more information about the error.
func NewClassificationsPostInternalServerError ¶
func NewClassificationsPostInternalServerError() *ClassificationsPostInternalServerError
NewClassificationsPostInternalServerError creates a ClassificationsPostInternalServerError with default headers values
func (*ClassificationsPostInternalServerError) Error ¶
func (o *ClassificationsPostInternalServerError) Error() string
func (*ClassificationsPostInternalServerError) GetPayload ¶
func (o *ClassificationsPostInternalServerError) GetPayload() *models.ErrorResponse
type ClassificationsPostParams ¶
type ClassificationsPostParams struct { /*Params parameters to start a classification */ Params *models.Classification Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ClassificationsPostParams contains all the parameters to send to the API endpoint for the classifications post operation typically these are written to a http.Request
func NewClassificationsPostParams ¶
func NewClassificationsPostParams() *ClassificationsPostParams
NewClassificationsPostParams creates a new ClassificationsPostParams object with the default values initialized.
func NewClassificationsPostParamsWithContext ¶
func NewClassificationsPostParamsWithContext(ctx context.Context) *ClassificationsPostParams
NewClassificationsPostParamsWithContext creates a new ClassificationsPostParams object with the default values initialized, and the ability to set a context for a request
func NewClassificationsPostParamsWithHTTPClient ¶
func NewClassificationsPostParamsWithHTTPClient(client *http.Client) *ClassificationsPostParams
NewClassificationsPostParamsWithHTTPClient creates a new ClassificationsPostParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewClassificationsPostParamsWithTimeout ¶
func NewClassificationsPostParamsWithTimeout(timeout time.Duration) *ClassificationsPostParams
NewClassificationsPostParamsWithTimeout creates a new ClassificationsPostParams object with the default values initialized, and the ability to set a timeout on a request
func (*ClassificationsPostParams) SetContext ¶
func (o *ClassificationsPostParams) SetContext(ctx context.Context)
SetContext adds the context to the classifications post params
func (*ClassificationsPostParams) SetHTTPClient ¶
func (o *ClassificationsPostParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the classifications post params
func (*ClassificationsPostParams) SetParams ¶
func (o *ClassificationsPostParams) SetParams(params *models.Classification)
SetParams adds the params to the classifications post params
func (*ClassificationsPostParams) SetTimeout ¶
func (o *ClassificationsPostParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the classifications post params
func (*ClassificationsPostParams) WithContext ¶
func (o *ClassificationsPostParams) WithContext(ctx context.Context) *ClassificationsPostParams
WithContext adds the context to the classifications post params
func (*ClassificationsPostParams) WithHTTPClient ¶
func (o *ClassificationsPostParams) WithHTTPClient(client *http.Client) *ClassificationsPostParams
WithHTTPClient adds the HTTPClient to the classifications post params
func (*ClassificationsPostParams) WithParams ¶
func (o *ClassificationsPostParams) WithParams(params *models.Classification) *ClassificationsPostParams
WithParams adds the params to the classifications post params
func (*ClassificationsPostParams) WithTimeout ¶
func (o *ClassificationsPostParams) WithTimeout(timeout time.Duration) *ClassificationsPostParams
WithTimeout adds the timeout to the classifications post params
func (*ClassificationsPostParams) WriteToRequest ¶
func (o *ClassificationsPostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ClassificationsPostReader ¶
type ClassificationsPostReader struct {
// contains filtered or unexported fields
}
ClassificationsPostReader is a Reader for the ClassificationsPost structure.
func (*ClassificationsPostReader) ReadResponse ¶
func (o *ClassificationsPostReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ClassificationsPostUnauthorized ¶
type ClassificationsPostUnauthorized struct { }
ClassificationsPostUnauthorized handles this case with default header values.
Unauthorized or invalid credentials.
func NewClassificationsPostUnauthorized ¶
func NewClassificationsPostUnauthorized() *ClassificationsPostUnauthorized
NewClassificationsPostUnauthorized creates a ClassificationsPostUnauthorized with default headers values
func (*ClassificationsPostUnauthorized) Error ¶
func (o *ClassificationsPostUnauthorized) Error() string
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for classifications API
func (*Client) ClassificationsGet ¶
func (a *Client) ClassificationsGet(params *ClassificationsGetParams, authInfo runtime.ClientAuthInfoWriter) (*ClassificationsGetOK, error)
ClassificationsGet views previously created classification
Get status, results and metadata of a previously created classification
func (*Client) ClassificationsPost ¶
func (a *Client) ClassificationsPost(params *ClassificationsPostParams, authInfo runtime.ClientAuthInfoWriter) (*ClassificationsPostCreated, error)
ClassificationsPost starts a classification
Trigger a classification based on the specified params. Classifications will run in the background, use GET /classifications/<id> to retrieve the status of your classification.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientService ¶
type ClientService interface { ClassificationsGet(params *ClassificationsGetParams, authInfo runtime.ClientAuthInfoWriter) (*ClassificationsGetOK, error) ClassificationsPost(params *ClassificationsPostParams, authInfo runtime.ClientAuthInfoWriter) (*ClassificationsPostCreated, 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 classifications API client.