Documentation ¶
Index ¶
- Constants
- Variables
- type Block
- type ConfigMap
- type Decoder
- type ExperimentView
- type JobType
- type KatibUIHandler
- func (k *KatibUIHandler) AddTemplate(w http.ResponseWriter, r *http.Request)
- func (k *KatibUIHandler) CreateExperiment(w http.ResponseWriter, r *http.Request)
- func (k *KatibUIHandler) DeleteExperiment(w http.ResponseWriter, r *http.Request)
- func (k *KatibUIHandler) DeleteTemplate(w http.ResponseWriter, r *http.Request)
- func (k *KatibUIHandler) EditTemplate(w http.ResponseWriter, r *http.Request)
- func (k *KatibUIHandler) FetchAllExperiments(w http.ResponseWriter, r *http.Request)
- func (k *KatibUIHandler) FetchExperiment(w http.ResponseWriter, r *http.Request)
- func (k *KatibUIHandler) FetchHPJobInfo(w http.ResponseWriter, r *http.Request)
- func (k *KatibUIHandler) FetchHPJobTrialInfo(w http.ResponseWriter, r *http.Request)
- func (k *KatibUIHandler) FetchNASJobInfo(w http.ResponseWriter, r *http.Request)
- func (k *KatibUIHandler) FetchNamespaces(w http.ResponseWriter, r *http.Request)
- func (k *KatibUIHandler) FetchSuggestion(w http.ResponseWriter, r *http.Request)
- func (k *KatibUIHandler) FetchTrialTemplates(w http.ResponseWriter, r *http.Request)
- func (k *KatibUIHandler) ServeIndex(buildDir string) func(w http.ResponseWriter, r *http.Request)
- type NNView
- type Option
- type Template
- type TrialTemplatesDataView
- type TrialTemplatesResponse
Constants ¶
View Source
const ( ExperimentTypeHP = "hp" ExperimentTypeNAS = "nas" ActionTypeAdd = "add" ActionTypeEdit = "edit" ActionTypeDelete = "delete" )
Variables ¶
View Source
var ( TrialTemplateLabel = map[string]string{ consts.LabelTrialTemplateConfigMapName: consts.LabelTrialTemplateConfigMapValue} )
Functions ¶
This section is empty.
Types ¶
type ExperimentView ¶
type ExperimentView struct { Name string `json:"name"` Namespace string `json:"namespace"` Type string `json:"type"` Status string `json:"status"` v1beta1experiment.ExperimentStatus }
type KatibUIHandler ¶
type KatibUIHandler struct {
// contains filtered or unexported fields
}
func NewKatibUIHandler ¶
func NewKatibUIHandler(dbManagerAddr string) *KatibUIHandler
func (*KatibUIHandler) AddTemplate ¶
func (k *KatibUIHandler) AddTemplate(w http.ResponseWriter, r *http.Request)
AddTemplate adds template to ConfigMap
func (*KatibUIHandler) CreateExperiment ¶
func (k *KatibUIHandler) CreateExperiment(w http.ResponseWriter, r *http.Request)
func (*KatibUIHandler) DeleteExperiment ¶
func (k *KatibUIHandler) DeleteExperiment(w http.ResponseWriter, r *http.Request)
func (*KatibUIHandler) DeleteTemplate ¶
func (k *KatibUIHandler) DeleteTemplate(w http.ResponseWriter, r *http.Request)
DeleteTemplate deletes template in ConfigMap
func (*KatibUIHandler) EditTemplate ¶
func (k *KatibUIHandler) EditTemplate(w http.ResponseWriter, r *http.Request)
EditTemplate edits template in ConfigMap
func (*KatibUIHandler) FetchAllExperiments ¶
func (k *KatibUIHandler) FetchAllExperiments(w http.ResponseWriter, r *http.Request)
FetchAllExperiments gets HP and NAS experiments in all namespaces.
func (*KatibUIHandler) FetchExperiment ¶
func (k *KatibUIHandler) FetchExperiment(w http.ResponseWriter, r *http.Request)
FetchExperiment gets experiment in specific namespace.
func (*KatibUIHandler) FetchHPJobInfo ¶
func (k *KatibUIHandler) FetchHPJobInfo(w http.ResponseWriter, r *http.Request)
func (*KatibUIHandler) FetchHPJobTrialInfo ¶
func (k *KatibUIHandler) FetchHPJobTrialInfo(w http.ResponseWriter, r *http.Request)
FetchHPJobTrialInfo returns all metrics for the HP Job Trial
func (*KatibUIHandler) FetchNASJobInfo ¶
func (k *KatibUIHandler) FetchNASJobInfo(w http.ResponseWriter, r *http.Request)
func (*KatibUIHandler) FetchNamespaces ¶
func (k *KatibUIHandler) FetchNamespaces(w http.ResponseWriter, r *http.Request)
func (*KatibUIHandler) FetchSuggestion ¶
func (k *KatibUIHandler) FetchSuggestion(w http.ResponseWriter, r *http.Request)
FetchSuggestion gets suggestion in specific namespace
func (*KatibUIHandler) FetchTrialTemplates ¶
func (k *KatibUIHandler) FetchTrialTemplates(w http.ResponseWriter, r *http.Request)
FetchTrialTemplates gets all trial templates in all namespaces
func (*KatibUIHandler) ServeIndex ¶
func (k *KatibUIHandler) ServeIndex(buildDir string) func(w http.ResponseWriter, r *http.Request)
ServeIndex will return index.html for any non-API URL
type TrialTemplatesDataView ¶
type TrialTemplatesResponse ¶
type TrialTemplatesResponse struct {
Data []TrialTemplatesDataView
}
Click to show internal directories.
Click to hide internal directories.