Documentation ¶
Index ¶
- Constants
- Variables
- func CreateSAR(user, verb, namespace, resource, subresource, name string, ...) *v1.SubjectAccessReview
- func IsAuthorized(verb, namespace, resource, subresource, name string, ...) (string, error)
- 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) FetchExperiment(w http.ResponseWriter, r *http.Request)
- func (k *KatibUIHandler) FetchExperiments(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) FetchTrial(w http.ResponseWriter, r *http.Request)
- func (k *KatibUIHandler) FetchTrialLogs(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 ( USER_HEADER = env.GetEnvOrDefault("USERID_HEADER", "kubeflow-userid") USER_PREFIX = env.GetEnvOrDefault("USERID_PREFIX", ":") DISABLE_AUTH = env.GetEnvOrDefault("APP_DISABLE_AUTH", "true") )
ENV variables
View Source
var ( TrialTemplateLabel = map[string]string{ consts.LabelTrialTemplateConfigMapName: consts.LabelTrialTemplateConfigMapValue} )
Functions ¶
func CreateSAR ¶ added in v0.16.0
func CreateSAR(user, verb, namespace, resource, subresource, name string, schema schema.GroupVersion) *v1.SubjectAccessReview
Function for constructing SubjectAccessReviews (SAR) objects
Types ¶
type ExperimentView ¶ added in v0.10.0
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 ¶ added in v0.16.0
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) FetchExperiment ¶
func (k *KatibUIHandler) FetchExperiment(w http.ResponseWriter, r *http.Request)
FetchExperiment gets experiment in specific namespace.
func (*KatibUIHandler) FetchExperiments ¶ added in v0.16.0
func (k *KatibUIHandler) FetchExperiments(w http.ResponseWriter, r *http.Request)
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) FetchTrial ¶ added in v0.16.0
func (k *KatibUIHandler) FetchTrial(w http.ResponseWriter, r *http.Request)
FetchTrial gets trial in specific namespace.
func (*KatibUIHandler) FetchTrialLogs ¶ added in v0.16.0
func (k *KatibUIHandler) FetchTrialLogs(w http.ResponseWriter, r *http.Request)
FetchTrialLogs fetches logs for a trial 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 ¶ added in v0.16.0
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 ¶ added in v0.10.0
type TrialTemplatesResponse ¶
type TrialTemplatesResponse struct {
Data []TrialTemplatesDataView
}
Click to show internal directories.
Click to hide internal directories.