Add container event support to containerd

Signed-off-by: ruiwen-zhao <ruiwen@google.com>
This commit is contained in:
ruiwen-zhao
2022-08-12 19:24:07 +00:00
parent ae6c244995
commit a338abc902
13 changed files with 283 additions and 10 deletions

View File

@@ -35,6 +35,7 @@ limitations under the License.
package cri
import (
"context"
"time"
"google.golang.org/grpc"
@@ -75,6 +76,7 @@ type ContainerManager interface {
// for the container. If it returns error, new container log file MUST NOT
// be created.
ReopenContainerLog(ContainerID string, opts ...grpc.CallOption) error
GetContainerEvents(ctx context.Context, request *runtimeapi.GetEventsRequest, opts ...grpc.CallOption) (runtimeapi.RuntimeService_GetContainerEventsClient, error)
}
// PodSandboxManager contains methods for operating on PodSandboxes. The methods