|
|
@@ -376,40 +376,42 @@ func (d *DataBindingBase) Noop() {} |
|
|
type DatasetBinding struct { |
|
|
type DatasetBinding struct { |
|
|
serder.Metadata `union:"dataset"` |
|
|
serder.Metadata `union:"dataset"` |
|
|
DataBindingBase |
|
|
DataBindingBase |
|
|
Type string `json:"type"` |
|
|
|
|
|
Name string `json:"name"` |
|
|
|
|
|
ClusterIDs []schsdk.ClusterID `json:"clusterIDs"` |
|
|
|
|
|
Description string `json:"description"` |
|
|
|
|
|
Category string `json:"category"` |
|
|
|
|
|
PackageID cdssdk.PackageID `json:"packageID"` |
|
|
|
|
|
|
|
|
Type string `json:"type"` |
|
|
|
|
|
Name string `json:"name"` |
|
|
|
|
|
ClusterIDs []schsdk.ClusterID `json:"clusterIDs"` |
|
|
|
|
|
Description string `json:"description"` |
|
|
|
|
|
Category string `json:"category"` |
|
|
|
|
|
PackageID cdssdk.PackageID `json:"packageID"` |
|
|
|
|
|
RepositoryName string `json:"repositoryName"` |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
type ModelBinding struct { |
|
|
type ModelBinding struct { |
|
|
serder.Metadata `union:"model"` |
|
|
serder.Metadata `union:"model"` |
|
|
DataBindingBase |
|
|
DataBindingBase |
|
|
Type string `json:"type"` |
|
|
|
|
|
Name string `json:"name"` |
|
|
|
|
|
ClusterIDs []schsdk.ClusterID `json:"clusterIDs"` |
|
|
|
|
|
Description string `json:"description"` |
|
|
|
|
|
Category string `json:"category"` |
|
|
|
|
|
ModelType string `json:"modelType"` |
|
|
|
|
|
Env string `json:"env"` |
|
|
|
|
|
Version string `json:"version"` |
|
|
|
|
|
PackageID cdssdk.PackageID `json:"packageID"` |
|
|
|
|
|
|
|
|
Type string `json:"type"` |
|
|
|
|
|
Name string `json:"name"` |
|
|
|
|
|
ClusterIDs []schsdk.ClusterID `json:"clusterIDs"` |
|
|
|
|
|
Description string `json:"description"` |
|
|
|
|
|
Category string `json:"category"` |
|
|
|
|
|
ModelType string `json:"modelType"` |
|
|
|
|
|
Env string `json:"env"` |
|
|
|
|
|
Version string `json:"version"` |
|
|
|
|
|
PackageID cdssdk.PackageID `json:"packageID"` |
|
|
|
|
|
RepositoryName string `json:"repositoryName"` |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
type CodeBinding struct { |
|
|
type CodeBinding struct { |
|
|
serder.Metadata `union:"code"` |
|
|
serder.Metadata `union:"code"` |
|
|
DataBindingBase |
|
|
DataBindingBase |
|
|
Type string `json:"type"` |
|
|
|
|
|
Name string `json:"name"` |
|
|
|
|
|
//ClusterIDs []schsdk.ClusterID `json:"clusterIDs"` |
|
|
|
|
|
|
|
|
Type string `json:"type"` |
|
|
|
|
|
Name string `json:"name"` |
|
|
ClusterID schsdk.ClusterID `json:"clusterID"` |
|
|
ClusterID schsdk.ClusterID `json:"clusterID"` |
|
|
Description string `json:"description"` |
|
|
Description string `json:"description"` |
|
|
ImageID schsdk.ImageID `json:"imageID"` |
|
|
ImageID schsdk.ImageID `json:"imageID"` |
|
|
BootstrapObjectID cdssdk.ObjectID `json:"bootstrapObjectID"` |
|
|
BootstrapObjectID cdssdk.ObjectID `json:"bootstrapObjectID"` |
|
|
//FilePath string `json:"filePath"` |
|
|
|
|
|
PackageID cdssdk.PackageID `json:"packageID"` |
|
|
|
|
|
|
|
|
PackageID cdssdk.PackageID `json:"packageID"` |
|
|
|
|
|
// 当集群为openi的时候,需要传入分支 |
|
|
|
|
|
Branch string `json:"branch"` |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
//type ImageBinding struct { |
|
|
//type ImageBinding struct { |
|
|
|