Help us shape the future of Go! Take the 2026 Go Developer Survey

predict

package
v0.3.10 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2021 License: NCSA 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 predict API

func New

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

New creates a new predict API client.

func (*Client) Close

func (a *Client) Close(params *CloseParams) (*CloseOK, error)

Close closes a predictor clear it s memory

func (*Client) Dataset

func (a *Client) Dataset(params *DatasetParams) (*DatasetOK, error)

Dataset datasets method receives a single dataset and runs the predictor on all elements of the dataset the result is a prediction feature list

func (*Client) Images

func (a *Client) Images(params *ImagesParams) (*ImagesOK, error)

Images images method receives a list of base64 encoded images and runs the predictor on all the images the result is a prediction feature list for each image

func (*Client) Open

func (a *Client) Open(params *OpenParams) (*OpenOK, error)

Open opens a predictor and returns an id where the predictor is accessible the id can be used to perform inference requests

func (*Client) Reset

func (a *Client) Reset(params *ResetParams) (*ResetOK, error)

Reset resets method clears the internal cache of the predictors

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) URLs added in v0.3.0

func (a *Client) URLs(params *URLsParams) (*URLsOK, error)

URLs us r ls method receives a list of urls and runs the predictor on all the urls the result is a list of predicted features for all the urls

type CloseOK

type CloseOK struct {
	Payload *models.DlframeworkPredictorCloseResponse
}

CloseOK handles this case with default header values.

A successful response.

func NewCloseOK

func NewCloseOK() *CloseOK

NewCloseOK creates a CloseOK with default headers values

func (*CloseOK) Error

func (o *CloseOK) Error() string

type CloseParams

