Documentation
¶
Index ¶
- Constants
- func HashModelName(modelname string) string
- type APPFunc
- type AppRef
- type ModelDeploymentAPI
- func (o *ModelDeploymentAPI) AppRefFunc(req *restful.Request, resp *restful.Response, fun APPFunc)
- func (o *ModelDeploymentAPI) CreateModelDeployment(req *restful.Request, resp *restful.Response)
- func (o *ModelDeploymentAPI) DeleteModelDeployment(req *restful.Request, resp *restful.Response)
- func (o *ModelDeploymentAPI) GetModelDeployment(req *restful.Request, resp *restful.Response)
- func (o *ModelDeploymentAPI) ListAllModelDeployments(req *restful.Request, resp *restful.Response)
- func (o *ModelDeploymentAPI) ListModelDeployments(req *restful.Request, resp *restful.Response)
- func (o *ModelDeploymentAPI) PatchModelDeployment(req *restful.Request, resp *restful.Response)
- func (o *ModelDeploymentAPI) RegisterRoute(rg *route.Group)
- func (o *ModelDeploymentAPI) UpdateModelDeployment(req *restful.Request, resp *restful.Response)
- type ModelDeploymentOverview
Constants ¶
View Source
const ( DefaultInitDeplaySeconds = 180 ModelxInitDeplaySeconds = 60 )
Variables ¶
This section is empty.
Functions ¶
func HashModelName ¶
Types ¶
type AppRef ¶
type AppRef struct { Tenant string `json:"tenant,omitempty"` Project string `json:"project,omitempty"` Env string `json:"environment,omitempty"` Name string `json:"name,omitempty"` Namespace string `json:"namespace,omitempty"` // namespace of the environment Username string `json:"username,omitempty"` }
type ModelDeploymentAPI ¶
type ModelDeploymentAPI struct { Clientset *agents.ClientSet Database *database.Database SourceRepository *repository.SourcesRepository ModelRepository *repository.ModelsRepository ModelxStorageInitalizer string }
func NewModelDeploymentAPI ¶
func (*ModelDeploymentAPI) AppRefFunc ¶
func (o *ModelDeploymentAPI) AppRefFunc(req *restful.Request, resp *restful.Response, fun APPFunc)
func (*ModelDeploymentAPI) CreateModelDeployment ¶
func (o *ModelDeploymentAPI) CreateModelDeployment(req *restful.Request, resp *restful.Response)
func (*ModelDeploymentAPI) DeleteModelDeployment ¶
func (o *ModelDeploymentAPI) DeleteModelDeployment(req *restful.Request, resp *restful.Response)
func (*ModelDeploymentAPI) GetModelDeployment ¶
func (o *ModelDeploymentAPI) GetModelDeployment(req *restful.Request, resp *restful.Response)
func (*ModelDeploymentAPI) ListAllModelDeployments ¶
func (o *ModelDeploymentAPI) ListAllModelDeployments(req *restful.Request, resp *restful.Response)
func (*ModelDeploymentAPI) ListModelDeployments ¶
func (o *ModelDeploymentAPI) ListModelDeployments(req *restful.Request, resp *restful.Response)
func (*ModelDeploymentAPI) PatchModelDeployment ¶
func (o *ModelDeploymentAPI) PatchModelDeployment(req *restful.Request, resp *restful.Response)
func (*ModelDeploymentAPI) RegisterRoute ¶
func (o *ModelDeploymentAPI) RegisterRoute(rg *route.Group)
func (*ModelDeploymentAPI) UpdateModelDeployment ¶
func (o *ModelDeploymentAPI) UpdateModelDeployment(req *restful.Request, resp *restful.Response)
type ModelDeploymentOverview ¶
type ModelDeploymentOverview struct { AppRef Name string `json:"name"` ModelName string `json:"modelName"` ModelVersion string `json:"modelVersion"` URL string `json:"url"` Cluster string `json:"cluster"` Namespace string `json:"namespace"` Creator string `json:"creator"` Phase string `json:"phase"` CreationTimestamp metav1.Time `json:"creationTimestamp"` }
Click to show internal directories.
Click to hide internal directories.