Versions in this module Expand all Collapse all v1 v1.0.2 Oct 8, 2023 v1.0.1 Aug 8, 2023 Changes in this version type Datasource + RdsInstanceId string + func (d *Datasource) NewOTSClient() (client *tablestore.TableStoreClient) v1.0.0 Jul 10, 2023 Changes in this version + var ContextAPIKey = contextKey("apikey") + var ContextAccessToken = contextKey("accesstoken") + var ContextBasicAuth = contextKey("basic") + var ContextOAuth2 = contextKey("token") + func CacheExpires(r *http.Response) time.Time + type APIClient struct + AkApi *AkApiService + DatasourceApi *DatasourceApiService + FeatureEntityApi *FeatureEntityApiService + FeatureViewApi *FeatureViewApiService + FsModelApi *FsModelApiService + FsProjectApi *FsProjectApiService + FsTaskApi *FsTaskApiService + SceneApi *SceneApiService + TableMetaApi *TableMetaApiService + func NewAPIClient(cfg *Configuration) *APIClient + func (c *APIClient) ChangeBasePath(path string) + type APIKey struct + Key string + Prefix string + type APIResponse struct + Message string + Method string + Operation string + Payload []byte + RequestURL string + func NewAPIResponse(r *http.Response) *APIResponse + func NewAPIResponseWithError(errorMessage string) *APIResponse + type Ak struct + AccesskeyId string + AccesskeySecret string + type AkApiService service + func (a *AkApiService) AkAkIdGet(ctx context.Context, akId int64) (GetAkResponse, error) + func (a *AkApiService) AkAkIdPost(ctx context.Context, body Ak, akId int64) (ModelApiResponse, *http.Response, error) + func (a *AkApiService) AkAllGet(ctx context.Context) (InlineResponse20057, *http.Response, error) + func (a *AkApiService) AkPost(ctx context.Context, body Ak) (Response, *http.Response, error) + type BaseResponse struct + Code string + Message string + RequestId string + type BasicAuth struct + Password string + UserName string + type Configuration struct + BasePath string + DefaultHeader map[string]string + HTTPClient *http.Client + Host string + Scheme string + Token string + UserAgent string + func NewConfiguration(host, token string) *Configuration + func (c *Configuration) AddDefaultHeader(key string, value string) + type Datasource struct + Ak Ak + AkId int32 + Database string + DatasourceId int32 + MysqlPwd string + MysqlUser string + Name string + Project string + Pwd string + Region string + Token string + Type_ string + VpcAddress string + func (d *Datasource) GenerateDSN(datasourceType string) (DSN string) + type DatasourceApiDatasourceDatasourceIdPostOpts struct + Body optional.Interface + type DatasourceApiService service + func (a *DatasourceApiService) DatasourceAllGet(ctx context.Context) (InlineResponse20060, *http.Response, error) + func (a *DatasourceApiService) DatasourceDatasourceIdGet(ctx context.Context, datasourceId int64) (GetDatasourceResponse, error) + func (a *DatasourceApiService) DatasourceDatasourceIdPost(ctx context.Context, datasourceId int64, ...) (ModelApiResponse, *http.Response, error) + func (a *DatasourceApiService) DatasourcePost(ctx context.Context, body Datasource) (Response, *http.Response, error) + type FeatureEntity struct + FeatureEntityId int32 + FeatureEntityJoinid string + FeatureEntityName string + ProjectId int64 + ProjectName string + type FeatureEntityApiService service + func (a *FeatureEntityApiService) AddFeatureEntity(ctx context.Context, body FeatureEntity) (ModelApiResponse, *http.Response, error) + func (a *FeatureEntityApiService) DeleteFeatureEntityById(ctx context.Context, featureEntityId string) (ModelApiResponse, *http.Response, error) + func (a *FeatureEntityApiService) GetFeatureEntityById(ctx context.Context, featureEntityId int32) (GetFeatureEntityResponse, error) + func (a *FeatureEntityApiService) ListFeatureEntities(ctx context.Context) (ListFeatureEntitiesResponse, error) + type FeatureView struct + Config string + FeatureEntityId int32 + FeatureEntityName string + FeatureViewId int64 + Fields []FeatureViewFields + IsRegister bool + Name string + Online bool + Owner string + ProjectId int64 + ProjectName string + RegisterTable string + Tags []string + Ttl int32 + Type_ string + type FeatureViewApiListFeatureViewsOpts struct + Feature optional.String + Owner optional.String + Pagenumber optional.Int32 + Pagesize optional.Int32 + ProjectId optional.Int32 + Tag optional.String + type FeatureViewApiService service + func (a *FeatureViewApiService) AddFeatureView(ctx context.Context, body FeatureView) (ModelApiResponse, *http.Response, error) + func (a *FeatureViewApiService) AppendFeatureViewFeatures(ctx context.Context, body FeatureView, featureViewId string) (ModelApiResponse, *http.Response, error) + func (a *FeatureViewApiService) DeleteFeatureViewByID(ctx context.Context, featureViewId string) (ModelApiResponse, *http.Response, error) + func (a *FeatureViewApiService) GetFeatureViewByID(ctx context.Context, featureViewId string) (GetFeatureViewResponse, error) + func (a *FeatureViewApiService) GetFeatureViewOnlineFeatures(ctx context.Context, body OnlineFeaturesBody, featureViewId string) (InlineResponse20081, *http.Response, error) + func (a *FeatureViewApiService) GetFeatureViewOwners(ctx context.Context) (InlineResponse20082, *http.Response, error) + func (a *FeatureViewApiService) GetFeatureViewTags(ctx context.Context) (InlineResponse20083, *http.Response, error) + func (a *FeatureViewApiService) ListFeatureViews(ctx context.Context, localVarOptionals *FeatureViewApiListFeatureViewsOpts) (ListFeatureViewsResponse, error) + func (a *FeatureViewApiService) PublishFeatureViewTable(ctx context.Context, body PublishTableRequest, featureViewId string) (ModelApiResponse, *http.Response, error) + func (a *FeatureViewApiService) WriteFeatureViewTable(ctx context.Context, body WriteTableRequest, featureViewId string) (ModelApiResponse, *http.Response, error) + type FeatureViewFields struct + IsEventTime bool + IsPartition bool + IsPrimaryKey bool + Name string + Position int + Type int32 + type FsModelApiListModelsOpts struct + Pagenumber optional.Int32 + Pagesize optional.Int32 + ProjectId optional.Int32 + type FsModelApiService service + func (a *FsModelApiService) AddFSModel(ctx context.Context, body Model) (ModelApiResponse, *http.Response, error) + func (a *FsModelApiService) CreateTrainingSetTable(ctx context.Context, body ModelsTrainningSetTablesBody) (ModelApiResponse, *http.Response, error) + func (a *FsModelApiService) DeleteModelByID(ctx context.Context, modelId string) (ModelApiResponse, *http.Response, error) + func (a *FsModelApiService) ExportTrainingSetTable(ctx context.Context, body TrainningSetTablesExportBody, modelId string) (InlineResponse20088, *http.Response, error) + func (a *FsModelApiService) GetModelByID(ctx context.Context, modelId string) (GetModelResponse, error) + func (a *FsModelApiService) GetOnlineFeaturesByModelId(ctx context.Context, body OnlineFeaturesBody1, modelId string) (InlineResponse20081, *http.Response, error) + func (a *FsModelApiService) ListModels(ctx context.Context, localVarOptionals *FsModelApiListModelsOpts) (ListModelsResponse, error) + func (a *FsModelApiService) PreveiwTrainingSetTable(ctx context.Context, body TrainningSetTablesPreviewBody) (InlineResponse20087, *http.Response, error) + func (a *FsModelApiService) UpdateModelByID(ctx context.Context, body Model, modelId string) (ModelApiResponse, *http.Response, error) + type FsProjectApiService service + func (a *FsProjectApiService) AddProject(ctx context.Context, body Project) (ModelApiResponse, *http.Response, error) + func (a *FsProjectApiService) DeleteProjectById(ctx context.Context, projectId int64) (ModelApiResponse, *http.Response, error) + func (a *FsProjectApiService) GetFeaturesByProjectId(ctx context.Context, projectId int64) (InlineResponse20078, *http.Response, error) + func (a *FsProjectApiService) GetOfflineTableNamesByProjectId(ctx context.Context, projectId int64) (InlineResponse20076, *http.Response, error) + func (a *FsProjectApiService) GetOfflineTableSchemaByProjectIdAndTableName(ctx context.Context, projectId int64, tableName string) (InlineResponse20077, *http.Response, error) + func (a *FsProjectApiService) GetProjectById(ctx context.Context, projectId int64) (Response, error) + func (a *FsProjectApiService) ListProjects(ctx context.Context) (ListProjectsResponse, error) + type FsTaskApiListTasksBySubjectOpts struct + Limit optional.Int32 + type FsTaskApiListTasksOpts struct + State optional.Int32 + type FsTaskApiService service + func (a *FsTaskApiService) GetTaskById(ctx context.Context, taskId int32) (InlineResponse20091, *http.Response, error) + func (a *FsTaskApiService) ListTasks(ctx context.Context, limit int32, localVarOptionals *FsTaskApiListTasksOpts) (InlineResponse20089, *http.Response, error) + func (a *FsTaskApiService) ListTasksBySubject(ctx context.Context, taskSubjectType string, taskSubject string, ...) (InlineResponse20090, *http.Response, error) + type GenericSwaggerError struct + func (e GenericSwaggerError) Body() []byte + func (e GenericSwaggerError) Error() string + func (e GenericSwaggerError) Model() interface{} + type GetAkResponse struct + Code string + Data map[string]Ak + Message string + RequestId string + type GetDatasourceResponse struct + Code string + Data map[string]*Datasource + Message string + RequestId string + type GetFeatureEntityResponse struct + Data map[string][]FeatureEntity + type GetFeatureViewResponse struct + Data map[string][]FeatureView + type GetModelResponse struct + Data *GetModelResponseData + type GetModelResponseData struct + Models []Model + Relations *ModelRelations + type InlineResponse200 struct + Code string + Data *interface{} + Message string + RequestId string + type InlineResponse2001 struct + Code string + Data *InlineResponse2001Data + Message string + RequestId string + type InlineResponse20014 struct + Code string + Data *InlineResponse20014Data + Message string + RequestId string + type InlineResponse20014Data struct + TableMetaId int32 + type InlineResponse20015 struct + Code string + Data *InlineResponse20015Data + Message string + RequestId string + type InlineResponse20015Data struct + TableMetas []TableMeta + type InlineResponse20016 struct + Code string + Data *InlineResponse20016Data + Message string + RequestId string + type InlineResponse20016Data struct + Fields []string + type InlineResponse20019 struct + Code string + Data *InlineResponse20019Data + Message string + RequestId string + type InlineResponse20019Data struct + ItemData []InlineResponse20019DataItemData + RecommendResponse *interface{} + type InlineResponse20019DataFields struct + Content string + Meaning string + Name string + OriginContent string + Type_ string + type InlineResponse20019DataItemData struct + Fields []InlineResponse20019DataFields + type InlineResponse2001Data struct + Scenes []Scene + type InlineResponse20047 struct + Code string + Data *InlineResponse20047Data + Message string + RequestId string + type InlineResponse20047Data struct + Meta []InlineResponse20047DataMeta + type InlineResponse20047DataMeta struct + ColumnName string + Type_ string + type InlineResponse20057 struct + Code string + Data *InlineResponse20057Data + Message string + RequestId string + type InlineResponse20057Data struct + Aks []Ak + type InlineResponse20059DataDatasource struct + DatasourceId int32 + Name string + Type_ string + VpcAddress string + type InlineResponse20060 struct + Code string + Data *InlineResponse20060Data + Message string + RequestId string + type InlineResponse20060Data struct + Datasources []InlineResponse20060DataDatasources + type InlineResponse20060DataDatasources struct + DatasourceId int32 + Name string + Type_ string + VpcAddress string + type InlineResponse20076 struct + Code string + Data *InlineResponse20076Data + Message string + RequestId string + type InlineResponse20076Data struct + Tables []string + type InlineResponse20077 struct + Code string + Data *InlineResponse20077Data + Message string + RequestId string + type InlineResponse20077Data struct + Fields []InlineResponse20077DataFields + type InlineResponse20077DataFields struct + IsPartition bool + Name string + Type_ int32 + type InlineResponse20078 struct + Code string + Data *InlineResponse20078Data + Message string + RequestId string + type InlineResponse20078Data struct + FeatureViews []InlineResponse20078DataFeatureViews + type InlineResponse20078DataFeatureViews struct + FeatureViewId string + FeatureViewName string + Features []InlineResponse20078DataFeatures + type InlineResponse20078DataFeatures struct + Name string + TypeStr string + Type_ int32 + type InlineResponse20080Data struct + FeatureViews []FeatureView + TotalCount int32 + type InlineResponse20081 struct + Code string + Data *InlineResponse20081Data + Message string + RequestId string + type InlineResponse20081Data struct + OnlineFeatures []interface{} + type InlineResponse20082 struct + Code string + Data *InlineResponse20082Data + Message string + RequestId string + type InlineResponse20082Data struct + Owners []string + type InlineResponse20083 struct + Code string + Data *InlineResponse20083Data + Message string + RequestId string + type InlineResponse20083Data struct + Tags []string + type InlineResponse20085Data struct + Models []Model + TotalCount int32 + type InlineResponse20087 struct + Code string + Data *InlineResponse20087Data + Message string + RequestId string + type InlineResponse20087Data struct + TrainningSetTable string + TrainningSetTableSql string + type InlineResponse20088 struct + Code string + Data *InlineResponse20088Data + Message string + RequestId string + type InlineResponse20088Data struct + TaskId int32 + type InlineResponse20089 struct + Code string + Data *InlineResponse20089Data + Message string + RequestId string + type InlineResponse20089Data struct + FeatureViews []Task + type InlineResponse20090 struct + Code string + Data *InlineResponse20090Data + Message string + RequestId string + type InlineResponse20090Data struct + Tasks []Task + type InlineResponse20091 struct + Code string + Data *InlineResponse20091Data + Message string + RequestId string + type InlineResponse20091Data struct + Tasks []Task + type ListFeatureEntitiesResponse struct + Data map[string][]FeatureEntity + type ListFeatureViewsResponse struct + Data ListFeatureViewsResponseData + type ListFeatureViewsResponseData struct + FeatureViews []*FeatureView + TotalCount int + type ListModelsResponse struct + Data *ListModelsResponseData + type ListModelsResponseData struct + Models []Model + TotalCount int32 + type ListProjectsResponse struct + Data map[string][]*Project + type Model struct + Features []ModelFeatures + LabelDatasourceId int32 + LabelDatasourceTable string + LabelEventTime string + ModelId int + Name string + Owner string + ProjectId int64 + ProjectName string + Relations *ModelRelations + TrainningSetTable string + type ModelApiResponse struct + Code string + Data *interface{} + Message string + RequestId string + type ModelFeatures struct + AliasName string + FeatureViewId int32 + FeatureViewName string + Name string + TypeStr string + Type_ int32 + type ModelRelations struct + Domains *interface{} + Links []ModelRelationsLinks + type ModelRelationsLinks struct + From string + Link string + To string + type ModelsTrainningSetTablesBody struct + ProjectId int32 + TrainningSetTableSql string + type ModelsmodelIdonlinefeaturesFeatureSelectors struct + Alias *interface{} + FeatureEntity string + FeatureView string + Features []string + type ModelsmodelIdtrainningSetTablesexportLabelInputConfig struct + EventTime string + Partitions *interface{} + type ModelsmodelIdtrainningSetTablesexportTrainningSetConfig struct + Partitions *interface{} + type ModelstrainningSetTablespreviewFeatures struct + AliasName string + FeatureViewId int32 + Name string + Type_ int32 + type OnlineFeaturesBody struct + Alias *interface{} + Features []string + JoinIds *interface{} + type OnlineFeaturesBody1 struct + FeatureSelectors []ModelsmodelIdonlinefeaturesFeatureSelectors + JoinIds *interface{} + type Project struct + Description string + FeatureEntityCount int32 + FeatureViewCount int32 + ModelCount int32 + OfflineDataSource *Datasource + OfflineDatasourceId int64 + OfflineDatasourceType string + OfflineLifecycle int32 + OnlineDataSource *Datasource + OnlineDatasourceId int64 + OnlineDatasourceType string + ProjectId int64 + ProjectName string + type PublishTableRequest struct + Mode string + Partitions *interface{} + type Response struct + Data map[string]interface{} + type Scene struct + SceneId int64 + SceneInfo string + SceneName string + type SceneApiService service + func (a *SceneApiService) AddScene(ctx context.Context, body Scene) (InlineResponse200, *http.Response, error) + func (a *SceneApiService) DeleteSceneById(ctx context.Context, sceneId int64) (ModelApiResponse, *http.Response, error) + func (a *SceneApiService) GetSceneById(ctx context.Context, sceneId int64) (InlineResponse2001, *http.Response, error) + func (a *SceneApiService) ListAllScenes(ctx context.Context) (InlineResponse2001, *http.Response, error) + func (a *SceneApiService) UpdateScene(ctx context.Context, body Scene, sceneId int64) (ModelApiResponse, *http.Response, error) + type TableMeta struct + Datasource string + Dsn string + Fields []TableMetaField + Module string + Name string + Table string + TableMetaId int64 + type TableMetaApiListTableMetaFieldsOpts struct + DatasourceId optional.Int32 + Table optional.String + type TableMetaApiListTableMetasOpts struct + Module optional.String + type TableMetaApiService service + func (a *TableMetaApiService) AddTableMeta(ctx context.Context, body TableMeta) (InlineResponse20014, *http.Response, error) + func (a *TableMetaApiService) GetTableMetaById(ctx context.Context, tableMetaId int64) (InlineResponse20015, *http.Response, error) + func (a *TableMetaApiService) ListTableMetaFields(ctx context.Context, dsn string, ...) (InlineResponse20016, *http.Response, error) + func (a *TableMetaApiService) ListTableMetas(ctx context.Context, localVarOptionals *TableMetaApiListTableMetasOpts) (InlineResponse20015, *http.Response, error) + func (a *TableMetaApiService) UpdateTableMeta(ctx context.Context, body TableMeta, tableMetaId int64) (ModelApiResponse, *http.Response, error) + type TableMetaField struct + DimensionField bool + Meaning string + Name string + Type_ string + type Task struct + CreateTime string + ExecuteTime string + FinishTime string + ProjectId int64 + State int32 + TaskConfig string + TaskId int64 + TaskLog string + TaskName string + TaskNameStr string + TaskRunningConfig string + TaskSubject string + TaskSubjectType string + type TrainningSetTablesExportBody struct + FeatureViewConfig *interface{} + LabelInputConfig *ModelsmodelIdtrainningSetTablesexportLabelInputConfig + TrainningSetConfig *ModelsmodelIdtrainningSetTablesexportTrainningSetConfig + type TrainningSetTablesPreviewBody struct + Features []ModelstrainningSetTablespreviewFeatures + LabelDatasourceTable string + ModelName string + ProjectId int32 + type WriteTableRequest struct + Mode string + Ossdatasource *WriteTableRequestOssdatasource + Partitions *interface{} + type WriteTableRequestOssdatasource struct + AccessId string + AccessKey string + Delimiter string + Endpoint string + OmitHeader bool + Path string