mirror of
https://github.com/portainer/portainer.git
synced 2025-07-19 21:39:40 +02:00
20 lines
413 B
Go
20 lines
413 B
Go
|
package testhelpers
|
||
|
|
||
|
import (
|
||
|
portainer "github.com/portainer/portainer/api"
|
||
|
models "github.com/portainer/portainer/api/http/models/kubernetes"
|
||
|
)
|
||
|
|
||
|
type testKubeClient struct {
|
||
|
portainer.KubeClient
|
||
|
}
|
||
|
|
||
|
func NewKubernetesClient() portainer.KubeClient {
|
||
|
return &testKubeClient{}
|
||
|
}
|
||
|
|
||
|
// Event
|
||
|
func (kcl *testKubeClient) GetEvents(namespace string, resourceId string) ([]models.K8sEvent, error) {
|
||
|
return nil, nil
|
||
|
}
|