2017-08-04 11:13:19 +00:00
|
|
|
package server
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
2017-11-09 10:10:35 +00:00
|
|
|
"time"
|
2017-08-04 11:13:19 +00:00
|
|
|
|
|
|
|
"golang.org/x/net/context"
|
|
|
|
pb "k8s.io/kubernetes/pkg/kubelet/apis/cri/v1alpha1/runtime"
|
|
|
|
)
|
|
|
|
|
|
|
|
// ContainerStats returns stats of the container. If the container does not
|
|
|
|
// exist, the call returns an error.
|
2017-11-09 10:10:35 +00:00
|
|
|
func (s *Server) ContainerStats(ctx context.Context, req *pb.ContainerStatsRequest) (resp *pb.ContainerStatsResponse, err error) {
|
|
|
|
const operation = "container_stats"
|
|
|
|
defer func() {
|
|
|
|
recordOperation(operation, time.Now())
|
|
|
|
recordError(operation, err)
|
|
|
|
}()
|
2017-08-04 11:13:19 +00:00
|
|
|
return nil, fmt.Errorf("not implemented")
|
|
|
|
}
|