oc-schedulerd/daemons/execute_monitor_local.go
2024-07-29 15:46:44 +02:00

35 lines
608 B
Go

package daemons
import "oc-scheduler/logger"
type LocalMonitor struct{
LokiURL string
KubeURL string
ArgoFile string
}
func (lm *LocalMonitor) LaunchLocalMonitor (){
if (lm.LokiURL == "" || lm.KubeURL == "" || lm.ArgoFile == ""){
logger.Logger.Error().Msg("Missing parameter in LocalMonitor")
}
// For dev purposes, in prod KubeURL must be a kube API's URL
if(lm.KubeURL == "localhost"){
lm.ExecLocalKube()
} else{
lm.ExecRemoteKube()
}
}
func (lm *LocalMonitor) ExecLocalKube (){
// kube_url := ""
}
func (lm *LocalMonitor) ExecRemoteKube (){
}
func (lm *LocalMonitor) todo (){
}