type CloseParams struct {

	/*Body*/
	Body *models.DlframeworkPredictorCloseRequest

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

CloseParams contains all the parameters to send to the API endpoint for the close operation typically these are written to a http.Request

func NewCloseParams

func NewCloseParams() *CloseParams

NewCloseParams creates a new CloseParams object with the default values initialized.

func NewCloseParamsWithContext

func NewCloseParamsWithContext(ctx context.Context) *CloseParams

NewCloseParamsWithContext creates a new CloseParams object with the default values initialized, and the ability to set a context for a request

func NewCloseParamsWithHTTPClient

func NewCloseParamsWithHTTPClient(client *http.Client) *CloseParams

NewCloseParamsWithHTTPClient creates a new CloseParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewCloseParamsWithTimeout

func NewCloseParamsWithTimeout(timeout time.Duration) *CloseParams

NewCloseParamsWithTimeout creates a new CloseParams object with the default values initialized, and the ability to set a timeout on a request

func (*CloseParams) SetBody

SetBody adds the body to the close params

func (*CloseParams) SetContext

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

SetContext adds the context to the close params

func (*CloseParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the close params

func (*CloseParams) SetTimeout

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

SetTimeout adds the timeout to the close params

func (*CloseParams) WithBody

WithBody adds the body to the close params

func (*CloseParams) WithContext

func (o *CloseParams) WithContext(ctx context.Context) *CloseParams

WithContext adds the context to the close params

func (*CloseParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the close params

func (*CloseParams) WithTimeout

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

WithTimeout adds the timeout to the close params

func (*CloseParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CloseReader

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

CloseReader is a Reader for the Close structure.

func (*CloseReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DatasetOK

type DatasetOK struct {
	Payload *models.DlframeworkFeaturesResponse
}

DatasetOK handles this case with default header values.

A successful response.

func NewDatasetOK

func NewDatasetOK() *DatasetOK

NewDatasetOK creates a DatasetOK with default headers values

func (*DatasetOK) Error

func (o *DatasetOK) Error() string

type DatasetParams

type DatasetParams struct {

	/*Body*/
	Body *models.DlframeworkDatasetRequest

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

DatasetParams contains all the parameters to send to the API endpoint for the dataset operation typically these are written to a http.Request

func NewDatasetParams

func NewDatasetParams() *DatasetParams

NewDatasetParams creates a new DatasetParams object with the default values initialized.

func NewDatasetParamsWithContext

func NewDatasetParamsWithContext(ctx context.Context) *DatasetParams

NewDatasetParamsWithContext creates a new DatasetParams object with the default values initialized, and the ability to set a context for a request

func NewDatasetParamsWithHTTPClient

func NewDatasetParamsWithHTTPClient(client *http.Client) *DatasetParams

NewDatasetParamsWithHTTPClient creates a new DatasetParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewDatasetParamsWithTimeout

func NewDatasetParamsWithTimeout(timeout time.Duration) *DatasetParams

NewDatasetParamsWithTimeout creates a new DatasetParams object with the default values initialized, and the ability to set a timeout on a request

func (*DatasetParams) SetBody

SetBody adds the body to the dataset params

func (*DatasetParams) SetContext

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

SetContext adds the context to the dataset params

func (*DatasetParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the dataset params

func (*DatasetParams) SetTimeout

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

SetTimeout adds the timeout to the dataset params

func (*DatasetParams) WithBody

WithBody adds the body to the dataset params

func (*DatasetParams) WithContext

func (o *DatasetParams) WithContext(ctx context.Context) *DatasetParams

WithContext adds the context to the dataset params

func (*DatasetParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the dataset params

func (*DatasetParams) WithTimeout

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

WithTimeout adds the timeout to the dataset params

func (*DatasetParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DatasetReader

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

DatasetReader is a Reader for the Dataset structure.

func (*DatasetReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ImagesOK

type ImagesOK struct {
	Payload *models.DlframeworkFeaturesResponse
}

ImagesOK handles this case with default header values.

A successful response.

func NewImagesOK

func NewImagesOK() *ImagesOK

NewImagesOK creates a ImagesOK with default headers values

func (*ImagesOK) Error

func (o *ImagesOK) Error() string

type ImagesParams

type ImagesParams struct {

	/*Body*/
	Body *models.DlframeworkImagesRequest

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

ImagesParams contains all the parameters to send to the API endpoint for the images operation typically these are written to a http.Request

func NewImagesParams

func NewImagesParams() *ImagesParams

NewImagesParams creates a new ImagesParams object with the default values initialized.

func NewImagesParamsWithContext

func NewImagesParamsWithContext(ctx context.Context) *ImagesParams

NewImagesParamsWithContext creates a new ImagesParams object with the default values initialized, and the ability to set a context for a request

func NewImagesParamsWithHTTPClient

func NewImagesParamsWithHTTPClient(client *http.Client) *ImagesParams

NewImagesParamsWithHTTPClient creates a new ImagesParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewImagesParamsWithTimeout

func NewImagesParamsWithTimeout(timeout time.Duration) *ImagesParams

NewImagesParamsWithTimeout creates a new ImagesParams object with the default values initialized, and the ability to set a timeout on a request

func (*ImagesParams) SetBody

func (o *ImagesParams) SetBody(body *models.DlframeworkImagesRequest)

SetBody adds the body to the images params

func (*ImagesParams) SetContext

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

SetContext adds the context to the images params

func (*ImagesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the images params

func (*ImagesParams) SetTimeout

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

SetTimeout adds the timeout to the images params

func (*ImagesParams) WithBody

WithBody adds the body to the images params

func (*ImagesParams) WithContext

func (o *ImagesParams) WithContext(ctx context.Context) *ImagesParams

WithContext adds the context to the images params

func (*ImagesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the images params

func (*ImagesParams) WithTimeout

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

WithTimeout adds the timeout to the images params

func (*ImagesParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ImagesReader

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

ImagesReader is a Reader for the Images structure.

func (*ImagesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type OpenOK

type OpenOK struct {
	Payload *models.DlframeworkPredictor
}

OpenOK handles this case with default header values.

A successful response.

func NewOpenOK

func NewOpenOK() *OpenOK

NewOpenOK creates a OpenOK with default headers values

func (*OpenOK) Error

func (o *OpenOK) Error() string

type OpenParams

type OpenParams struct {

	/*Body*/
	Body *models.DlframeworkPredictorOpenRequest

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

OpenParams contains all the parameters to send to the API endpoint for the open operation typically these are written to a http.Request

func NewOpenParams

func NewOpenParams() *OpenParams

NewOpenParams creates a new OpenParams object with the default values initialized.

func NewOpenParamsWithContext

func NewOpenParamsWithContext(ctx context.Context) *OpenParams

NewOpenParamsWithContext creates a new OpenParams object with the default values initialized, and the ability to set a context for a request

func NewOpenParamsWithHTTPClient

func NewOpenParamsWithHTTPClient(client *http.Client) *OpenParams

NewOpenParamsWithHTTPClient creates a new OpenParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewOpenParamsWithTimeout

func NewOpenParamsWithTimeout(timeout time.Duration) *OpenParams

NewOpenParamsWithTimeout creates a new OpenParams object with the default values initialized, and the ability to set a timeout on a request

func (*OpenParams) SetBody

SetBody adds the body to the open params

func (*OpenParams) SetContext

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

SetContext adds the context to the open params

func (*OpenParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the open params

func (*OpenParams) SetTimeout

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

SetTimeout adds the timeout to the open params

func (*OpenParams) WithBody

WithBody adds the body to the open params

func (*OpenParams) WithContext

func (o *OpenParams) WithContext(ctx context.Context) *OpenParams

WithContext adds the context to the open params

func (*OpenParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the open params

func (*OpenParams) WithTimeout

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

WithTimeout adds the timeout to the open params

func (*OpenParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type OpenReader

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

OpenReader is a Reader for the Open structure.

func (*OpenReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ResetOK

type ResetOK struct {
	Payload *models.DlframeworkResetResponse
}

ResetOK handles this case with default header values.

A successful response.

func NewResetOK

func NewResetOK() *ResetOK

NewResetOK creates a ResetOK with default headers values

func (*ResetOK) Error

func (o *ResetOK) Error() string

type ResetParams

type ResetParams struct {

	/*Body*/
	Body *models.DlframeworkResetRequest

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

ResetParams contains all the parameters to send to the API endpoint for the reset operation typically these are written to a http.Request

func NewResetParams

func NewResetParams() *ResetParams

NewResetParams creates a new ResetParams object with the default values initialized.

func NewResetParamsWithContext

func NewResetParamsWithContext(ctx context.Context) *ResetParams

NewResetParamsWithContext creates a new ResetParams object with the default values initialized, and the ability to set a context for a request

func NewResetParamsWithHTTPClient

func NewResetParamsWithHTTPClient(client *http.Client) *ResetParams

NewResetParamsWithHTTPClient creates a new ResetParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewResetParamsWithTimeout

func NewResetParamsWithTimeout(timeout time.Duration) *ResetParams

NewResetParamsWithTimeout creates a new ResetParams object with the default values initialized, and the ability to set a timeout on a request

func (*ResetParams) SetBody

func (o *ResetParams) SetBody(body *models.DlframeworkResetRequest)

SetBody adds the body to the reset params

func (*ResetParams) SetContext

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

SetContext adds the context to the reset params

func (*ResetParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the reset params

func (*ResetParams) SetTimeout

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

SetTimeout adds the timeout to the reset params

func (*ResetParams) WithBody

WithBody adds the body to the reset params

func (*ResetParams) WithContext

func (o *ResetParams) WithContext(ctx context.Context) *ResetParams

WithContext adds the context to the reset params

func (*ResetParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the reset params

func (*ResetParams) WithTimeout

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

WithTimeout adds the timeout to the reset params

func (*ResetParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ResetReader

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

ResetReader is a Reader for the Reset structure.

func (*ResetReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type URLsOK added in v0.3.0

type URLsOK struct {
	Payload *models.DlframeworkFeaturesResponse
}

URLsOK handles this case with default header values.

A successful response.

func NewURLsOK added in v0.3.0

func NewURLsOK() *URLsOK

NewURLsOK creates a URLsOK with default headers values

func (*URLsOK) Error added in v0.3.0

func (o *URLsOK) Error() string

type URLsParams added in v0.3.0

type URLsParams struct {

	/*Body*/
	Body *models.DlframeworkURLsRequest

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

URLsParams contains all the parameters to send to the API endpoint for the u r ls operation typically these are written to a http.Request

func NewURLsParams added in v0.3.0

func NewURLsParams() *URLsParams

NewURLsParams creates a new URLsParams object with the default values initialized.

func NewURLsParamsWithContext added in v0.3.0

func NewURLsParamsWithContext(ctx context.Context) *URLsParams

NewURLsParamsWithContext creates a new URLsParams object with the default values initialized, and the ability to set a context for a request

func NewURLsParamsWithHTTPClient added in v0.3.0

func NewURLsParamsWithHTTPClient(client *http.Client) *URLsParams

NewURLsParamsWithHTTPClient creates a new URLsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewURLsParamsWithTimeout added in v0.3.0

func NewURLsParamsWithTimeout(timeout time.Duration) *URLsParams

NewURLsParamsWithTimeout creates a new URLsParams object with the default values initialized, and the ability to set a timeout on a request

func (*URLsParams) SetBody added in v0.3.0

func (o *URLsParams) SetBody(body *models.DlframeworkURLsRequest)

SetBody adds the body to the u r ls params

func (*URLsParams) SetContext added in v0.3.0

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

SetContext adds the context to the u r ls params

func (*URLsParams) SetHTTPClient added in v0.3.0

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

SetHTTPClient adds the HTTPClient to the u r ls params

func (*URLsParams) SetTimeout added in v0.3.0

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

SetTimeout adds the timeout to the u r ls params

func (*URLsParams) WithBody added in v0.3.0

func (o *URLsParams) WithBody(body *models.DlframeworkURLsRequest) *URLsParams

WithBody adds the body to the u r ls params

func (*URLsParams) WithContext added in v0.3.0

func (o *URLsParams) WithContext(ctx context.Context) *URLsParams

WithContext adds the context to the u r ls params

func (*URLsParams) WithHTTPClient added in v0.3.0

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

WithHTTPClient adds the HTTPClient to the u r ls params

func (*URLsParams) WithTimeout added in v0.3.0

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

WithTimeout adds the timeout to the u r ls params

func (*URLsParams) WriteToRequest added in v0.3.0

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

WriteToRequest writes these params to a swagger request

type URLsReader added in v0.3.0

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

URLsReader is a Reader for the URLs structure.

func (*URLsReader) ReadResponse added in v0.3.0

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

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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