mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-03 20:34:01 +08:00
23 lines
391 B
Go
23 lines
391 B
Go
package clusterutils
|
|
|
|
import (
|
|
"github.com/iwind/TeaGo/actions"
|
|
"net/http"
|
|
)
|
|
|
|
type ClustersHelper struct {
|
|
}
|
|
|
|
func NewClustersHelper() *ClustersHelper {
|
|
return &ClustersHelper{}
|
|
}
|
|
|
|
func (this *ClustersHelper) BeforeAction(actionPtr actions.ActionWrapper) {
|
|
var action = actionPtr.Object()
|
|
if action.Request.Method != http.MethodGet {
|
|
return
|
|
}
|
|
|
|
action.Data["teaMenu"] = "clusters"
|
|
}
|