Documentation ¶
Index ¶
- func NewFATEFlowClient(host string, port uint, https bool) *client
- type CommonResponse
- type ComponentTrackingCommonRequest
- type DataUploadRequest
- type HomoModelConversionRequest
- type HomoModelDeploymentRequest
- type JobSubmissionResponseData
- type ModelDeployRequest
- type ModelDeployResponseData
- type ModelInfo
- type TableInfo
- type TableSchema
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFATEFlowClient ¶
NewFATEFlowClient returns a fate flow client
Types ¶
type CommonResponse ¶
CommonResponse represents common response from FATE flow
type ComponentTrackingCommonRequest ¶
type ComponentTrackingCommonRequest struct { JobID string `json:"job_id"` PartyID uint `json:"party_id"` Role string `json:"role"` ComponentName string `json:"component_name"` }
ComponentTrackingCommonRequest is the request to query the metric of a component
type DataUploadRequest ¶
type DataUploadRequest struct { File string `json:"file"` Head int `json:"head"` Partition int `json:"partition"` Namespace string `json:"namespace"` TableName string `json:"table_name"` Drop int `json:"drop"` }
DataUploadRequest is the request to upload data
type HomoModelConversionRequest ¶
type HomoModelConversionRequest struct { ModelInfo PartyID uint `json:"party_id"` Role string `json:"role"` }
HomoModelConversionRequest is the request to convert a homo model
type HomoModelDeploymentRequest ¶
type HomoModelDeploymentRequest struct { HomoModelConversionRequest ServiceID string `json:"service_id"` ComponentName string `json:"component_name"` DeploymentType string `json:"deployment_type"` DeploymentParameters interface{} `json:"deployment_parameters"` }
HomoModelDeploymentRequest is the request to deploy a model to KFServing
type JobSubmissionResponseData ¶
type JobSubmissionResponseData struct {
ModelInfo ModelInfo `json:"model_info"`
}
JobSubmissionResponseData contains returned data of job submission response
type ModelDeployRequest ¶
ModelDeployRequest is the request to deploy a trained model
type ModelDeployResponseData ¶
type ModelDeployResponseData struct {
ModelInfo
}
ModelDeployResponseData contains returned data of model deploy response
type ModelInfo ¶
type ModelInfo struct { ModelID string `json:"model_id"` ModelVersion string `json:"model_version"` }
ModelInfo contains the key infos of a model
type TableInfo ¶
type TableInfo struct { Count int `json:"count"` Exist int `json:"partition"` Namespace string `json:"namespace"` TableName string `json:"table_name"` Schema TableSchema `json:"schema"` }
TableInfo is response data of the table info query api
type TableSchema ¶
TableSchema is schema description of the data table