fateclient

package
v0.0.0-...-a23f117 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFATEFlowClient

func NewFATEFlowClient(host string, port uint, https bool) *client

NewFATEFlowClient returns a fate flow client

Types

type CommonResponse

type CommonResponse struct {
	RetCode int    `json:"retcode"`
	RetMsg  string `json:"retmsg"`
}

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

type ModelDeployRequest struct {
	ModelInfo
	ComponentList []string `json:"cpn_list"`
}

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

type TableSchema struct {
	Header string `json:"header"`
	Sid    string `json:"sid"`
}

TableSchema is schema description of the data table

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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