mirror of
https://gitee.com/rainbond/Rainbond.git
synced 2024-11-30 02:38:17 +08:00
19 lines
434 B
Go
19 lines
434 B
Go
package handler
|
|
|
|
import (
|
|
"github.com/goodrain/rainbond/worker/client"
|
|
"github.com/goodrain/rainbond/worker/server/pb"
|
|
)
|
|
|
|
// PodHandler defines handler methods about k8s pods.
|
|
type PodHandler interface {
|
|
PodDetail(namespace, podName string) (*pb.PodDetail, error)
|
|
}
|
|
|
|
// NewPodHandler creates a new PodHandler.
|
|
func NewPodHandler(statusCli *client.AppRuntimeSyncClient) PodHandler {
|
|
return &PodAction{
|
|
statusCli: statusCli,
|
|
}
|
|
}
|